|
| 1 | +[gd_resource type="VisualShader" load_steps=18 format=3 uid="uid://dqkjmlhhumhgf"] |
| 2 | + |
| 3 | +[sub_resource type="VisualShaderNodeVectorOp" id="VisualShaderNodeVectorOp_p3vkb"] |
| 4 | +operator = 2 |
| 5 | + |
| 6 | +[sub_resource type="VisualShaderNodeCompare" id="VisualShaderNodeCompare_4bg14"] |
| 7 | +default_input_values = [0, 0.0, 1, 0.5, 2, 1e-05] |
| 8 | +function = 3 |
| 9 | + |
| 10 | +[sub_resource type="FastNoiseLite" id="FastNoiseLite_027yt"] |
| 11 | +noise_type = 2 |
| 12 | +frequency = 0.1 |
| 13 | +fractal_type = 0 |
| 14 | +fractal_gain = 0.0 |
| 15 | +cellular_distance_function = 1 |
| 16 | + |
| 17 | +[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_t8xqg"] |
| 18 | +width = 256 |
| 19 | +height = 128 |
| 20 | +seamless = true |
| 21 | +seamless_blend_skirt = 1.0 |
| 22 | +noise = SubResource("FastNoiseLite_027yt") |
| 23 | + |
| 24 | +[sub_resource type="VisualShaderNodeTexture" id="VisualShaderNodeTexture_he0g8"] |
| 25 | +texture = SubResource("NoiseTexture2D_t8xqg") |
| 26 | + |
| 27 | +[sub_resource type="VisualShaderNodeVectorOp" id="VisualShaderNodeVectorOp_dlula"] |
| 28 | + |
| 29 | +[sub_resource type="VisualShaderNodeFloatParameter" id="VisualShaderNodeFloatParameter_ohb8j"] |
| 30 | +parameter_name = "uv_scale" |
| 31 | +default_value_enabled = true |
| 32 | +default_value = 64.0 |
| 33 | + |
| 34 | +[sub_resource type="VisualShaderNodeUVFunc" id="VisualShaderNodeUVFunc_crb68"] |
| 35 | + |
| 36 | +[sub_resource type="VisualShaderNodeUVFunc" id="VisualShaderNodeUVFunc_wsdan"] |
| 37 | + |
| 38 | +[sub_resource type="VisualShaderNodeInput" id="VisualShaderNodeInput_3ckc2"] |
| 39 | +input_name = "time" |
| 40 | + |
| 41 | +[sub_resource type="VisualShaderNodeVec2Parameter" id="VisualShaderNodeVec2Parameter_y5pgd"] |
| 42 | +parameter_name = "direction_1" |
| 43 | +default_value_enabled = true |
| 44 | +default_value = Vector2(0.01, 0.01) |
| 45 | + |
| 46 | +[sub_resource type="VisualShaderNodeVec2Parameter" id="VisualShaderNodeVec2Parameter_3jkoy"] |
| 47 | +parameter_name = "direction_2" |
| 48 | +default_value_enabled = true |
| 49 | +default_value = Vector2(0.01, 0.01) |
| 50 | + |
| 51 | +[sub_resource type="VisualShaderNodeUVFunc" id="VisualShaderNodeUVFunc_tg5xa"] |
| 52 | +function = 1 |
| 53 | + |
| 54 | +[sub_resource type="VisualShaderNodeUVFunc" id="VisualShaderNodeUVFunc_22gys"] |
| 55 | +function = 1 |
| 56 | + |
| 57 | +[sub_resource type="FastNoiseLite" id="FastNoiseLite_dwbrq"] |
| 58 | +noise_type = 2 |
| 59 | +seed = 115 |
| 60 | +frequency = 0.15 |
| 61 | +fractal_type = 0 |
| 62 | +fractal_gain = 0.0 |
| 63 | +cellular_distance_function = 1 |
| 64 | + |
| 65 | +[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_ubb2d"] |
| 66 | +width = 256 |
| 67 | +height = 128 |
| 68 | +seamless = true |
| 69 | +seamless_blend_skirt = 1.0 |
| 70 | +noise = SubResource("FastNoiseLite_dwbrq") |
| 71 | + |
| 72 | +[sub_resource type="VisualShaderNodeTexture" id="VisualShaderNodeTexture_g5d63"] |
| 73 | +texture = SubResource("NoiseTexture2D_ubb2d") |
| 74 | + |
| 75 | +[resource] |
| 76 | +code = "shader_type spatial; |
| 77 | +render_mode blend_mix, depth_draw_opaque, cull_back, diffuse_lambert, specular_schlick_ggx; |
| 78 | + |
| 79 | +uniform float uv_scale = 64.0; |
| 80 | +uniform vec2 direction_2 = vec2(0.010000, 0.010000); |
| 81 | +uniform sampler2D tex_frg_9; |
| 82 | +uniform vec2 direction_1 = vec2(0.010000, 0.010000); |
| 83 | +uniform sampler2D tex_frg_12; |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | +void fragment() { |
| 88 | +// FloatParameter:14 |
| 89 | + float n_out14p0 = uv_scale; |
| 90 | + |
| 91 | + |
| 92 | +// UVFunc:7 |
| 93 | + vec2 n_in7p2 = vec2(0.00000, 0.00000); |
| 94 | + vec2 n_out7p0 = (UV - n_in7p2) * vec2(n_out14p0) + n_in7p2; |
| 95 | + |
| 96 | + |
| 97 | +// Vector2Parameter:6 |
| 98 | + vec2 n_out6p0 = direction_2; |
| 99 | + |
| 100 | + |
| 101 | +// Input:4 |
| 102 | + float n_out4p0 = TIME; |
| 103 | + |
| 104 | + |
| 105 | +// UVFunc:3 |
| 106 | + vec2 n_out3p0 = vec2(n_out4p0) * n_out6p0 + n_out7p0; |
| 107 | + |
| 108 | + |
| 109 | +// Texture2D:9 |
| 110 | + vec4 n_out9p0 = texture(tex_frg_9, n_out3p0); |
| 111 | + |
| 112 | + |
| 113 | +// UVFunc:8 |
| 114 | + vec2 n_in8p2 = vec2(0.00000, 0.00000); |
| 115 | + vec2 n_out8p0 = (UV - n_in8p2) * vec2(n_out14p0) + n_in8p2; |
| 116 | + |
| 117 | + |
| 118 | +// Vector2Parameter:5 |
| 119 | + vec2 n_out5p0 = direction_1; |
| 120 | + |
| 121 | + |
| 122 | +// UVFunc:2 |
| 123 | + vec2 n_out2p0 = vec2(n_out4p0) * n_out5p0 + n_out8p0; |
| 124 | + |
| 125 | + |
| 126 | +// Texture2D:12 |
| 127 | + vec4 n_out12p0 = texture(tex_frg_12, n_out2p0); |
| 128 | + |
| 129 | + |
| 130 | +// VectorOp:13 |
| 131 | + vec3 n_out13p0 = vec3(n_out9p0.xyz) + vec3(n_out12p0.xyz); |
| 132 | + |
| 133 | + |
| 134 | +// Compare:11 |
| 135 | + float n_in11p1 = 0.50000; |
| 136 | + bool n_out11p0 = n_out13p0.x >= n_in11p1; |
| 137 | + |
| 138 | + |
| 139 | +// VectorOp:10 |
| 140 | + vec3 n_out10p0 = n_out13p0 * vec3(n_out11p0 ? 1.0 : 0.0); |
| 141 | + |
| 142 | + |
| 143 | +// Output:0 |
| 144 | + ALBEDO = n_out10p0; |
| 145 | + ALPHA = n_out10p0.x; |
| 146 | + |
| 147 | + |
| 148 | +} |
| 149 | +" |
| 150 | +graph_offset = Vector2(398.705, 102.4) |
| 151 | +nodes/fragment/0/position = Vector2(1520, 300) |
| 152 | +nodes/fragment/2/node = SubResource("VisualShaderNodeUVFunc_crb68") |
| 153 | +nodes/fragment/2/position = Vector2(265.563, 58.5239) |
| 154 | +nodes/fragment/3/node = SubResource("VisualShaderNodeUVFunc_wsdan") |
| 155 | +nodes/fragment/3/position = Vector2(265.563, 418.524) |
| 156 | +nodes/fragment/4/node = SubResource("VisualShaderNodeInput_3ckc2") |
| 157 | +nodes/fragment/4/position = Vector2(-54.4373, 298.524) |
| 158 | +nodes/fragment/5/node = SubResource("VisualShaderNodeVec2Parameter_y5pgd") |
| 159 | +nodes/fragment/5/position = Vector2(-54.4373, -201.476) |
| 160 | +nodes/fragment/6/node = SubResource("VisualShaderNodeVec2Parameter_3jkoy") |
| 161 | +nodes/fragment/6/position = Vector2(-54.4373, 598.524) |
| 162 | +nodes/fragment/7/node = SubResource("VisualShaderNodeUVFunc_tg5xa") |
| 163 | +nodes/fragment/7/position = Vector2(-334.437, 398.524) |
| 164 | +nodes/fragment/8/node = SubResource("VisualShaderNodeUVFunc_22gys") |
| 165 | +nodes/fragment/8/position = Vector2(-334.437, 58.5239) |
| 166 | +nodes/fragment/9/node = SubResource("VisualShaderNodeTexture_g5d63") |
| 167 | +nodes/fragment/9/position = Vector2(545.563, 418.524) |
| 168 | +nodes/fragment/10/node = SubResource("VisualShaderNodeVectorOp_p3vkb") |
| 169 | +nodes/fragment/10/position = Vector2(1269.46, 308.92) |
| 170 | +nodes/fragment/11/node = SubResource("VisualShaderNodeCompare_4bg14") |
| 171 | +nodes/fragment/11/position = Vector2(1029.46, 488.92) |
| 172 | +nodes/fragment/12/node = SubResource("VisualShaderNodeTexture_he0g8") |
| 173 | +nodes/fragment/12/position = Vector2(545.563, 58.5239) |
| 174 | +nodes/fragment/13/node = SubResource("VisualShaderNodeVectorOp_dlula") |
| 175 | +nodes/fragment/13/position = Vector2(789.458, 308.92) |
| 176 | +nodes/fragment/14/node = SubResource("VisualShaderNodeFloatParameter_ohb8j") |
| 177 | +nodes/fragment/14/position = Vector2(-654.437, 218.524) |
| 178 | +nodes/fragment/connections = PackedInt32Array(4, 0, 2, 2, 4, 0, 3, 2, 2, 0, 12, 0, 3, 0, 9, 0, 5, 0, 2, 1, 6, 0, 3, 1, 7, 0, 3, 0, 14, 0, 7, 1, 8, 0, 2, 0, 14, 0, 8, 1, 9, 0, 13, 0, 12, 0, 13, 1, 13, 0, 11, 0, 11, 0, 10, 1, 13, 0, 10, 0, 10, 0, 0, 0, 10, 0, 0, 1) |
0 commit comments