Getting started heregit status!
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
[gd_resource type="ShaderMaterial" load_steps=2 format=3 uid="uid://cpx8gdyqdntn5"]
|
||||
|
||||
[ext_resource type="Shader" uid="uid://c1r07k4gw7q3w" path="res://Shaders/CHAR_SHD_Abe.tres" id="1_ejlbn"]
|
||||
|
||||
[resource]
|
||||
render_priority = 0
|
||||
shader = ExtResource("1_ejlbn")
|
||||
@@ -0,0 +1,7 @@
|
||||
[gd_resource type="ShaderMaterial" load_steps=2 format=3 uid="uid://b3q4c07bt6rra"]
|
||||
|
||||
[ext_resource type="Shader" uid="uid://dewwedodqpjub" path="res://Shaders/CHAR_SHD_AbeFace.tres" id="1_q4hts"]
|
||||
|
||||
[resource]
|
||||
render_priority = 0
|
||||
shader = ExtResource("1_q4hts")
|
||||
@@ -0,0 +1,138 @@
|
||||
[gd_resource type="VisualShader" load_steps=16 format=3 uid="uid://c1r07k4gw7q3w"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://45tpikb0js5i" path="res://3d/models/textures/CHAR_Abe_emit.png" id="1_12cij"]
|
||||
[ext_resource type="Texture2D" uid="uid://bi3cljuc4dicl" path="res://3d/models/textures/CHAR_Abe_diffuse.png" id="3_uxtot"]
|
||||
[ext_resource type="Texture2D" uid="uid://dhdeki5r0pg63" path="res://3d/models/textures/CHAR_Abe_metal-CHAR_Abe_roughness.png" id="4_ihydq"]
|
||||
[ext_resource type="Texture2D" uid="uid://bcilhv0vmo23e" path="res://3d/models/textures/CHAR_Abe_normal.png" id="5_wlfoi"]
|
||||
|
||||
[sub_resource type="VisualShaderNodeFloatConstant" id="VisualShaderNodeFloatConstant_ecx0m"]
|
||||
constant = 0.2
|
||||
|
||||
[sub_resource type="VisualShaderNodeInput" id="VisualShaderNodeInput_fl837"]
|
||||
input_name = "uv2"
|
||||
|
||||
[sub_resource type="VisualShaderNodeFloatOp" id="VisualShaderNodeFloatOp_p4c60"]
|
||||
operator = 2
|
||||
|
||||
[sub_resource type="VisualShaderNodeTexture" id="VisualShaderNodeTexture_fya24"]
|
||||
texture = ExtResource("1_12cij")
|
||||
texture_type = 1
|
||||
|
||||
[sub_resource type="VisualShaderNodeTexture" id="VisualShaderNodeTexture_gndfb"]
|
||||
texture = ExtResource("3_uxtot")
|
||||
texture_type = 1
|
||||
|
||||
[sub_resource type="VisualShaderNodeTexture" id="VisualShaderNodeTexture_nomvq"]
|
||||
texture = ExtResource("4_ihydq")
|
||||
|
||||
[sub_resource type="VisualShaderNodeVectorDecompose" id="VisualShaderNodeVectorDecompose_jkogv"]
|
||||
output_port_for_preview = 1
|
||||
|
||||
[sub_resource type="VisualShaderNodeInput" id="VisualShaderNodeInput_ficjf"]
|
||||
input_name = "uv"
|
||||
|
||||
[sub_resource type="VisualShaderNodeTexture" id="VisualShaderNodeTexture_63lrl"]
|
||||
texture = ExtResource("5_wlfoi")
|
||||
texture_type = 1
|
||||
|
||||
[sub_resource type="VisualShaderNodeFloatConstant" id="VisualShaderNodeFloatConstant_aakqf"]
|
||||
constant = 0.5
|
||||
|
||||
[sub_resource type="VisualShaderNodeFloatConstant" id="VisualShaderNodeFloatConstant_trpxg"]
|
||||
constant = 16.0
|
||||
|
||||
[resource]
|
||||
code = "shader_type spatial;
|
||||
render_mode blend_mix, depth_draw_opaque, cull_back, diffuse_lambert, specular_schlick_ggx;
|
||||
|
||||
uniform sampler2D tex_frg_2 : source_color;
|
||||
uniform sampler2D tex_frg_4;
|
||||
uniform sampler2D tex_frg_13 : source_color;
|
||||
uniform sampler2D tex_frg_7 : source_color;
|
||||
|
||||
|
||||
|
||||
void fragment() {
|
||||
// Input:6
|
||||
vec2 n_out6p0 = UV;
|
||||
|
||||
|
||||
// Texture2D:2
|
||||
vec4 n_out2p0 = texture(tex_frg_2, n_out6p0);
|
||||
|
||||
|
||||
// Texture2D:4
|
||||
vec4 n_out4p0 = texture(tex_frg_4, n_out6p0);
|
||||
|
||||
|
||||
// VectorDecompose:5
|
||||
float n_out5p0 = vec3(n_out4p0.xyz).x;
|
||||
float n_out5p1 = vec3(n_out4p0.xyz).y;
|
||||
float n_out5p2 = vec3(n_out4p0.xyz).z;
|
||||
|
||||
|
||||
// Texture2D:13
|
||||
vec4 n_out13p0 = texture(tex_frg_13, n_out6p0);
|
||||
|
||||
|
||||
// Texture2D:7
|
||||
vec4 n_out7p0 = texture(tex_frg_7, n_out6p0);
|
||||
|
||||
|
||||
// FloatConstant:8
|
||||
float n_out8p0 = 0.500000;
|
||||
|
||||
|
||||
// FloatConstant:9
|
||||
float n_out9p0 = 16.000000;
|
||||
|
||||
|
||||
// Input:11
|
||||
vec2 n_out11p0 = UV2;
|
||||
|
||||
|
||||
// FloatOp:12
|
||||
float n_out12p0 = n_out9p0 * n_out11p0.x;
|
||||
|
||||
|
||||
// FloatConstant:10
|
||||
float n_out10p0 = 0.200000;
|
||||
|
||||
|
||||
// Output:0
|
||||
ALBEDO = vec3(n_out2p0.xyz);
|
||||
METALLIC = n_out5p2;
|
||||
ROUGHNESS = n_out5p1;
|
||||
EMISSION = vec3(n_out13p0.xyz);
|
||||
NORMAL_MAP = vec3(n_out7p0.xyz);
|
||||
NORMAL_MAP_DEPTH = n_out8p0;
|
||||
CLEARCOAT = n_out12p0;
|
||||
CLEARCOAT_ROUGHNESS = n_out10p0;
|
||||
|
||||
|
||||
}
|
||||
"
|
||||
nodes/fragment/0/position = Vector2(940, 280)
|
||||
nodes/fragment/2/node = SubResource("VisualShaderNodeTexture_gndfb")
|
||||
nodes/fragment/2/position = Vector2(-320, -100)
|
||||
nodes/fragment/4/node = SubResource("VisualShaderNodeTexture_nomvq")
|
||||
nodes/fragment/4/position = Vector2(-320, 160)
|
||||
nodes/fragment/5/node = SubResource("VisualShaderNodeVectorDecompose_jkogv")
|
||||
nodes/fragment/5/position = Vector2(-80, 160)
|
||||
nodes/fragment/6/node = SubResource("VisualShaderNodeInput_ficjf")
|
||||
nodes/fragment/6/position = Vector2(-900, 300)
|
||||
nodes/fragment/7/node = SubResource("VisualShaderNodeTexture_63lrl")
|
||||
nodes/fragment/7/position = Vector2(-320, 440)
|
||||
nodes/fragment/8/node = SubResource("VisualShaderNodeFloatConstant_aakqf")
|
||||
nodes/fragment/8/position = Vector2(-140, 940)
|
||||
nodes/fragment/9/node = SubResource("VisualShaderNodeFloatConstant_trpxg")
|
||||
nodes/fragment/9/position = Vector2(-140, 640)
|
||||
nodes/fragment/10/node = SubResource("VisualShaderNodeFloatConstant_ecx0m")
|
||||
nodes/fragment/10/position = Vector2(180, 780)
|
||||
nodes/fragment/11/node = SubResource("VisualShaderNodeInput_fl837")
|
||||
nodes/fragment/11/position = Vector2(-240, 720)
|
||||
nodes/fragment/12/node = SubResource("VisualShaderNodeFloatOp_p4c60")
|
||||
nodes/fragment/12/position = Vector2(220, 580)
|
||||
nodes/fragment/13/node = SubResource("VisualShaderNodeTexture_fya24")
|
||||
nodes/fragment/13/position = Vector2(-460, 760)
|
||||
nodes/fragment/connections = PackedInt32Array(4, 0, 5, 0, 2, 0, 0, 0, 5, 2, 0, 2, 5, 1, 0, 3, 7, 0, 0, 9, 8, 0, 0, 10, 6, 0, 2, 0, 6, 0, 4, 0, 6, 0, 7, 0, 10, 0, 0, 14, 9, 0, 12, 0, 11, 0, 12, 1, 12, 0, 0, 13, 6, 0, 13, 0, 13, 0, 0, 5)
|
||||
@@ -0,0 +1,216 @@
|
||||
[gd_resource type="VisualShader" load_steps=22 format=3 uid="uid://dewwedodqpjub"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://c7g1lervup6pt" path="res://3d/models/textures/CHAR_AbeFace_emit.png" id="1_i27k8"]
|
||||
|
||||
[sub_resource type="VisualShaderNodeVectorDecompose" id="VisualShaderNodeVectorDecompose_d6qq4"]
|
||||
|
||||
[sub_resource type="VisualShaderNodeFloatOp" id="VisualShaderNodeFloatOp_elov7"]
|
||||
default_input_values = [0, 0.0, 1, 0.063]
|
||||
operator = 4
|
||||
|
||||
[sub_resource type="VisualShaderNodeFloatOp" id="VisualShaderNodeFloatOp_terno"]
|
||||
default_input_values = [0, 0.0, 1, 16.0]
|
||||
operator = 2
|
||||
|
||||
[sub_resource type="VisualShaderNodeFloatOp" id="VisualShaderNodeFloatOp_t2rfa"]
|
||||
default_input_values = [0, 0.0, 1, 16.0]
|
||||
operator = 2
|
||||
|
||||
[sub_resource type="Curve" id="Curve_xwnuv"]
|
||||
_data = [Vector2(0.1, 0), 0.0, 0.0, 0, 0, Vector2(0.1, 1), inf_neg, 0.0, 1, 1, Vector2(0.9, 1), 0.0, 1.0, 1, 0, Vector2(0.9, 0), 0.0, inf_neg, 0, 1]
|
||||
point_count = 4
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_gyi8v"]
|
||||
curve = SubResource("Curve_xwnuv")
|
||||
|
||||
[sub_resource type="VisualShaderNodeCurveTexture" id="VisualShaderNodeCurveTexture_4kyr2"]
|
||||
texture = SubResource("CurveTexture_gyi8v")
|
||||
|
||||
[sub_resource type="VisualShaderNodeFloatOp" id="VisualShaderNodeFloatOp_4i6vu"]
|
||||
output_port_for_preview = 0
|
||||
operator = 2
|
||||
|
||||
[sub_resource type="VisualShaderNodeVectorCompose" id="VisualShaderNodeVectorCompose_0m68h"]
|
||||
op_type = 0
|
||||
|
||||
[sub_resource type="VisualShaderNodeVectorDecompose" id="VisualShaderNodeVectorDecompose_n0bop"]
|
||||
default_input_values = [0, Vector2(0, 0)]
|
||||
op_type = 0
|
||||
|
||||
[sub_resource type="VisualShaderNodeVectorDecompose" id="VisualShaderNodeVectorDecompose_ljdly"]
|
||||
output_port_for_preview = 3
|
||||
default_input_values = [0, Quaternion(0, 0, 0, 0)]
|
||||
op_type = 2
|
||||
|
||||
[sub_resource type="VisualShaderNodeTexture" id="VisualShaderNodeTexture_73meh"]
|
||||
output_port_for_preview = 0
|
||||
texture = ExtResource("1_i27k8")
|
||||
texture_type = 1
|
||||
|
||||
[sub_resource type="VisualShaderNodeTexture2DParameter" id="VisualShaderNodeTexture2DParameter_1mc6n"]
|
||||
parameter_name = "Texture2DParameter"
|
||||
texture_filter = 1
|
||||
texture_source = 1
|
||||
|
||||
[sub_resource type="VisualShaderNodeCurveTexture" id="VisualShaderNodeCurveTexture_hhrdd"]
|
||||
texture = SubResource("CurveTexture_gyi8v")
|
||||
|
||||
[sub_resource type="VisualShaderNodeMix" id="VisualShaderNodeMix_4bp17"]
|
||||
output_port_for_preview = 0
|
||||
|
||||
[sub_resource type="VisualShaderNodeColorConstant" id="VisualShaderNodeColorConstant_4wfcn"]
|
||||
constant = Color(0, 0, 0, 1)
|
||||
|
||||
[sub_resource type="VisualShaderNodeMix" id="VisualShaderNodeMix_6vexp"]
|
||||
default_input_values = [0, Vector3(0, 0, 0), 1, Vector3(1, 1, 1), 2, Vector3(0.5, 0.5, 0.5)]
|
||||
op_type = 3
|
||||
|
||||
[sub_resource type="VisualShaderNodeColorConstant" id="VisualShaderNodeColorConstant_tbf24"]
|
||||
constant = Color(2.49804, 1.28235, 0, 1)
|
||||
|
||||
[sub_resource type="VisualShaderNodeInput" id="VisualShaderNodeInput_tmgrx"]
|
||||
input_name = "uv2"
|
||||
|
||||
[sub_resource type="VisualShaderNodeFloatOp" id="VisualShaderNodeFloatOp_4ty6k"]
|
||||
default_input_values = [0, 0.0, 1, 0.063]
|
||||
operator = 4
|
||||
|
||||
[resource]
|
||||
code = "shader_type spatial;
|
||||
render_mode blend_mix, depth_draw_opaque, cull_back, diffuse_lambert, specular_schlick_ggx;
|
||||
|
||||
uniform sampler2D Texture2DParameter : filter_nearest, hint_screen_texture;
|
||||
uniform sampler2D tex_frg_24 : source_color;
|
||||
uniform sampler2D curve_frg_26 : repeat_disable;
|
||||
uniform sampler2D curve_frg_14 : repeat_disable;
|
||||
|
||||
|
||||
|
||||
void fragment() {
|
||||
// ColorConstant:28
|
||||
vec4 n_out28p0 = vec4(0.000000, 0.000000, 0.000000, 1.000000);
|
||||
|
||||
|
||||
// Input:6
|
||||
vec2 n_out6p0 = UV2;
|
||||
|
||||
|
||||
// VectorDecompose:17
|
||||
float n_out17p0 = n_out6p0.x;
|
||||
float n_out17p1 = n_out6p0.y;
|
||||
|
||||
|
||||
// VectorCompose:16
|
||||
vec2 n_out16p0 = vec2(n_out17p0, n_out17p1);
|
||||
|
||||
|
||||
// Texture2D:24
|
||||
vec4 n_out24p0 = texture(tex_frg_24, n_out16p0);
|
||||
|
||||
|
||||
// VectorDecompose:22
|
||||
float n_out22p0 = n_out24p0.x;
|
||||
float n_out22p1 = n_out24p0.y;
|
||||
float n_out22p2 = n_out24p0.z;
|
||||
float n_out22p3 = n_out24p0.w;
|
||||
|
||||
|
||||
// VectorDecompose:10
|
||||
float n_out10p0 = vec3(n_out6p0, 0.0).x;
|
||||
float n_out10p1 = vec3(n_out6p0, 0.0).y;
|
||||
float n_out10p2 = vec3(n_out6p0, 0.0).z;
|
||||
|
||||
|
||||
// FloatOp:11
|
||||
float n_in11p1 = 0.06300;
|
||||
float n_out11p0 = mod(n_out10p1, n_in11p1);
|
||||
|
||||
|
||||
// FloatOp:13
|
||||
float n_in13p1 = 16.00000;
|
||||
float n_out13p0 = n_out11p0 * n_in13p1;
|
||||
|
||||
|
||||
// CurveTexture:26
|
||||
float n_out26p0 = texture(curve_frg_26, vec2(n_out13p0)).r;
|
||||
|
||||
|
||||
// FloatOp:9
|
||||
float n_in9p1 = 0.06300;
|
||||
float n_out9p0 = mod(n_out10p0, n_in9p1);
|
||||
|
||||
|
||||
// FloatOp:12
|
||||
float n_in12p1 = 16.00000;
|
||||
float n_out12p0 = n_out9p0 * n_in12p1;
|
||||
|
||||
|
||||
// CurveTexture:14
|
||||
float n_out14p0 = texture(curve_frg_14, vec2(n_out12p0)).r;
|
||||
|
||||
|
||||
// FloatOp:15
|
||||
float n_out15p0 = n_out26p0 * n_out14p0;
|
||||
|
||||
|
||||
// Mix:27
|
||||
float n_in27p0 = 0.00000;
|
||||
float n_out27p0 = mix(n_in27p0, n_out22p3, n_out15p0);
|
||||
|
||||
|
||||
// ColorConstant:5
|
||||
vec4 n_out5p0 = vec4(2.498040, 1.282350, 0.000000, 1.000000);
|
||||
|
||||
|
||||
// Mix:4
|
||||
vec3 n_in4p0 = vec3(0.00000, 0.00000, 0.00000);
|
||||
vec3 n_out4p0 = mix(n_in4p0, vec3(n_out5p0.xyz), vec3(n_out27p0));
|
||||
|
||||
|
||||
// Output:0
|
||||
ALBEDO = vec3(n_out28p0.xyz);
|
||||
ALPHA = n_out27p0;
|
||||
EMISSION = n_out4p0;
|
||||
DEPTH = n_out27p0;
|
||||
|
||||
|
||||
}
|
||||
"
|
||||
nodes/fragment/0/position = Vector2(1720, -480)
|
||||
nodes/fragment/4/node = SubResource("VisualShaderNodeMix_6vexp")
|
||||
nodes/fragment/4/position = Vector2(1120, 360)
|
||||
nodes/fragment/5/node = SubResource("VisualShaderNodeColorConstant_tbf24")
|
||||
nodes/fragment/5/position = Vector2(660, 480)
|
||||
nodes/fragment/6/node = SubResource("VisualShaderNodeInput_tmgrx")
|
||||
nodes/fragment/6/position = Vector2(-1339.8, 488.2)
|
||||
nodes/fragment/9/node = SubResource("VisualShaderNodeFloatOp_4ty6k")
|
||||
nodes/fragment/9/position = Vector2(-439.8, 48.2)
|
||||
nodes/fragment/10/node = SubResource("VisualShaderNodeVectorDecompose_d6qq4")
|
||||
nodes/fragment/10/position = Vector2(-699.8, 168.2)
|
||||
nodes/fragment/11/node = SubResource("VisualShaderNodeFloatOp_elov7")
|
||||
nodes/fragment/11/position = Vector2(-439.8, 168.2)
|
||||
nodes/fragment/12/node = SubResource("VisualShaderNodeFloatOp_terno")
|
||||
nodes/fragment/12/position = Vector2(-279.8, 28.2)
|
||||
nodes/fragment/13/node = SubResource("VisualShaderNodeFloatOp_t2rfa")
|
||||
nodes/fragment/13/position = Vector2(-279.8, 148.2)
|
||||
nodes/fragment/14/node = SubResource("VisualShaderNodeCurveTexture_4kyr2")
|
||||
nodes/fragment/14/position = Vector2(-99.8, -111.8)
|
||||
nodes/fragment/15/node = SubResource("VisualShaderNodeFloatOp_4i6vu")
|
||||
nodes/fragment/15/position = Vector2(300.2, 48.2)
|
||||
nodes/fragment/16/node = SubResource("VisualShaderNodeVectorCompose_0m68h")
|
||||
nodes/fragment/16/position = Vector2(-239.8, 428.2)
|
||||
nodes/fragment/17/node = SubResource("VisualShaderNodeVectorDecompose_n0bop")
|
||||
nodes/fragment/17/position = Vector2(-799.8, 448.2)
|
||||
nodes/fragment/22/node = SubResource("VisualShaderNodeVectorDecompose_ljdly")
|
||||
nodes/fragment/22/position = Vector2(340.2, 468.2)
|
||||
nodes/fragment/24/node = SubResource("VisualShaderNodeTexture_73meh")
|
||||
nodes/fragment/24/position = Vector2(60.2, 488.2)
|
||||
nodes/fragment/25/node = SubResource("VisualShaderNodeTexture2DParameter_1mc6n")
|
||||
nodes/fragment/25/position = Vector2(-620, 680)
|
||||
nodes/fragment/26/node = SubResource("VisualShaderNodeCurveTexture_hhrdd")
|
||||
nodes/fragment/26/position = Vector2(-99.8, 148.2)
|
||||
nodes/fragment/27/node = SubResource("VisualShaderNodeMix_4bp17")
|
||||
nodes/fragment/27/position = Vector2(620, 140)
|
||||
nodes/fragment/28/node = SubResource("VisualShaderNodeColorConstant_4wfcn")
|
||||
nodes/fragment/28/position = Vector2(1365.81, -489.417)
|
||||
nodes/fragment/connections = PackedInt32Array(25, 0, 24, 2, 24, 0, 22, 0, 5, 0, 4, 1, 6, 0, 10, 0, 10, 0, 9, 0, 10, 1, 11, 0, 9, 0, 12, 0, 11, 0, 13, 0, 12, 0, 14, 0, 13, 0, 26, 0, 26, 0, 15, 0, 14, 0, 15, 1, 6, 0, 17, 0, 17, 1, 16, 1, 16, 0, 24, 0, 17, 0, 16, 0, 15, 0, 27, 2, 22, 3, 27, 1, 27, 0, 4, 2, 27, 0, 0, 1, 4, 0, 0, 5, 28, 0, 0, 0, 27, 0, 0, 23)
|
||||
@@ -0,0 +1,7 @@
|
||||
[gd_resource type="ShaderMaterial" load_steps=2 format=3 uid="uid://o47otplapfan"]
|
||||
|
||||
[ext_resource type="Shader" uid="uid://ct38forho5n4j" path="res://Shaders/LVL_SHD_Dojo.tres" id="1_epuwb"]
|
||||
|
||||
[resource]
|
||||
render_priority = 0
|
||||
shader = ExtResource("1_epuwb")
|
||||
@@ -0,0 +1,67 @@
|
||||
[gd_resource type="VisualShader" load_steps=6 format=3 uid="uid://ct38forho5n4j"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cj3ncv0ep6gcp" path="res://3d/models/textures/LVL_Dojo_grid.jpg" id="1_1ynut"]
|
||||
|
||||
[sub_resource type="VisualShaderNodeTexture" id="VisualShaderNodeTexture_ipci5"]
|
||||
texture = ExtResource("1_1ynut")
|
||||
texture_type = 1
|
||||
|
||||
[sub_resource type="VisualShaderNodeVectorDecompose" id="VisualShaderNodeVectorDecompose_0onfs"]
|
||||
|
||||
[sub_resource type="VisualShaderNodeVectorCompose" id="VisualShaderNodeVectorCompose_h2oi5"]
|
||||
|
||||
[sub_resource type="VisualShaderNodeRemap" id="VisualShaderNodeRemap_m8jn0"]
|
||||
|
||||
[resource]
|
||||
code = "shader_type spatial;
|
||||
render_mode blend_mix, depth_draw_opaque, cull_back, diffuse_lambert, specular_schlick_ggx;
|
||||
|
||||
uniform sampler2D tex_frg_2 : source_color;
|
||||
|
||||
|
||||
|
||||
void fragment() {
|
||||
// Texture2D:2
|
||||
vec4 n_out2p0 = texture(tex_frg_2, UV);
|
||||
|
||||
|
||||
// VectorDecompose:3
|
||||
float n_out3p0 = vec3(n_out2p0.xyz).x;
|
||||
float n_out3p1 = vec3(n_out2p0.xyz).y;
|
||||
float n_out3p2 = vec3(n_out2p0.xyz).z;
|
||||
|
||||
|
||||
// VectorCompose:4
|
||||
vec3 n_out4p0 = vec3(n_out3p0, n_out3p0, n_out3p0);
|
||||
|
||||
|
||||
float n_out5p0;
|
||||
// Remap:5
|
||||
float n_in5p1 = 0.00000;
|
||||
float n_in5p2 = 1.00000;
|
||||
float n_in5p3 = 0.00000;
|
||||
float n_in5p4 = 1.00000;
|
||||
{
|
||||
float __input_range = n_in5p2 - n_in5p1;
|
||||
float __output_range = n_in5p4 - n_in5p3;
|
||||
n_out5p0 = n_in5p3 + __output_range * ((n_out4p0.x - n_in5p1) / __input_range);
|
||||
}
|
||||
|
||||
|
||||
// Output:0
|
||||
ALBEDO = n_out4p0;
|
||||
ROUGHNESS = n_out5p0;
|
||||
|
||||
|
||||
}
|
||||
"
|
||||
nodes/fragment/0/position = Vector2(720, 100)
|
||||
nodes/fragment/2/node = SubResource("VisualShaderNodeTexture_ipci5")
|
||||
nodes/fragment/2/position = Vector2(-460, 220)
|
||||
nodes/fragment/3/node = SubResource("VisualShaderNodeVectorDecompose_0onfs")
|
||||
nodes/fragment/3/position = Vector2(0, 100)
|
||||
nodes/fragment/4/node = SubResource("VisualShaderNodeVectorCompose_h2oi5")
|
||||
nodes/fragment/4/position = Vector2(260, 120)
|
||||
nodes/fragment/5/node = SubResource("VisualShaderNodeRemap_m8jn0")
|
||||
nodes/fragment/5/position = Vector2(440, 260)
|
||||
nodes/fragment/connections = PackedInt32Array(2, 0, 3, 0, 3, 0, 4, 0, 3, 0, 4, 1, 3, 0, 4, 2, 4, 0, 0, 0, 4, 0, 5, 0, 5, 0, 0, 3)
|
||||
@@ -0,0 +1,3 @@
|
||||
[gd_resource type="ShaderMaterial" format=3 uid="uid://b6gfyuvl8423f"]
|
||||
|
||||
[resource]
|
||||
@@ -0,0 +1,26 @@
|
||||
[gd_resource type="VisualShader" load_steps=2 format=3 uid="uid://do64lk1u6jf17"]
|
||||
|
||||
[sub_resource type="VisualShaderNodeInput" id="VisualShaderNodeInput_ofnfe"]
|
||||
input_name = "color"
|
||||
|
||||
[resource]
|
||||
code = "shader_type spatial;
|
||||
render_mode blend_mix, depth_draw_opaque, cull_back, diffuse_lambert, specular_schlick_ggx;
|
||||
|
||||
|
||||
|
||||
|
||||
void fragment() {
|
||||
// Input:3
|
||||
vec4 n_out3p0 = COLOR;
|
||||
|
||||
|
||||
// Output:0
|
||||
ALBEDO = vec3(n_out3p0.xyz);
|
||||
|
||||
|
||||
}
|
||||
"
|
||||
nodes/fragment/3/node = SubResource("VisualShaderNodeInput_ofnfe")
|
||||
nodes/fragment/3/position = Vector2(-140, 280)
|
||||
nodes/fragment/connections = PackedInt32Array(3, 0, 0, 0)
|
||||
Reference in New Issue
Block a user