[gd_resource type="VisualShader" load_steps=6 format=3 uid="uid://ct38forho5n4j"]

[ext_resource type="Texture2D" uid="uid://bwijchpa6wb5d" path="res://textures/LVL_Dojo_grid.png" id="1_n2jv7"]

[sub_resource type="VisualShaderNodeTexture" id="VisualShaderNodeTexture_ipci5"]
texture = ExtResource("1_n2jv7")
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)
