[gd_resource type="VisualShader" load_steps=17 format=3 uid="uid://ddqioqbov85a2"] [sub_resource type="VisualShaderNodeMix" id="VisualShaderNodeMix_6xgmc"] output_port_for_preview = 0 [sub_resource type="VisualShaderNodeMix" id="VisualShaderNodeMix_ledym"] output_port_for_preview = 0 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_mlnkv"] constant = Color(0.960814, 0.604173, 0.390603, 1) [sub_resource type="VisualShaderNodeFloatOp" id="VisualShaderNodeFloatOp_aol56"] default_input_values = [0, 0.0, 1, 0.07] operator = 1 [sub_resource type="VisualShaderNodeIf" id="VisualShaderNodeIf_n1s11"] output_port_for_preview = 0 [sub_resource type="VisualShaderNodeRemap" id="VisualShaderNodeRemap_x7l5e"] default_input_values = [1, 0.0, 2, 1.0, 3, 0.0, 4, 1.07] [sub_resource type="VisualShaderNodeFloatOp" id="VisualShaderNodeFloatOp_0qr2v"] default_input_values = [0, 0.0, 1, 1.0] [sub_resource type="VisualShaderNodeFloatParameter" id="VisualShaderNodeFloatParameter_7noaw"] output_port_for_preview = 0 parameter_name = "DissolveEffectWidth" hint = 1 max = 0.2 default_value_enabled = true default_value = 0.08 [sub_resource type="VisualShaderNodeTexture2DParameter" id="VisualShaderNodeTexture2DParameter_nfnwc"] parameter_name = "Noise" [sub_resource type="VisualShaderNodeTexture" id="VisualShaderNodeTexture_8olli"] output_port_for_preview = 0 source = 5 [sub_resource type="VisualShaderNodeIf" id="VisualShaderNodeIf_vaaem"] output_port_for_preview = 0 [sub_resource type="VisualShaderNodeFloatConstant" id="VisualShaderNodeFloatConstant_kg0xq"] [sub_resource type="VisualShaderNodeFloatConstant" id="VisualShaderNodeFloatConstant_tslfp"] constant = 1.0 [sub_resource type="VisualShaderNodeFloatParameter" id="VisualShaderNodeFloatParameter_bvbxm"] output_port_for_preview = 0 parameter_name = "DissolveValue" hint = 1 [sub_resource type="VisualShaderNodeInput" id="VisualShaderNodeInput_v6qcn"] input_name = "texture" [sub_resource type="VisualShaderNodeTexture" id="VisualShaderNodeTexture_u8gkl"] expanded_output_ports = [0] source = 5 [resource] code = "shader_type canvas_item; render_mode blend_mix; uniform sampler2D Noise; uniform float DissolveValue : hint_range(0, 1); uniform float DissolveEffectWidth : hint_range(0, 0.20000000298023) = 0.07999999821186; void fragment() { // ColorConstant:12 vec4 n_out12p0 = vec4(0.960814, 0.604173, 0.390603, 1.000000); vec4 n_out9p0; // Texture2D:9 n_out9p0 = texture(TEXTURE, UV); float n_out9p4 = n_out9p0.a; vec4 n_out3p0; // Texture2D:3 n_out3p0 = texture(Noise, UV); // FloatParameter:7 float n_out7p0 = DissolveValue; // FloatParameter:18 float n_out18p0 = DissolveEffectWidth; // FloatOp:17 float n_in17p1 = 1.00000; float n_out17p0 = n_out18p0 + n_in17p1; float n_out15p0; // Remap:15 float n_in15p1 = 0.00000; float n_in15p2 = 1.00000; float n_in15p3 = 0.00000; { float __input_range = n_in15p2 - n_in15p1; float __output_range = n_out17p0 - n_in15p3; n_out15p0 = n_in15p3 + __output_range * ((n_out7p0 - n_in15p1) / __input_range); } // FloatOp:13 float n_out13p0 = n_out15p0 - n_out18p0; // FloatConstant:5 float n_out5p0 = 0.000000; // FloatConstant:6 float n_out6p0 = 1.000000; vec3 n_out14p0; // If:14 float n_in14p2 = 0.00001; vec3 n_in14p3 = vec3(0.00000, 0.00000, 0.00000); if(abs(n_out3p0.x - n_out13p0) < n_in14p2) { n_out14p0 = n_in14p3; } else if(n_out3p0.x < n_out13p0) { n_out14p0 = vec3(n_out6p0); } else { n_out14p0 = vec3(n_out5p0); } // Mix:11 vec3 n_out11p0 = mix(vec3(n_out12p0.xyz), vec3(n_out9p0.xyz), n_out14p0); vec3 n_out4p0; // If:4 float n_in4p2 = 0.00001; vec3 n_in4p3 = vec3(0.00000, 0.00000, 0.00000); if(abs(n_out3p0.x - n_out7p0) < n_in4p2) { n_out4p0 = n_in4p3; } else if(n_out3p0.x < n_out7p0) { n_out4p0 = vec3(n_out6p0); } else { n_out4p0 = vec3(n_out5p0); } // Mix:10 float n_in10p0 = 0.00000; float n_out10p0 = mix(n_in10p0, n_out9p4, n_out4p0.x); // Output:0 COLOR.rgb = n_out11p0; COLOR.a = n_out10p0; } " mode = 1 flags/light_only = false nodes/fragment/0/position = Vector2(1160, -80) nodes/fragment/2/node = SubResource("VisualShaderNodeTexture2DParameter_nfnwc") nodes/fragment/2/position = Vector2(-1260, 120) nodes/fragment/3/node = SubResource("VisualShaderNodeTexture_8olli") nodes/fragment/3/position = Vector2(-880, 140) nodes/fragment/4/node = SubResource("VisualShaderNodeIf_vaaem") nodes/fragment/4/position = Vector2(80, 380) nodes/fragment/5/node = SubResource("VisualShaderNodeFloatConstant_kg0xq") nodes/fragment/5/position = Vector2(-540, 700) nodes/fragment/6/node = SubResource("VisualShaderNodeFloatConstant_tslfp") nodes/fragment/6/position = Vector2(-540, 800) nodes/fragment/7/node = SubResource("VisualShaderNodeFloatParameter_bvbxm") nodes/fragment/7/position = Vector2(-1300, 740) nodes/fragment/8/node = SubResource("VisualShaderNodeInput_v6qcn") nodes/fragment/8/position = Vector2(-680, -320) nodes/fragment/9/node = SubResource("VisualShaderNodeTexture_u8gkl") nodes/fragment/9/position = Vector2(-360, -420) nodes/fragment/10/node = SubResource("VisualShaderNodeMix_6xgmc") nodes/fragment/10/position = Vector2(800, -60) nodes/fragment/11/node = SubResource("VisualShaderNodeMix_ledym") nodes/fragment/11/position = Vector2(800, -440) nodes/fragment/12/node = SubResource("VisualShaderNodeColorConstant_mlnkv") nodes/fragment/12/position = Vector2(560, -460) nodes/fragment/13/node = SubResource("VisualShaderNodeFloatOp_aol56") nodes/fragment/13/position = Vector2(-600, 420) nodes/fragment/14/node = SubResource("VisualShaderNodeIf_n1s11") nodes/fragment/14/position = Vector2(80, -60) nodes/fragment/15/node = SubResource("VisualShaderNodeRemap_x7l5e") nodes/fragment/15/position = Vector2(-960, 560) nodes/fragment/17/node = SubResource("VisualShaderNodeFloatOp_0qr2v") nodes/fragment/17/position = Vector2(-1220, 560) nodes/fragment/18/node = SubResource("VisualShaderNodeFloatParameter_7noaw") nodes/fragment/18/position = Vector2(-1720, 500) nodes/fragment/connections = PackedInt32Array(2, 0, 3, 2, 3, 0, 4, 0, 5, 0, 4, 4, 6, 0, 4, 5, 8, 0, 9, 2, 4, 0, 10, 2, 10, 0, 0, 1, 9, 4, 10, 1, 9, 0, 11, 1, 12, 0, 11, 0, 11, 0, 0, 0, 3, 0, 14, 0, 13, 0, 14, 1, 5, 0, 14, 4, 6, 0, 14, 5, 14, 0, 11, 2, 7, 0, 15, 0, 15, 0, 13, 0, 7, 0, 4, 1, 17, 0, 15, 4, 18, 0, 13, 1, 18, 0, 17, 0)