[gd_resource type="VisualShader" load_steps=12 format=3 uid="uid://c8kholmrafem8"]

[sub_resource type="VisualShaderNodeVectorOp" id="VisualShaderNodeVectorOp_rpjy3"]
default_input_values = [0, Vector3(0, 0, 0), 1, Vector3(1, 0, 1)]
operator = 2

[sub_resource type="VisualShaderNodeVectorOp" id="VisualShaderNodeVectorOp_cxtpw"]
default_input_values = [0, Vector3(0, 0, 0), 1, Vector3(1, 0, 1)]

[sub_resource type="VisualShaderNodeColorParameter" id="VisualShaderNodeColorParameter_rpjy3"]
parameter_name = "replacement_color"

[sub_resource type="VisualShaderNodeInput" id="VisualShaderNodeInput_jm1fk"]
expanded_output_ports = [0]
input_name = "color"

[sub_resource type="VisualShaderNodeVectorOp" id="VisualShaderNodeVectorOp_glpyr"]
default_input_values = [0, Vector3(0, 0, 0), 1, Vector3(1, 0, 1)]
operator = 2

[sub_resource type="VisualShaderNodeVectorLen" id="VisualShaderNodeVectorLen_b8j78"]

[sub_resource type="VisualShaderNodeVectorOp" id="VisualShaderNodeVectorOp_452jj"]
default_input_values = [0, Vector3(0, 0, 0), 1, Vector3(1, 0, 1)]
operator = 2

[sub_resource type="VisualShaderNodeStep" id="VisualShaderNodeStep_604ce"]
default_input_values = [0, 0.01, 1, 0.0]

[sub_resource type="VisualShaderNodeFloatFunc" id="VisualShaderNodeFloatFunc_1gm2x"]
function = 31

[sub_resource type="VisualShaderNodeColorConstant" id="VisualShaderNodeColorConstant_r716q"]
constant = Color(0.153024, 0.27858, 0.323299, 1)

[sub_resource type="VisualShaderNodeFloatOp" id="VisualShaderNodeFloatOp_d0qtb"]

[resource]
code = "shader_type canvas_item;
render_mode blend_mix;

uniform vec4 replacement_color : source_color;



void fragment() {
// Input:2
	vec4 n_out2p0 = COLOR;
	float n_out2p2 = n_out2p0.g;


// VectorOp:3
	vec3 n_in3p1 = vec3(1.00000, 0.00000, 1.00000);
	vec3 n_out3p0 = vec3(n_out2p0.xyz) * n_in3p1;


// VectorLen:4
	float n_out4p0 = length(n_out3p0);


// Step:6
	float n_in6p0 = 0.01000;
	float n_out6p0 = step(n_in6p0, n_out4p0);


// VectorOp:10
	vec3 n_out10p0 = vec3(n_out6p0) * vec3(n_out2p0.xyz);


// FloatFunc:7
	float n_out7p0 = 1.0 - n_out6p0;


// FloatOp:9
	float n_out9p0 = n_out7p0 + n_out2p2;


// ColorParameter:12
	vec4 n_out12p0 = replacement_color;


// VectorOp:5
	vec3 n_out5p0 = vec3(n_out9p0) * vec3(n_out12p0.xyz);


// VectorOp:11
	vec3 n_out11p0 = n_out10p0 + n_out5p0;


// Output:0
	COLOR.rgb = n_out11p0;


}
"
mode = 1
flags/light_only = false
nodes/fragment/0/position = Vector2(1640, -100)
nodes/fragment/2/node = SubResource("VisualShaderNodeInput_jm1fk")
nodes/fragment/2/position = Vector2(-1640, 260)
nodes/fragment/3/node = SubResource("VisualShaderNodeVectorOp_glpyr")
nodes/fragment/3/position = Vector2(-1100, -60)
nodes/fragment/4/node = SubResource("VisualShaderNodeVectorLen_b8j78")
nodes/fragment/4/position = Vector2(-780, 0)
nodes/fragment/5/node = SubResource("VisualShaderNodeVectorOp_452jj")
nodes/fragment/5/position = Vector2(640, 140)
nodes/fragment/6/node = SubResource("VisualShaderNodeStep_604ce")
nodes/fragment/6/position = Vector2(-440, -40)
nodes/fragment/7/node = SubResource("VisualShaderNodeFloatFunc_1gm2x")
nodes/fragment/7/position = Vector2(-80, 40)
nodes/fragment/8/node = SubResource("VisualShaderNodeColorConstant_r716q")
nodes/fragment/8/position = Vector2(80, 800)
nodes/fragment/9/node = SubResource("VisualShaderNodeFloatOp_d0qtb")
nodes/fragment/9/position = Vector2(260, 160)
nodes/fragment/10/node = SubResource("VisualShaderNodeVectorOp_rpjy3")
nodes/fragment/10/position = Vector2(620, -180)
nodes/fragment/11/node = SubResource("VisualShaderNodeVectorOp_cxtpw")
nodes/fragment/11/position = Vector2(1160, 0)
nodes/fragment/12/node = SubResource("VisualShaderNodeColorParameter_rpjy3")
nodes/fragment/12/position = Vector2(0, 460)
nodes/fragment/connections = PackedInt32Array(2, 0, 3, 0, 3, 0, 4, 0, 4, 0, 6, 1, 6, 0, 7, 0, 7, 0, 9, 0, 9, 0, 5, 0, 2, 2, 9, 1, 6, 0, 10, 0, 2, 0, 10, 1, 10, 0, 11, 0, 5, 0, 11, 1, 11, 0, 0, 0, 12, 0, 5, 1)
