-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
explosion.tres
301 lines (208 loc) · 9.48 KB
/
explosion.tres
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
[gd_resource type="VisualShader" load_steps=32 format=3 uid="uid://c0yjihye3cdt2"]
[sub_resource type="VisualShaderNodeColorParameter" id="VisualShaderNodeColorParameter_2wevy"]
parameter_name = "base_color"
[sub_resource type="VisualShaderNodeInput" id="VisualShaderNodeInput_rdkq6"]
expanded_output_ports = [0]
input_name = "color"
[sub_resource type="VisualShaderNodeInput" id="VisualShaderNodeInput_scxkw"]
expanded_output_ports = [0]
input_name = "color"
[sub_resource type="VisualShaderNodeFloatOp" id="VisualShaderNodeFloatOp_7ewcj"]
default_input_values = [0, 0.0, 1, 0.5]
operator = 1
[sub_resource type="VisualShaderNodeFloatOp" id="VisualShaderNodeFloatOp_lrb0r"]
[sub_resource type="VisualShaderNodeTexture2DParameter" id="VisualShaderNodeTexture2DParameter_skh55"]
parameter_name = "emission_noise"
[sub_resource type="VisualShaderNodeTexture" id="VisualShaderNodeTexture_mvs7k"]
source = 5
[sub_resource type="VisualShaderNodeVectorOp" id="VisualShaderNodeVectorOp_th7k6"]
operator = 2
[sub_resource type="VisualShaderNodeFloatParameter" id="VisualShaderNodeFloatParameter_p022h"]
parameter_name = "emission_strength"
[sub_resource type="VisualShaderNodeVectorOp" id="VisualShaderNodeVectorOp_ymlhr"]
operator = 2
[sub_resource type="FastNoiseLite" id="FastNoiseLite_otl5q"]
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_iyqf1"]
seamless = true
noise = SubResource("FastNoiseLite_otl5q")
[sub_resource type="VisualShaderNodeTexture" id="VisualShaderNodeTexture_77m3b"]
texture = SubResource("NoiseTexture2D_iyqf1")
[sub_resource type="VisualShaderNodeFloatFunc" id="VisualShaderNodeFloatFunc_mykur"]
function = 15
[sub_resource type="VisualShaderNodeFloatOp" id="VisualShaderNodeFloatOp_rsxuj"]
operator = 2
[sub_resource type="VisualShaderNodeFloatOp" id="VisualShaderNodeFloatOp_k3m2x"]
default_input_values = [0, 0.0, 1, 0.5]
[sub_resource type="VisualShaderNodeColorParameter" id="VisualShaderNodeColorParameter_t30k4"]
parameter_name = "emission_color"
[sub_resource type="VisualShaderNodeVectorOp" id="VisualShaderNodeVectorOp_6cyyv"]
operator = 2
[sub_resource type="VisualShaderNodeVectorOp" id="VisualShaderNodeVectorOp_nsaxc"]
operator = 2
[sub_resource type="VisualShaderNodeFloatParameter" id="VisualShaderNodeFloatParameter_7a7uy"]
parameter_name = "displacement"
[sub_resource type="VisualShaderNodeInput" id="VisualShaderNodeInput_mif6h"]
input_name = "time"
[sub_resource type="VisualShaderNodeInput" id="VisualShaderNodeInput_l2f4u"]
input_name = "uv"
[sub_resource type="VisualShaderNodeVectorOp" id="VisualShaderNodeVectorOp_0uawv"]
[sub_resource type="VisualShaderNodeVectorOp" id="VisualShaderNodeVectorOp_ghnbq"]
default_input_values = [0, Vector3(0, 0, 0), 1, Vector3(2.08165e-12, -0.15, 2.08165e-12)]
operator = 2
[sub_resource type="VisualShaderNodeTexture" id="VisualShaderNodeTexture_v4lal"]
source = 5
[sub_resource type="VisualShaderNodeTexture2DParameter" id="VisualShaderNodeTexture2DParameter_wejyg"]
parameter_name = "displacement_texture"
[sub_resource type="VisualShaderNodeInput" id="VisualShaderNodeInput_4d23e"]
input_name = "vertex"
[sub_resource type="VisualShaderNodeVectorOp" id="VisualShaderNodeVectorOp_cciys"]
[sub_resource type="VisualShaderNodeVectorOp" id="VisualShaderNodeVectorOp_bub57"]
operator = 2
[sub_resource type="VisualShaderNodeInput" id="VisualShaderNodeInput_sjvbo"]
input_name = "normal"
[sub_resource type="VisualShaderNodeInput" id="VisualShaderNodeInput_loab7"]
input_name = "normal"
[resource]
code = "shader_type spatial;
render_mode blend_mix, depth_draw_opaque, cull_disabled, diffuse_lambert, specular_schlick_ggx, depth_prepass_alpha;
uniform float displacement;
uniform sampler2D displacement_texture;
uniform vec4 base_color : source_color;
uniform sampler2D tex_frg_2;
uniform sampler2D emission_noise;
uniform vec4 emission_color : source_color;
uniform float emission_strength;
void vertex() {
// Input:5
vec3 n_out5p0 = VERTEX;
// FloatParameter:11
float n_out11p0 = displacement;
// Input:8
vec3 n_out8p0 = NORMAL;
// Input:13
vec2 n_out13p0 = UV;
// Input:12
float n_out12p0 = TIME;
// VectorOp:15
vec3 n_in15p1 = vec3(0.00000, -0.15000, 0.00000);
vec3 n_out15p0 = vec3(n_out12p0) * n_in15p1;
// VectorOp:14
vec3 n_out14p0 = vec3(n_out13p0, 0.0) + n_out15p0;
vec4 n_out3p0;
// Texture2D:3
n_out3p0 = texture(displacement_texture, vec2(n_out14p0.xy));
// VectorOp:7
vec3 n_out7p0 = n_out8p0 * vec3(n_out3p0.xyz);
// VectorOp:10
vec3 n_out10p0 = vec3(n_out11p0) * n_out7p0;
// VectorOp:6
vec3 n_out6p0 = n_out5p0 + n_out10p0;
// Output:0
VERTEX = n_out6p0;
}
void fragment() {
// ColorParameter:10
vec4 n_out10p0 = base_color;
// Texture2D:2
vec4 n_out2p0 = texture(tex_frg_2, UV);
// Input:11
vec4 n_out11p0 = COLOR;
float n_out11p4 = n_out11p0.a;
// FloatOp:6
float n_in6p1 = 0.50000;
float n_out6p0 = n_out11p4 + n_in6p1;
// FloatOp:5
float n_out5p0 = n_out2p0.x * n_out6p0;
// FloatFunc:3
float n_out3p0 = round(n_out5p0);
vec4 n_out16p0;
// Texture2D:16
n_out16p0 = texture(emission_noise, UV);
// ColorParameter:7
vec4 n_out7p0 = emission_color;
// VectorOp:17
vec3 n_out17p0 = vec3(n_out16p0.xyz) * vec3(n_out7p0.xyz);
// Input:12
vec4 n_out12p0 = COLOR;
float n_out12p4 = n_out12p0.a;
// FloatOp:13
float n_in13p1 = 0.50000;
float n_out13p0 = n_out12p4 - n_in13p1;
// FloatOp:14
float n_in14p1 = 0.00000;
float n_out14p0 = n_out13p0 + n_in14p1;
// FloatParameter:18
float n_out18p0 = emission_strength;
// VectorOp:19
vec3 n_out19p0 = vec3(n_out14p0) * vec3(n_out18p0);
// VectorOp:8
vec3 n_out8p0 = n_out17p0 * n_out19p0;
// Output:0
ALBEDO = vec3(n_out10p0.xyz);
ALPHA = n_out3p0;
EMISSION = n_out8p0;
}
"
modes/cull = 2
flags/depth_prepass_alpha = true
nodes/vertex/3/node = SubResource("VisualShaderNodeTexture_v4lal")
nodes/vertex/3/position = Vector2(-2200, 740)
nodes/vertex/4/node = SubResource("VisualShaderNodeTexture2DParameter_wejyg")
nodes/vertex/4/position = Vector2(-3300, 1120)
nodes/vertex/5/node = SubResource("VisualShaderNodeInput_4d23e")
nodes/vertex/5/position = Vector2(-1160, -320)
nodes/vertex/6/node = SubResource("VisualShaderNodeVectorOp_cciys")
nodes/vertex/6/position = Vector2(-100, -40)
nodes/vertex/7/node = SubResource("VisualShaderNodeVectorOp_bub57")
nodes/vertex/7/position = Vector2(-1240, 640)
nodes/vertex/8/node = SubResource("VisualShaderNodeInput_sjvbo")
nodes/vertex/8/position = Vector2(-2700, 260)
nodes/vertex/9/node = SubResource("VisualShaderNodeInput_loab7")
nodes/vertex/9/position = Vector2(-2680, 280)
nodes/vertex/10/node = SubResource("VisualShaderNodeVectorOp_nsaxc")
nodes/vertex/10/position = Vector2(-700, 580)
nodes/vertex/11/node = SubResource("VisualShaderNodeFloatParameter_7a7uy")
nodes/vertex/11/position = Vector2(-1600, 20)
nodes/vertex/12/node = SubResource("VisualShaderNodeInput_mif6h")
nodes/vertex/12/position = Vector2(-4900, 640)
nodes/vertex/13/node = SubResource("VisualShaderNodeInput_l2f4u")
nodes/vertex/13/position = Vector2(-4140, 120)
nodes/vertex/14/node = SubResource("VisualShaderNodeVectorOp_0uawv")
nodes/vertex/14/position = Vector2(-3240, 280)
nodes/vertex/15/node = SubResource("VisualShaderNodeVectorOp_ghnbq")
nodes/vertex/15/position = Vector2(-4020, 600)
nodes/vertex/connections = PackedInt32Array(4, 0, 3, 2, 5, 0, 6, 0, 6, 0, 0, 0, 3, 0, 7, 1, 8, 0, 7, 0, 7, 0, 10, 1, 10, 0, 6, 1, 11, 0, 10, 0, 14, 0, 3, 0, 13, 0, 14, 0, 12, 0, 15, 0, 15, 0, 14, 1)
nodes/fragment/0/position = Vector2(1420, 160)
nodes/fragment/2/node = SubResource("VisualShaderNodeTexture_77m3b")
nodes/fragment/2/position = Vector2(-360, -160)
nodes/fragment/3/node = SubResource("VisualShaderNodeFloatFunc_mykur")
nodes/fragment/3/position = Vector2(940, 340)
nodes/fragment/5/node = SubResource("VisualShaderNodeFloatOp_rsxuj")
nodes/fragment/5/position = Vector2(460, 260)
nodes/fragment/6/node = SubResource("VisualShaderNodeFloatOp_k3m2x")
nodes/fragment/6/position = Vector2(-20, 580)
nodes/fragment/7/node = SubResource("VisualShaderNodeColorParameter_t30k4")
nodes/fragment/7/position = Vector2(-1320, 1940)
nodes/fragment/8/node = SubResource("VisualShaderNodeVectorOp_6cyyv")
nodes/fragment/8/position = Vector2(860, 1120)
nodes/fragment/10/node = SubResource("VisualShaderNodeColorParameter_2wevy")
nodes/fragment/10/position = Vector2(380, -440)
nodes/fragment/11/node = SubResource("VisualShaderNodeInput_rdkq6")
nodes/fragment/11/position = Vector2(-1240, 520)
nodes/fragment/12/node = SubResource("VisualShaderNodeInput_scxkw")
nodes/fragment/12/position = Vector2(-1920, 2580)
nodes/fragment/13/node = SubResource("VisualShaderNodeFloatOp_7ewcj")
nodes/fragment/13/position = Vector2(-960, 2640)
nodes/fragment/14/node = SubResource("VisualShaderNodeFloatOp_lrb0r")
nodes/fragment/14/position = Vector2(-360, 2540)
nodes/fragment/15/node = SubResource("VisualShaderNodeTexture2DParameter_skh55")
nodes/fragment/15/position = Vector2(-2100, 1040)
nodes/fragment/16/node = SubResource("VisualShaderNodeTexture_mvs7k")
nodes/fragment/16/position = Vector2(-860, 1160)
nodes/fragment/17/node = SubResource("VisualShaderNodeVectorOp_th7k6")
nodes/fragment/17/position = Vector2(-140, 1500)
nodes/fragment/18/node = SubResource("VisualShaderNodeFloatParameter_p022h")
nodes/fragment/18/position = Vector2(260, 2520)
nodes/fragment/19/node = SubResource("VisualShaderNodeVectorOp_ymlhr")
nodes/fragment/19/position = Vector2(560, 1840)
nodes/fragment/connections = PackedInt32Array(3, 0, 0, 1, 2, 0, 5, 0, 5, 0, 3, 0, 6, 0, 5, 1, 8, 0, 0, 5, 10, 0, 0, 0, 11, 4, 6, 0, 12, 4, 13, 0, 13, 0, 14, 0, 15, 0, 16, 2, 7, 0, 17, 1, 16, 0, 17, 0, 17, 0, 8, 0, 14, 0, 19, 0, 18, 0, 19, 1, 19, 0, 8, 1)