@vcollab/shader-artifacts 1.0.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/README.md +2 -2
- package/dist/generated/set.d.ts +4 -4
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/set/SHA256SUMS +163 -163
- package/set/pipelines/category.capped.json +125 -43
- package/set/pipelines/category.json +123 -41
- package/set/pipelines/deform3.category.capped.json +125 -43
- package/set/pipelines/deform3.category.json +123 -41
- package/set/pipelines/deform3.dof6.capped.json +132 -50
- package/set/pipelines/deform3.dof6.json +130 -48
- package/set/pipelines/deform3.pick.capped.json +69 -18
- package/set/pipelines/deform3.pick.json +69 -18
- package/set/pipelines/deform3.scalar.capped.json +133 -51
- package/set/pipelines/deform3.scalar.json +131 -49
- package/set/pipelines/deform3.surface.capped.json +121 -39
- package/set/pipelines/deform3.surface.json +119 -37
- package/set/pipelines/deform3.symtensor.capped.json +133 -51
- package/set/pipelines/deform3.symtensor.json +131 -49
- package/set/pipelines/deform3.textured-normal.capped.json +93 -42
- package/set/pipelines/deform3.textured-normal.json +91 -40
- package/set/pipelines/deform3.textured.capped.json +91 -40
- package/set/pipelines/deform3.textured.json +89 -38
- package/set/pipelines/deform3.vector.capped.json +132 -50
- package/set/pipelines/deform3.vector.json +130 -48
- package/set/pipelines/deform6.category.capped.json +125 -43
- package/set/pipelines/deform6.category.json +123 -41
- package/set/pipelines/deform6.dof6.capped.json +132 -50
- package/set/pipelines/deform6.dof6.json +130 -48
- package/set/pipelines/deform6.pick.capped.json +69 -18
- package/set/pipelines/deform6.pick.json +69 -18
- package/set/pipelines/deform6.scalar.capped.json +133 -51
- package/set/pipelines/deform6.scalar.json +131 -49
- package/set/pipelines/deform6.surface.capped.json +121 -39
- package/set/pipelines/deform6.surface.json +119 -37
- package/set/pipelines/deform6.symtensor.capped.json +133 -51
- package/set/pipelines/deform6.symtensor.json +131 -49
- package/set/pipelines/deform6.textured-normal.capped.json +93 -42
- package/set/pipelines/deform6.textured-normal.json +91 -40
- package/set/pipelines/deform6.textured.capped.json +91 -40
- package/set/pipelines/deform6.textured.json +89 -38
- package/set/pipelines/deform6.vector.capped.json +132 -50
- package/set/pipelines/deform6.vector.json +130 -48
- package/set/pipelines/dof6.capped.json +132 -50
- package/set/pipelines/dof6.json +130 -48
- package/set/pipelines/pick.capped.json +69 -18
- package/set/pipelines/pick.json +69 -18
- package/set/pipelines/scalar.capped.json +133 -51
- package/set/pipelines/scalar.json +131 -49
- package/set/pipelines/surface.capped.json +121 -39
- package/set/pipelines/surface.json +119 -37
- package/set/pipelines/symtensor.capped.json +133 -51
- package/set/pipelines/symtensor.json +131 -49
- package/set/pipelines/textured-normal.capped.json +93 -42
- package/set/pipelines/textured-normal.json +91 -40
- package/set/pipelines/textured.capped.json +91 -40
- package/set/pipelines/textured.json +89 -38
- package/set/pipelines/vector.capped.json +132 -50
- package/set/pipelines/vector.json +130 -48
- package/set/registry.json +147 -55
- package/set/shaders/category.capped.fragment.glsl +6 -0
- package/set/shaders/category.capped.vertex.glsl +55 -45
- package/set/shaders/category.fragment.glsl +12 -6
- package/set/shaders/category.vertex.glsl +48 -38
- package/set/shaders/deform3.category.capped.fragment.glsl +6 -0
- package/set/shaders/deform3.category.capped.vertex.glsl +56 -46
- package/set/shaders/deform3.category.fragment.glsl +12 -6
- package/set/shaders/deform3.category.vertex.glsl +49 -39
- package/set/shaders/deform3.dof6.capped.fragment.glsl +6 -0
- package/set/shaders/deform3.dof6.capped.vertex.glsl +57 -47
- package/set/shaders/deform3.dof6.fragment.glsl +6 -0
- package/set/shaders/deform3.dof6.vertex.glsl +50 -40
- package/set/shaders/deform3.pick.capped.fragment.glsl +26 -21
- package/set/shaders/deform3.pick.capped.vertex.glsl +47 -37
- package/set/shaders/deform3.pick.fragment.glsl +20 -15
- package/set/shaders/deform3.pick.vertex.glsl +38 -28
- package/set/shaders/deform3.scalar.capped.fragment.glsl +6 -0
- package/set/shaders/deform3.scalar.capped.vertex.glsl +56 -46
- package/set/shaders/deform3.scalar.fragment.glsl +6 -0
- package/set/shaders/deform3.scalar.vertex.glsl +49 -39
- package/set/shaders/deform3.surface.capped.fragment.glsl +6 -0
- package/set/shaders/deform3.surface.capped.vertex.glsl +55 -45
- package/set/shaders/deform3.surface.fragment.glsl +12 -6
- package/set/shaders/deform3.surface.vertex.glsl +48 -38
- package/set/shaders/deform3.symtensor.capped.fragment.glsl +6 -0
- package/set/shaders/deform3.symtensor.capped.vertex.glsl +57 -47
- package/set/shaders/deform3.symtensor.fragment.glsl +6 -0
- package/set/shaders/deform3.symtensor.vertex.glsl +50 -40
- package/set/shaders/deform3.textured-normal.capped.fragment.glsl +4 -0
- package/set/shaders/deform3.textured-normal.capped.vertex.glsl +65 -57
- package/set/shaders/deform3.textured-normal.fragment.glsl +4 -0
- package/set/shaders/deform3.textured-normal.vertex.glsl +58 -50
- package/set/shaders/deform3.textured.capped.fragment.glsl +4 -0
- package/set/shaders/deform3.textured.capped.vertex.glsl +51 -44
- package/set/shaders/deform3.textured.fragment.glsl +10 -6
- package/set/shaders/deform3.textured.vertex.glsl +44 -37
- package/set/shaders/deform3.vector.capped.fragment.glsl +6 -0
- package/set/shaders/deform3.vector.capped.vertex.glsl +56 -46
- package/set/shaders/deform3.vector.fragment.glsl +6 -0
- package/set/shaders/deform3.vector.vertex.glsl +49 -39
- package/set/shaders/deform6.category.capped.fragment.glsl +6 -0
- package/set/shaders/deform6.category.capped.vertex.glsl +64 -54
- package/set/shaders/deform6.category.fragment.glsl +12 -6
- package/set/shaders/deform6.category.vertex.glsl +57 -47
- package/set/shaders/deform6.dof6.capped.fragment.glsl +6 -0
- package/set/shaders/deform6.dof6.capped.vertex.glsl +65 -55
- package/set/shaders/deform6.dof6.fragment.glsl +6 -0
- package/set/shaders/deform6.dof6.vertex.glsl +58 -48
- package/set/shaders/deform6.pick.capped.fragment.glsl +26 -21
- package/set/shaders/deform6.pick.capped.vertex.glsl +55 -45
- package/set/shaders/deform6.pick.fragment.glsl +20 -15
- package/set/shaders/deform6.pick.vertex.glsl +46 -36
- package/set/shaders/deform6.scalar.capped.fragment.glsl +6 -0
- package/set/shaders/deform6.scalar.capped.vertex.glsl +64 -54
- package/set/shaders/deform6.scalar.fragment.glsl +6 -0
- package/set/shaders/deform6.scalar.vertex.glsl +57 -47
- package/set/shaders/deform6.surface.capped.fragment.glsl +6 -0
- package/set/shaders/deform6.surface.capped.vertex.glsl +63 -53
- package/set/shaders/deform6.surface.fragment.glsl +12 -6
- package/set/shaders/deform6.surface.vertex.glsl +56 -46
- package/set/shaders/deform6.symtensor.capped.fragment.glsl +6 -0
- package/set/shaders/deform6.symtensor.capped.vertex.glsl +65 -55
- package/set/shaders/deform6.symtensor.fragment.glsl +6 -0
- package/set/shaders/deform6.symtensor.vertex.glsl +58 -48
- package/set/shaders/deform6.textured-normal.capped.fragment.glsl +4 -0
- package/set/shaders/deform6.textured-normal.capped.vertex.glsl +73 -65
- package/set/shaders/deform6.textured-normal.fragment.glsl +4 -0
- package/set/shaders/deform6.textured-normal.vertex.glsl +66 -58
- package/set/shaders/deform6.textured.capped.fragment.glsl +4 -0
- package/set/shaders/deform6.textured.capped.vertex.glsl +59 -52
- package/set/shaders/deform6.textured.fragment.glsl +10 -6
- package/set/shaders/deform6.textured.vertex.glsl +52 -45
- package/set/shaders/deform6.vector.capped.fragment.glsl +6 -0
- package/set/shaders/deform6.vector.capped.vertex.glsl +64 -54
- package/set/shaders/deform6.vector.fragment.glsl +6 -0
- package/set/shaders/deform6.vector.vertex.glsl +57 -47
- package/set/shaders/dof6.capped.fragment.glsl +6 -0
- package/set/shaders/dof6.capped.vertex.glsl +56 -46
- package/set/shaders/dof6.fragment.glsl +6 -0
- package/set/shaders/dof6.vertex.glsl +49 -39
- package/set/shaders/pick.capped.fragment.glsl +26 -21
- package/set/shaders/pick.capped.vertex.glsl +46 -36
- package/set/shaders/pick.fragment.glsl +20 -15
- package/set/shaders/pick.vertex.glsl +37 -27
- package/set/shaders/scalar.capped.fragment.glsl +6 -0
- package/set/shaders/scalar.capped.vertex.glsl +55 -45
- package/set/shaders/scalar.fragment.glsl +6 -0
- package/set/shaders/scalar.vertex.glsl +48 -38
- package/set/shaders/surface.capped.fragment.glsl +6 -0
- package/set/shaders/surface.capped.vertex.glsl +54 -44
- package/set/shaders/surface.fragment.glsl +12 -6
- package/set/shaders/surface.vertex.glsl +47 -37
- package/set/shaders/symtensor.capped.fragment.glsl +6 -0
- package/set/shaders/symtensor.capped.vertex.glsl +56 -46
- package/set/shaders/symtensor.fragment.glsl +6 -0
- package/set/shaders/symtensor.vertex.glsl +49 -39
- package/set/shaders/textured-normal.capped.fragment.glsl +4 -0
- package/set/shaders/textured-normal.capped.vertex.glsl +64 -56
- package/set/shaders/textured-normal.fragment.glsl +4 -0
- package/set/shaders/textured-normal.vertex.glsl +57 -49
- package/set/shaders/textured.capped.fragment.glsl +4 -0
- package/set/shaders/textured.capped.vertex.glsl +50 -43
- package/set/shaders/textured.fragment.glsl +10 -6
- package/set/shaders/textured.vertex.glsl +43 -36
- package/set/shaders/vector.capped.fragment.glsl +6 -0
- package/set/shaders/vector.capped.vertex.glsl +55 -45
- package/set/shaders/vector.fragment.glsl +6 -0
- package/set/shaders/vector.vertex.glsl +48 -38
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schemaVersion": 3,
|
|
3
3
|
"generator": {
|
|
4
4
|
"name": "vcti-shader-foundry",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "9.0.0",
|
|
6
6
|
"toolchain": {
|
|
7
7
|
"slangc": "2026.12.0.1",
|
|
8
8
|
"spirvCross": "vulkan-sdk-1.4.357.0",
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"id": "deform6.surface",
|
|
15
15
|
"capabilities": [
|
|
16
16
|
"deform6",
|
|
17
|
+
"material-map-r16ui",
|
|
17
18
|
"material",
|
|
18
19
|
"material-table",
|
|
19
20
|
"material-surface-finish",
|
|
@@ -21,6 +22,7 @@
|
|
|
21
22
|
"mask-lut-r8ui",
|
|
22
23
|
"transform",
|
|
23
24
|
"transform-lut-r32ui",
|
|
25
|
+
"transform-map-r16ui",
|
|
24
26
|
"clip"
|
|
25
27
|
],
|
|
26
28
|
"inputs": [
|
|
@@ -40,24 +42,14 @@
|
|
|
40
42
|
"semantic": "rotation"
|
|
41
43
|
},
|
|
42
44
|
{
|
|
43
|
-
"name": "
|
|
45
|
+
"name": "a_atomId",
|
|
44
46
|
"type": "int",
|
|
45
|
-
"semantic": "
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"name": "a_componentId",
|
|
49
|
-
"type": "int",
|
|
50
|
-
"semantic": "component-id"
|
|
47
|
+
"semantic": "atom-id"
|
|
51
48
|
},
|
|
52
49
|
{
|
|
53
50
|
"name": "a_normal",
|
|
54
51
|
"type": "vec3",
|
|
55
52
|
"semantic": "normal"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"name": "a_materialId",
|
|
59
|
-
"type": "int",
|
|
60
|
-
"semantic": "material-id"
|
|
61
53
|
}
|
|
62
54
|
],
|
|
63
55
|
"uniforms": [
|
|
@@ -81,6 +73,10 @@
|
|
|
81
73
|
"name": "u_maskLutWidth",
|
|
82
74
|
"type": "int"
|
|
83
75
|
},
|
|
76
|
+
{
|
|
77
|
+
"name": "u_maskLutBase",
|
|
78
|
+
"type": "int"
|
|
79
|
+
},
|
|
84
80
|
{
|
|
85
81
|
"name": "u_transformLutWidth",
|
|
86
82
|
"type": "int"
|
|
@@ -89,6 +85,18 @@
|
|
|
89
85
|
"name": "u_transformLutStride",
|
|
90
86
|
"type": "int"
|
|
91
87
|
},
|
|
88
|
+
{
|
|
89
|
+
"name": "u_transformLutBase",
|
|
90
|
+
"type": "int"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "u_transformMapWidth",
|
|
94
|
+
"type": "int"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "u_transformMapBase",
|
|
98
|
+
"type": "int"
|
|
99
|
+
},
|
|
92
100
|
{
|
|
93
101
|
"name": "u_clipPlanes",
|
|
94
102
|
"type": "vec4[6]"
|
|
@@ -97,6 +105,14 @@
|
|
|
97
105
|
"name": "u_clipPlaneCount",
|
|
98
106
|
"type": "int"
|
|
99
107
|
},
|
|
108
|
+
{
|
|
109
|
+
"name": "u_materialMapWidth",
|
|
110
|
+
"type": "int"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "u_materialMapBase",
|
|
114
|
+
"type": "int"
|
|
115
|
+
},
|
|
100
116
|
{
|
|
101
117
|
"name": "u_viewPosition",
|
|
102
118
|
"type": "vec3"
|
|
@@ -170,6 +186,18 @@
|
|
|
170
186
|
"format": "r32ui",
|
|
171
187
|
"semantic": "transform"
|
|
172
188
|
},
|
|
189
|
+
{
|
|
190
|
+
"name": "u_transformMap",
|
|
191
|
+
"type": "Texture2D<uint4>",
|
|
192
|
+
"format": "r16ui",
|
|
193
|
+
"semantic": "transform-map"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"name": "u_materialMap",
|
|
197
|
+
"type": "Texture2D<uint4>",
|
|
198
|
+
"format": "r16ui",
|
|
199
|
+
"semantic": "material-map"
|
|
200
|
+
},
|
|
173
201
|
{
|
|
174
202
|
"name": "u_materialTable",
|
|
175
203
|
"type": "Texture2D<float4>",
|
|
@@ -180,10 +208,10 @@
|
|
|
180
208
|
"textures": [],
|
|
181
209
|
"samplers": []
|
|
182
210
|
},
|
|
183
|
-
"contractSha256": "
|
|
211
|
+
"contractSha256": "a20298fe888b636fcb12206e92c55931b52a4775fba56b445fab3e0b2f6f0d1a",
|
|
184
212
|
"languages": {
|
|
185
213
|
"glsl": {
|
|
186
|
-
"blockSize":
|
|
214
|
+
"blockSize": 528,
|
|
187
215
|
"layout": {
|
|
188
216
|
"u_mvpMatrix": {
|
|
189
217
|
"offset": 0,
|
|
@@ -217,98 +245,134 @@
|
|
|
217
245
|
"elementStride": 0,
|
|
218
246
|
"encoding": "int"
|
|
219
247
|
},
|
|
220
|
-
"
|
|
248
|
+
"u_maskLutBase": {
|
|
221
249
|
"offset": 160,
|
|
222
250
|
"size": 4,
|
|
223
251
|
"elementStride": 0,
|
|
224
252
|
"encoding": "int"
|
|
225
253
|
},
|
|
226
|
-
"
|
|
254
|
+
"u_transformLutWidth": {
|
|
227
255
|
"offset": 164,
|
|
228
256
|
"size": 4,
|
|
229
257
|
"elementStride": 0,
|
|
230
258
|
"encoding": "int"
|
|
231
259
|
},
|
|
232
|
-
"
|
|
260
|
+
"u_transformLutStride": {
|
|
261
|
+
"offset": 168,
|
|
262
|
+
"size": 4,
|
|
263
|
+
"elementStride": 0,
|
|
264
|
+
"encoding": "int"
|
|
265
|
+
},
|
|
266
|
+
"u_transformLutBase": {
|
|
267
|
+
"offset": 172,
|
|
268
|
+
"size": 4,
|
|
269
|
+
"elementStride": 0,
|
|
270
|
+
"encoding": "int"
|
|
271
|
+
},
|
|
272
|
+
"u_transformMapWidth": {
|
|
233
273
|
"offset": 176,
|
|
274
|
+
"size": 4,
|
|
275
|
+
"elementStride": 0,
|
|
276
|
+
"encoding": "int"
|
|
277
|
+
},
|
|
278
|
+
"u_transformMapBase": {
|
|
279
|
+
"offset": 180,
|
|
280
|
+
"size": 4,
|
|
281
|
+
"elementStride": 0,
|
|
282
|
+
"encoding": "int"
|
|
283
|
+
},
|
|
284
|
+
"u_clipPlanes": {
|
|
285
|
+
"offset": 192,
|
|
234
286
|
"size": 96,
|
|
235
287
|
"elementStride": 16,
|
|
236
288
|
"encoding": "vec4[]"
|
|
237
289
|
},
|
|
238
290
|
"u_clipPlaneCount": {
|
|
239
|
-
"offset":
|
|
291
|
+
"offset": 288,
|
|
292
|
+
"size": 4,
|
|
293
|
+
"elementStride": 0,
|
|
294
|
+
"encoding": "int"
|
|
295
|
+
},
|
|
296
|
+
"u_materialMapWidth": {
|
|
297
|
+
"offset": 292,
|
|
298
|
+
"size": 4,
|
|
299
|
+
"elementStride": 0,
|
|
300
|
+
"encoding": "int"
|
|
301
|
+
},
|
|
302
|
+
"u_materialMapBase": {
|
|
303
|
+
"offset": 296,
|
|
240
304
|
"size": 4,
|
|
241
305
|
"elementStride": 0,
|
|
242
306
|
"encoding": "int"
|
|
243
307
|
},
|
|
244
308
|
"u_viewPosition": {
|
|
245
|
-
"offset":
|
|
309
|
+
"offset": 304,
|
|
246
310
|
"size": 12,
|
|
247
311
|
"elementStride": 4,
|
|
248
312
|
"encoding": "vec3"
|
|
249
313
|
},
|
|
250
314
|
"u_environmentSky": {
|
|
251
|
-
"offset":
|
|
315
|
+
"offset": 320,
|
|
252
316
|
"size": 12,
|
|
253
317
|
"elementStride": 4,
|
|
254
318
|
"encoding": "vec3"
|
|
255
319
|
},
|
|
256
320
|
"u_environmentGround": {
|
|
257
|
-
"offset":
|
|
321
|
+
"offset": 336,
|
|
258
322
|
"size": 12,
|
|
259
323
|
"elementStride": 4,
|
|
260
324
|
"encoding": "vec3"
|
|
261
325
|
},
|
|
262
326
|
"u_environmentUp": {
|
|
263
|
-
"offset":
|
|
327
|
+
"offset": 352,
|
|
264
328
|
"size": 12,
|
|
265
329
|
"elementStride": 4,
|
|
266
330
|
"encoding": "vec3"
|
|
267
331
|
},
|
|
268
332
|
"u_lightPositions": {
|
|
269
|
-
"offset":
|
|
333
|
+
"offset": 368,
|
|
270
334
|
"size": 64,
|
|
271
335
|
"elementStride": 16,
|
|
272
336
|
"encoding": "vec4[]"
|
|
273
337
|
},
|
|
274
338
|
"u_lightColors": {
|
|
275
|
-
"offset":
|
|
339
|
+
"offset": 432,
|
|
276
340
|
"size": 64,
|
|
277
341
|
"elementStride": 16,
|
|
278
342
|
"encoding": "vec3[]"
|
|
279
343
|
},
|
|
280
344
|
"u_lightCount": {
|
|
281
|
-
"offset":
|
|
345
|
+
"offset": 496,
|
|
282
346
|
"size": 4,
|
|
283
347
|
"elementStride": 0,
|
|
284
348
|
"encoding": "int"
|
|
285
349
|
},
|
|
286
350
|
"u_surfaceFinishScale": {
|
|
287
|
-
"offset":
|
|
351
|
+
"offset": 500,
|
|
288
352
|
"size": 4,
|
|
289
353
|
"elementStride": 0,
|
|
290
354
|
"encoding": "float"
|
|
291
355
|
},
|
|
292
356
|
"u_surfaceFinishRoughness": {
|
|
293
|
-
"offset":
|
|
357
|
+
"offset": 504,
|
|
294
358
|
"size": 4,
|
|
295
359
|
"elementStride": 0,
|
|
296
360
|
"encoding": "float"
|
|
297
361
|
},
|
|
298
362
|
"u_surfaceFinishColor": {
|
|
299
|
-
"offset":
|
|
363
|
+
"offset": 508,
|
|
300
364
|
"size": 4,
|
|
301
365
|
"elementStride": 0,
|
|
302
366
|
"encoding": "float"
|
|
303
367
|
},
|
|
304
368
|
"u_colorSource": {
|
|
305
|
-
"offset":
|
|
369
|
+
"offset": 512,
|
|
306
370
|
"size": 4,
|
|
307
371
|
"elementStride": 0,
|
|
308
372
|
"encoding": "int"
|
|
309
373
|
},
|
|
310
374
|
"u_opacity": {
|
|
311
|
-
"offset":
|
|
375
|
+
"offset": 516,
|
|
312
376
|
"size": 4,
|
|
313
377
|
"elementStride": 0,
|
|
314
378
|
"encoding": "float"
|
|
@@ -324,6 +388,15 @@
|
|
|
324
388
|
"stage": "vertex",
|
|
325
389
|
"unit": 0
|
|
326
390
|
},
|
|
391
|
+
{
|
|
392
|
+
"semantic": "material-map",
|
|
393
|
+
"texture": "u_materialMap",
|
|
394
|
+
"sampler": null,
|
|
395
|
+
"uniform": "SPIRV_Cross_Combinedu_materialMapSPIRV_Cross_DummySampler",
|
|
396
|
+
"component": "uint",
|
|
397
|
+
"stage": "vertex",
|
|
398
|
+
"unit": 1
|
|
399
|
+
},
|
|
327
400
|
{
|
|
328
401
|
"semantic": "transform",
|
|
329
402
|
"texture": "u_transformLut",
|
|
@@ -331,7 +404,16 @@
|
|
|
331
404
|
"uniform": "SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler",
|
|
332
405
|
"component": "uint",
|
|
333
406
|
"stage": "vertex",
|
|
334
|
-
"unit":
|
|
407
|
+
"unit": 2
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"semantic": "transform-map",
|
|
411
|
+
"texture": "u_transformMap",
|
|
412
|
+
"sampler": null,
|
|
413
|
+
"uniform": "SPIRV_Cross_Combinedu_transformMapSPIRV_Cross_DummySampler",
|
|
414
|
+
"component": "uint",
|
|
415
|
+
"stage": "vertex",
|
|
416
|
+
"unit": 3
|
|
335
417
|
},
|
|
336
418
|
{
|
|
337
419
|
"semantic": "material",
|
|
@@ -340,17 +422,17 @@
|
|
|
340
422
|
"uniform": "SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler",
|
|
341
423
|
"component": "float",
|
|
342
424
|
"stage": "fragment",
|
|
343
|
-
"unit":
|
|
425
|
+
"unit": 4
|
|
344
426
|
}
|
|
345
427
|
],
|
|
346
428
|
"stages": {
|
|
347
429
|
"vertex": {
|
|
348
|
-
"source": "#version 300 es\nprecision highp float;\nprecision highp int;\n\nstruct _Array_std140_vector_float_4_6\n{\n vec4 data[6];\n};\n\nstruct _Array_std140_vector_float_4_4\n{\n vec4 data[4];\n};\n\nstruct _Array_std140_vector_float_3_4\n{\n vec3 data[4];\n};\n\nlayout(std140) uniform GlobalParams_std140\n{\n layout(row_major) mat4 u_mvpMatrix;\n layout(row_major) mat4 u_modelViewMatrix;\n vec3 u_deformScale;\n vec3 u_deformRotationCenter;\n int u_maskLutWidth;\n int u_transformLutWidth;\n int u_transformLutStride;\n _Array_std140_vector_float_4_6 u_clipPlanes;\n int u_clipPlaneCount;\n vec3 u_viewPosition;\n vec3 u_environmentSky;\n vec3 u_environmentGround;\n vec3 u_environmentUp;\n _Array_std140_vector_float_4_4 u_lightPositions;\n _Array_std140_vector_float_3_4 u_lightColors;\n int u_lightCount;\n float u_surfaceFinishScale;\n float u_surfaceFinishRoughness;\n float u_surfaceFinishColor;\n int u_colorSource;\n float u_opacity;\n} globalParams;\n\nuniform highp usampler2D SPIRV_Cross_Combinedu_maskLutSPIRV_Cross_DummySampler;\nuniform highp usampler2D SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler;\n\nlayout(location = 3) in int
|
|
349
|
-
"sha256": "
|
|
430
|
+
"source": "#version 300 es\nprecision highp float;\nprecision highp int;\n\nstruct _Array_std140_vector_float_4_6\n{\n vec4 data[6];\n};\n\nstruct _Array_std140_vector_float_4_4\n{\n vec4 data[4];\n};\n\nstruct _Array_std140_vector_float_3_4\n{\n vec3 data[4];\n};\n\nlayout(std140) uniform GlobalParams_std140\n{\n layout(row_major) mat4 u_mvpMatrix;\n layout(row_major) mat4 u_modelViewMatrix;\n vec3 u_deformScale;\n vec3 u_deformRotationCenter;\n int u_maskLutWidth;\n int u_maskLutBase;\n int u_transformLutWidth;\n int u_transformLutStride;\n int u_transformLutBase;\n int u_transformMapWidth;\n int u_transformMapBase;\n _Array_std140_vector_float_4_6 u_clipPlanes;\n int u_clipPlaneCount;\n int u_materialMapWidth;\n int u_materialMapBase;\n vec3 u_viewPosition;\n vec3 u_environmentSky;\n vec3 u_environmentGround;\n vec3 u_environmentUp;\n _Array_std140_vector_float_4_4 u_lightPositions;\n _Array_std140_vector_float_3_4 u_lightColors;\n int u_lightCount;\n float u_surfaceFinishScale;\n float u_surfaceFinishRoughness;\n float u_surfaceFinishColor;\n int u_colorSource;\n float u_opacity;\n} globalParams;\n\nuniform highp usampler2D SPIRV_Cross_Combinedu_maskLutSPIRV_Cross_DummySampler;\nuniform highp usampler2D SPIRV_Cross_Combinedu_transformMapSPIRV_Cross_DummySampler;\nuniform highp usampler2D SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler;\nuniform highp usampler2D SPIRV_Cross_Combinedu_materialMapSPIRV_Cross_DummySampler;\n\nlayout(location = 3) in int a_atomId;\nout vec3 v0;\nout vec3 v1;\nout vec3 v2;\nout vec3 v3;\nflat out int v4;\nlayout(location = 0) in vec3 a_position;\nlayout(location = 1) in vec3 a_deformation;\nlayout(location = 2) in vec3 a_rotation;\nlayout(location = 4) in vec3 a_normal;\n\nhighp mat4 spvWorkaroundRowMajor(highp mat4 wrap) { return wrap; }\nmediump mat4 spvWorkaroundRowMajorMP(mediump mat4 wrap) { return wrap; }\n\nvoid main()\n{\n do\n {\n int _460 = globalParams.u_maskLutBase + a_atomId;\n if (!(texelFetch(SPIRV_Cross_Combinedu_maskLutSPIRV_Cross_DummySampler, ivec2(_460 - globalParams.u_maskLutWidth * (_460 / globalParams.u_maskLutWidth), _460 / globalParams.u_maskLutWidth), 0).x != 0u))\n {\n gl_Position = vec4(2.0, 2.0, 2.0, 1.0);\n v0 = vec3(0.0);\n v1 = vec3(0.0);\n v2 = vec3(0.0);\n v3 = vec3(0.0);\n v4 = 0;\n break;\n }\n vec3 _488 = a_position - globalParams.u_deformRotationCenter;\n float _489 = length(a_rotation);\n vec3 _485;\n if (_489 > 9.9999999392252902907785028219223e-09)\n {\n vec3 _493 = a_rotation / vec3(_489);\n float _494 = cos(_489);\n _485 = ((_488 * _494) + (cross(_493, _488) * sin(_489))) + ((_493 * dot(_493, _488)) * (1.0 - _494));\n }\n else\n {\n _485 = _488;\n }\n vec3 _510 = (globalParams.u_deformRotationCenter + _485) + (globalParams.u_deformScale * a_deformation);\n int _613 = globalParams.u_transformMapBase + a_atomId;\n int _621 = int(texelFetch(SPIRV_Cross_Combinedu_transformMapSPIRV_Cross_DummySampler, ivec2(_613 - globalParams.u_transformMapWidth * (_613 / globalParams.u_transformMapWidth), _613 / globalParams.u_transformMapWidth), 0).x);\n int _625 = (globalParams.u_transformLutBase + _621) * globalParams.u_transformLutStride;\n vec3 _511;\n vec3 _512;\n if (texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_625 - globalParams.u_transformLutWidth * (_625 / globalParams.u_transformLutWidth), _625 / globalParams.u_transformLutWidth), 0).x != 0u)\n {\n int _641 = ((globalParams.u_transformLutBase + _621) * globalParams.u_transformLutStride) + 1;\n int _653 = ((globalParams.u_transformLutBase + _621) * globalParams.u_transformLutStride) + 2;\n int _665 = ((globalParams.u_transformLutBase + _621) * globalParams.u_transformLutStride) + 3;\n int _683 = ((globalParams.u_transformLutBase + _621) * globalParams.u_transformLutStride) + 4;\n int _695 = ((globalParams.u_transformLutBase + _621) * globalParams.u_transformLutStride) + 5;\n int _707 = ((globalParams.u_transformLutBase + _621) * globalParams.u_transformLutStride) + 6;\n int _719 = ((globalParams.u_transformLutBase + _621) * globalParams.u_transformLutStride) + 7;\n vec4 _733 = vec4(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_683 - globalParams.u_transformLutWidth * (_683 / globalParams.u_transformLutWidth), _683 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_695 - globalParams.u_transformLutWidth * (_695 / globalParams.u_transformLutWidth), _695 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_707 - globalParams.u_transformLutWidth * (_707 / globalParams.u_transformLutWidth), _707 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_719 - globalParams.u_transformLutWidth * (_719 / globalParams.u_transformLutWidth), _719 / globalParams.u_transformLutWidth), 0).x));\n int _738 = ((globalParams.u_transformLutBase + _621) * globalParams.u_transformLutStride) + 8;\n int _750 = ((globalParams.u_transformLutBase + _621) * globalParams.u_transformLutStride) + 9;\n int _762 = ((globalParams.u_transformLutBase + _621) * globalParams.u_transformLutStride) + 10;\n vec3 _775 = vec3(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_738 - globalParams.u_transformLutWidth * (_738 / globalParams.u_transformLutWidth), _738 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_750 - globalParams.u_transformLutWidth * (_750 / globalParams.u_transformLutWidth), _750 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_762 - globalParams.u_transformLutWidth * (_762 / globalParams.u_transformLutWidth), _762 / globalParams.u_transformLutWidth), 0).x));\n vec3 _778 = _775 * _510;\n vec3 _783 = _733.xyz;\n vec3 _785 = cross(_783, _778) * 2.0;\n vec3 _793 = a_normal / _775;\n vec3 _798 = _733.xyz;\n vec3 _800 = cross(_798, _793) * 2.0;\n _511 = ((_778 + (_785 * _733.w)) + cross(_783, _785)) + vec3(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_641 - globalParams.u_transformLutWidth * (_641 / globalParams.u_transformLutWidth), _641 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_653 - globalParams.u_transformLutWidth * (_653 / globalParams.u_transformLutWidth), _653 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_665 - globalParams.u_transformLutWidth * (_665 / globalParams.u_transformLutWidth), _665 / globalParams.u_transformLutWidth), 0).x));\n _512 = normalize((_793 + (_800 * _733.w)) + cross(_798, _800));\n }\n else\n {\n _511 = _510;\n _512 = a_normal;\n }\n vec4 _590 = vec4(_511, 1.0);\n int _808 = globalParams.u_materialMapBase + a_atomId;\n gl_Position = _590 * spvWorkaroundRowMajor(globalParams.u_mvpMatrix);\n v0 = _511;\n v1 = (_590 * spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)).xyz;\n v2 = _512 * mat3(spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[0].xyz, spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[1].xyz, spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[2].xyz);\n v3 = a_position;\n v4 = int(texelFetch(SPIRV_Cross_Combinedu_materialMapSPIRV_Cross_DummySampler, ivec2(_808 - globalParams.u_materialMapWidth * (_808 / globalParams.u_materialMapWidth), _808 / globalParams.u_materialMapWidth), 0).x);\n break;\n } while(false);\n}\n\n",
|
|
431
|
+
"sha256": "521a31504e3bbd1e6d9a2a5233ec0803060c686528ff7bd91e6be932752659a3"
|
|
350
432
|
},
|
|
351
433
|
"fragment": {
|
|
352
|
-
"source": "#version 300 es\nprecision highp float;\nprecision highp int;\n\nstruct _Array_std140_vector_float_4_6\n{\n highp vec4 data[6];\n};\n\nstruct _Array_std140_vector_float_4_4\n{\n highp vec4 data[4];\n};\n\nstruct _Array_std140_vector_float_3_4\n{\n highp vec3 data[4];\n};\n\nlayout(std140) uniform GlobalParams_std140\n{\n layout(row_major) highp mat4 u_mvpMatrix;\n layout(row_major) highp mat4 u_modelViewMatrix;\n highp vec3 u_deformScale;\n highp vec3 u_deformRotationCenter;\n int u_maskLutWidth;\n int u_transformLutWidth;\n int u_transformLutStride;\n _Array_std140_vector_float_4_6 u_clipPlanes;\n int u_clipPlaneCount;\n highp vec3 u_viewPosition;\n highp vec3 u_environmentSky;\n highp vec3 u_environmentGround;\n highp vec3 u_environmentUp;\n _Array_std140_vector_float_4_4 u_lightPositions;\n _Array_std140_vector_float_3_4 u_lightColors;\n int u_lightCount;\n highp float u_surfaceFinishScale;\n highp float u_surfaceFinishRoughness;\n highp float u_surfaceFinishColor;\n int u_colorSource;\n highp float u_opacity;\n} globalParams;\n\nuniform highp sampler2D SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler;\n\nin highp vec3 v0;\nflat in int v4;\nin highp vec3 v3;\nlayout(location = 0) out highp vec4 entryPointParam_fragmentMain;\nin highp vec3 v2;\nin highp vec3 v1;\n\nvoid main()\n{\n bool _732 = false;\n do\n {\n _732 = false;\n bool _733;\n do\n {\n int _734 = 0;\n for (;;)\n {\n if (!(_734 < 6))\n {\n break;\n }\n if (_734 >= globalParams.u_clipPlaneCount)\n {\n break;\n }\n if ((dot(globalParams.u_clipPlanes.data[_734].xyz, v0) + globalParams.u_clipPlanes.data[_734].w) < 0.0)\n {\n _732 = true;\n _733 = false;\n break;\n }\n _734++;\n continue;\n }\n if (_732)\n {\n break;\n }\n _732 = true;\n _733 = true;\n break;\n } while(false);\n if (!_733)\n {\n discard;\n }\n highp vec4 _780 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 0), 0);\n highp vec4 _784 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 1), 0);\n highp vec3 _1426 = _780.xyz;\n highp float _1427 = _780.w;\n highp float _1428 = _784.w;\n highp float _1429 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 2), 0).x;\n highp vec3 _1430 = _784.xyz;\n highp float _1448 = globalParams.u_surfaceFinishScale;\n highp float _1449 = globalParams.u_surfaceFinishRoughness;\n highp float _1450 = globalParams.u_surfaceFinishColor;\n highp vec3 _1339;\n highp float _1340;\n highp float _1341;\n highp float _1342;\n highp vec3 _1343;\n do\n {\n if (_1448 <= 0.0)\n {\n _1339 = _1426;\n _1340 = _1427;\n _1341 = _1428;\n _1342 = _1429;\n _1343 = _1430;\n break;\n }\n highp vec3 _814 = v3 / vec3(_1448);\n highp vec3 _841 = floor(_814);\n highp vec3 _842 = _814 - _841;\n highp vec3 _847 = (_842 * _842) * (vec3(3.0) - (_842 * 2.0));\n ivec3 _848 = ivec3(_841);\n uint _887 = (((uint(_848.x) * 2376512323u) + (uint(_848.y) * 3625334849u)) + (uint(_848.z) * 3407524639u)) + 2654435769u;\n uint _890 = (_887 ^ (_887 >> uint(15))) * 739982445u;\n uint _893 = (_890 ^ (_890 >> uint(12))) * 695872825u;\n ivec3 _850 = _848 + ivec3(1, 0, 0);\n uint _912 = (((uint(_850.x) * 2376512323u) + (uint(_850.y) * 3625334849u)) + (uint(_850.z) * 3407524639u)) + 2654435769u;\n uint _915 = (_912 ^ (_912 >> uint(15))) * 739982445u;\n uint _918 = (_915 ^ (_915 >> uint(12))) * 695872825u;\n ivec3 _852 = _848 + ivec3(0, 1, 0);\n uint _937 = (((uint(_852.x) * 2376512323u) + (uint(_852.y) * 3625334849u)) + (uint(_852.z) * 3407524639u)) + 2654435769u;\n uint _940 = (_937 ^ (_937 >> uint(15))) * 739982445u;\n uint _943 = (_940 ^ (_940 >> uint(12))) * 695872825u;\n ivec3 _854 = _848 + ivec3(1, 1, 0);\n uint _962 = (((uint(_854.x) * 2376512323u) + (uint(_854.y) * 3625334849u)) + (uint(_854.z) * 3407524639u)) + 2654435769u;\n uint _965 = (_962 ^ (_962 >> uint(15))) * 739982445u;\n uint _968 = (_965 ^ (_965 >> uint(12))) * 695872825u;\n ivec3 _856 = _848 + ivec3(0, 0, 1);\n uint _987 = (((uint(_856.x) * 2376512323u) + (uint(_856.y) * 3625334849u)) + (uint(_856.z) * 3407524639u)) + 2654435769u;\n uint _990 = (_987 ^ (_987 >> uint(15))) * 739982445u;\n uint _993 = (_990 ^ (_990 >> uint(12))) * 695872825u;\n ivec3 _858 = _848 + ivec3(1, 0, 1);\n uint _1012 = (((uint(_858.x) * 2376512323u) + (uint(_858.y) * 3625334849u)) + (uint(_858.z) * 3407524639u)) + 2654435769u;\n uint _1015 = (_1012 ^ (_1012 >> uint(15))) * 739982445u;\n uint _1018 = (_1015 ^ (_1015 >> uint(12))) * 695872825u;\n ivec3 _860 = _848 + ivec3(0, 1, 1);\n uint _1037 = (((uint(_860.x) * 2376512323u) + (uint(_860.y) * 3625334849u)) + (uint(_860.z) * 3407524639u)) + 2654435769u;\n uint _1040 = (_1037 ^ (_1037 >> uint(15))) * 739982445u;\n uint _1043 = (_1040 ^ (_1040 >> uint(12))) * 695872825u;\n ivec3 _862 = _848 + ivec3(1);\n uint _1062 = (((uint(_862.x) * 2376512323u) + (uint(_862.y) * 3625334849u)) + (uint(_862.z) * 3407524639u)) + 2654435769u;\n uint _1065 = (_1062 ^ (_1062 >> uint(15))) * 739982445u;\n uint _1068 = (_1065 ^ (_1065 >> uint(12))) * 695872825u;\n highp float _864 = _847.x;\n highp float _869 = _847.y;\n highp float _817 = (mix(mix(mix(float((_893 ^ (_893 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_918 ^ (_918 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _864), mix(float((_943 ^ (_943 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_968 ^ (_968 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _864), _869), mix(mix(float((_993 ^ (_993 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1018 ^ (_1018 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _864), mix(float((_1043 ^ (_1043 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1068 ^ (_1068 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _864), _869), _847.z) * 2.0) - 1.0;\n _1339 = clamp(_1426 * (1.0 + (_817 * _1450)), vec3(0.0), vec3(1.0));\n _1340 = _1427;\n _1341 = clamp(_1428 + (_817 * _1449), 0.0, 1.0);\n _1342 = _1429;\n _1343 = _1430;\n break;\n } while(false);\n if (globalParams.u_colorSource == 3)\n {\n entryPointParam_fragmentMain = vec4(_1339, globalParams.u_opacity);\n break;\n }\n highp vec3 _338 = normalize(v2);\n highp vec3 _1080 = normalize(globalParams.u_viewPosition - v1);\n highp vec3 _1461 = _1339;\n highp float _1462 = _1340;\n highp float _1463 = _1341;\n highp float _1464 = _1342;\n highp vec3 _1465 = _1343;\n highp vec3 _1471 = globalParams.u_environmentSky;\n highp vec3 _1472 = globalParams.u_environmentGround;\n highp vec3 _1473 = globalParams.u_environmentUp;\n int _1081 = 0;\n highp vec3 _1082 = vec3(0.0);\n highp vec3 _1123;\n highp vec3 _1124;\n highp vec3 _1125;\n highp float _1126;\n for (;;)\n {\n if (!(_1081 < 4))\n {\n break;\n }\n if (_1081 < globalParams.u_lightCount)\n {\n do\n {\n bool _1131 = globalParams.u_lightPositions.data[_1081].w == 0.0;\n if (_1131)\n {\n _1124 = globalParams.u_lightPositions.data[_1081].xyz;\n }\n else\n {\n _1124 = globalParams.u_lightPositions.data[_1081].xyz - v1;\n }\n highp float _1140 = dot(_1124, _1124);\n if (_1131)\n {\n _1125 = normalize(globalParams.u_lightPositions.data[_1081].xyz);\n }\n else\n {\n _1125 = _1124 * inversesqrt(_1140);\n }\n if (_1131)\n {\n _1126 = 1.0;\n }\n else\n {\n _1126 = 1.0 / _1140;\n }\n highp float _1156 = dot(_338, _1125);\n if (_1156 <= 0.0)\n {\n _1123 = vec3(0.0);\n break;\n }\n highp vec3 _1161 = _1080 + _1125;\n highp float _1162 = dot(_1161, _1161);\n if (_1162 <= 9.9999999600419720025001879548654e-13)\n {\n _1123 = vec3(0.0);\n break;\n }\n highp vec3 _1167 = _1161 * inversesqrt(_1162);\n highp float _1169 = max(dot(_338, _1080), 0.0);\n highp float _1171 = max(dot(_338, _1167), 0.0);\n highp float _1176 = max(_1463, 0.039999999105930328369140625);\n highp vec3 _1208 = mix(vec3(0.039999999105930328369140625), _1461, vec3(_1462));\n highp float _1211 = _1176 * _1176;\n highp float _1212 = _1211 * _1211;\n highp float _1216 = ((_1171 * _1171) * (_1212 - 1.0)) + 1.0;\n highp float _1227 = _1176 + 1.0;\n highp float _1229 = (_1227 * _1227) * 0.125;\n highp float _1236 = _1176 + 1.0;\n highp float _1238 = (_1236 * _1236) * 0.125;\n highp vec3 _1251 = _1208 + ((vec3(1.0) - _1208) * pow(clamp(1.0 - max(dot(_1167, _1080), 0.0), 0.0, 1.0), 5.0));\n _1123 = ((((clamp((vec3(1.0) - _1251) * (1.0 - _1462), vec3(0.0), vec3(1.0)) * _1461) * vec3(0.3183098733425140380859375)) + ((_1251 * ((_1212 / ((3.1415927410125732421875 * _1216) * _1216)) * ((_1169 / ((_1169 * (1.0 - _1229)) + _1229)) * (_1156 / ((_1156 * (1.0 - _1238)) + _1238))))) / vec3(((4.0 * _1169) * _1156) + 9.9999997473787516355514526367188e-05))) * (globalParams.u_lightColors.data[_1081] * _1126)) * _1156;\n break;\n } while(false);\n _1082 += _1123;\n }\n _1081++;\n continue;\n }\n highp vec3 _1287 = mix(vec3(0.039999999105930328369140625), _1461, vec3(_1462));\n highp vec3 _1298 = _1287 + ((max(vec3(1.0 - max(_1463, 0.039999999105930328369140625)), _1287) - _1287) * pow(clamp(1.0 - max(dot(_338, _1080), 0.0), 0.0, 1.0), 5.0));\n highp vec3 _1121 = (((((clamp((vec3(1.0) - _1298) * (1.0 - _1462), vec3(0.0), vec3(1.0)) * mix(_1472, _1471, vec3((dot(_338, _1473) * 0.5) + 0.5))) * _1461) + (mix(_1472, _1471, vec3((dot(reflect(-_1080, _338), _1473) * 0.5) + 0.5)) * _1298)) * _1464) + _1082) + _1465;\n entryPointParam_fragmentMain = vec4(pow(_1121 / (_1121 + vec3(1.0)), vec3(0.454545438289642333984375)), globalParams.u_opacity);\n break;\n } while(false);\n}\n\n",
|
|
353
|
-
"sha256": "
|
|
434
|
+
"source": "#version 300 es\nprecision highp float;\nprecision highp int;\n\nstruct _Array_std140_vector_float_4_6\n{\n highp vec4 data[6];\n};\n\nstruct _Array_std140_vector_float_4_4\n{\n highp vec4 data[4];\n};\n\nstruct _Array_std140_vector_float_3_4\n{\n highp vec3 data[4];\n};\n\nlayout(std140) uniform GlobalParams_std140\n{\n layout(row_major) highp mat4 u_mvpMatrix;\n layout(row_major) highp mat4 u_modelViewMatrix;\n highp vec3 u_deformScale;\n highp vec3 u_deformRotationCenter;\n int u_maskLutWidth;\n int u_maskLutBase;\n int u_transformLutWidth;\n int u_transformLutStride;\n int u_transformLutBase;\n int u_transformMapWidth;\n int u_transformMapBase;\n _Array_std140_vector_float_4_6 u_clipPlanes;\n int u_clipPlaneCount;\n int u_materialMapWidth;\n int u_materialMapBase;\n highp vec3 u_viewPosition;\n highp vec3 u_environmentSky;\n highp vec3 u_environmentGround;\n highp vec3 u_environmentUp;\n _Array_std140_vector_float_4_4 u_lightPositions;\n _Array_std140_vector_float_3_4 u_lightColors;\n int u_lightCount;\n highp float u_surfaceFinishScale;\n highp float u_surfaceFinishRoughness;\n highp float u_surfaceFinishColor;\n int u_colorSource;\n highp float u_opacity;\n} globalParams;\n\nuniform highp sampler2D SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler;\n\nin highp vec3 v0;\nflat in int v4;\nin highp vec3 v3;\nlayout(location = 0) out highp vec4 entryPointParam_fragmentMain;\nin highp vec3 v2;\nin highp vec3 v1;\n\nvoid main()\n{\n bool _732 = false;\n do\n {\n _732 = false;\n bool _733;\n do\n {\n int _734 = 0;\n for (;;)\n {\n if (!(_734 < 6))\n {\n break;\n }\n if (_734 >= globalParams.u_clipPlaneCount)\n {\n break;\n }\n if ((dot(globalParams.u_clipPlanes.data[_734].xyz, v0) + globalParams.u_clipPlanes.data[_734].w) < 0.0)\n {\n _732 = true;\n _733 = false;\n break;\n }\n _734++;\n continue;\n }\n if (_732)\n {\n break;\n }\n _732 = true;\n _733 = true;\n break;\n } while(false);\n if (!_733)\n {\n discard;\n }\n highp vec4 _780 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 0), 0);\n highp vec4 _784 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 1), 0);\n highp vec3 _1426 = _780.xyz;\n highp float _1427 = _780.w;\n highp float _1428 = _784.w;\n highp float _1429 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 2), 0).x;\n highp vec3 _1430 = _784.xyz;\n highp float _1448 = globalParams.u_surfaceFinishScale;\n highp float _1449 = globalParams.u_surfaceFinishRoughness;\n highp float _1450 = globalParams.u_surfaceFinishColor;\n highp vec3 _1339;\n highp float _1340;\n highp float _1341;\n highp float _1342;\n highp vec3 _1343;\n do\n {\n if (_1448 <= 0.0)\n {\n _1339 = _1426;\n _1340 = _1427;\n _1341 = _1428;\n _1342 = _1429;\n _1343 = _1430;\n break;\n }\n highp vec3 _814 = v3 / vec3(_1448);\n highp vec3 _841 = floor(_814);\n highp vec3 _842 = _814 - _841;\n highp vec3 _847 = (_842 * _842) * (vec3(3.0) - (_842 * 2.0));\n ivec3 _848 = ivec3(_841);\n uint _887 = (((uint(_848.x) * 2376512323u) + (uint(_848.y) * 3625334849u)) + (uint(_848.z) * 3407524639u)) + 2654435769u;\n uint _890 = (_887 ^ (_887 >> uint(15))) * 739982445u;\n uint _893 = (_890 ^ (_890 >> uint(12))) * 695872825u;\n ivec3 _850 = _848 + ivec3(1, 0, 0);\n uint _912 = (((uint(_850.x) * 2376512323u) + (uint(_850.y) * 3625334849u)) + (uint(_850.z) * 3407524639u)) + 2654435769u;\n uint _915 = (_912 ^ (_912 >> uint(15))) * 739982445u;\n uint _918 = (_915 ^ (_915 >> uint(12))) * 695872825u;\n ivec3 _852 = _848 + ivec3(0, 1, 0);\n uint _937 = (((uint(_852.x) * 2376512323u) + (uint(_852.y) * 3625334849u)) + (uint(_852.z) * 3407524639u)) + 2654435769u;\n uint _940 = (_937 ^ (_937 >> uint(15))) * 739982445u;\n uint _943 = (_940 ^ (_940 >> uint(12))) * 695872825u;\n ivec3 _854 = _848 + ivec3(1, 1, 0);\n uint _962 = (((uint(_854.x) * 2376512323u) + (uint(_854.y) * 3625334849u)) + (uint(_854.z) * 3407524639u)) + 2654435769u;\n uint _965 = (_962 ^ (_962 >> uint(15))) * 739982445u;\n uint _968 = (_965 ^ (_965 >> uint(12))) * 695872825u;\n ivec3 _856 = _848 + ivec3(0, 0, 1);\n uint _987 = (((uint(_856.x) * 2376512323u) + (uint(_856.y) * 3625334849u)) + (uint(_856.z) * 3407524639u)) + 2654435769u;\n uint _990 = (_987 ^ (_987 >> uint(15))) * 739982445u;\n uint _993 = (_990 ^ (_990 >> uint(12))) * 695872825u;\n ivec3 _858 = _848 + ivec3(1, 0, 1);\n uint _1012 = (((uint(_858.x) * 2376512323u) + (uint(_858.y) * 3625334849u)) + (uint(_858.z) * 3407524639u)) + 2654435769u;\n uint _1015 = (_1012 ^ (_1012 >> uint(15))) * 739982445u;\n uint _1018 = (_1015 ^ (_1015 >> uint(12))) * 695872825u;\n ivec3 _860 = _848 + ivec3(0, 1, 1);\n uint _1037 = (((uint(_860.x) * 2376512323u) + (uint(_860.y) * 3625334849u)) + (uint(_860.z) * 3407524639u)) + 2654435769u;\n uint _1040 = (_1037 ^ (_1037 >> uint(15))) * 739982445u;\n uint _1043 = (_1040 ^ (_1040 >> uint(12))) * 695872825u;\n ivec3 _862 = _848 + ivec3(1);\n uint _1062 = (((uint(_862.x) * 2376512323u) + (uint(_862.y) * 3625334849u)) + (uint(_862.z) * 3407524639u)) + 2654435769u;\n uint _1065 = (_1062 ^ (_1062 >> uint(15))) * 739982445u;\n uint _1068 = (_1065 ^ (_1065 >> uint(12))) * 695872825u;\n highp float _864 = _847.x;\n highp float _869 = _847.y;\n highp float _817 = (mix(mix(mix(float((_893 ^ (_893 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_918 ^ (_918 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _864), mix(float((_943 ^ (_943 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_968 ^ (_968 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _864), _869), mix(mix(float((_993 ^ (_993 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1018 ^ (_1018 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _864), mix(float((_1043 ^ (_1043 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1068 ^ (_1068 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _864), _869), _847.z) * 2.0) - 1.0;\n _1339 = clamp(_1426 * (1.0 + (_817 * _1450)), vec3(0.0), vec3(1.0));\n _1340 = _1427;\n _1341 = clamp(_1428 + (_817 * _1449), 0.0, 1.0);\n _1342 = _1429;\n _1343 = _1430;\n break;\n } while(false);\n if (globalParams.u_colorSource == 3)\n {\n entryPointParam_fragmentMain = vec4(_1339, globalParams.u_opacity);\n break;\n }\n highp vec3 _337 = normalize(v2);\n highp vec3 _1080 = normalize(globalParams.u_viewPosition - v1);\n highp vec3 _1461 = _1339;\n highp float _1462 = _1340;\n highp float _1463 = _1341;\n highp float _1464 = _1342;\n highp vec3 _1465 = _1343;\n highp vec3 _1471 = globalParams.u_environmentSky;\n highp vec3 _1472 = globalParams.u_environmentGround;\n highp vec3 _1473 = globalParams.u_environmentUp;\n int _1081 = 0;\n highp vec3 _1082 = vec3(0.0);\n highp vec3 _1123;\n highp vec3 _1124;\n highp vec3 _1125;\n highp float _1126;\n for (;;)\n {\n if (!(_1081 < 4))\n {\n break;\n }\n if (_1081 < globalParams.u_lightCount)\n {\n do\n {\n bool _1131 = globalParams.u_lightPositions.data[_1081].w == 0.0;\n if (_1131)\n {\n _1124 = globalParams.u_lightPositions.data[_1081].xyz;\n }\n else\n {\n _1124 = globalParams.u_lightPositions.data[_1081].xyz - v1;\n }\n highp float _1140 = dot(_1124, _1124);\n if (_1131)\n {\n _1125 = normalize(globalParams.u_lightPositions.data[_1081].xyz);\n }\n else\n {\n _1125 = _1124 * inversesqrt(_1140);\n }\n if (_1131)\n {\n _1126 = 1.0;\n }\n else\n {\n _1126 = 1.0 / _1140;\n }\n highp float _1156 = dot(_337, _1125);\n if (_1156 <= 0.0)\n {\n _1123 = vec3(0.0);\n break;\n }\n highp vec3 _1161 = _1080 + _1125;\n highp float _1162 = dot(_1161, _1161);\n if (_1162 <= 9.9999999600419720025001879548654e-13)\n {\n _1123 = vec3(0.0);\n break;\n }\n highp vec3 _1167 = _1161 * inversesqrt(_1162);\n highp float _1169 = max(dot(_337, _1080), 0.0);\n highp float _1171 = max(dot(_337, _1167), 0.0);\n highp float _1176 = max(_1463, 0.039999999105930328369140625);\n highp vec3 _1208 = mix(vec3(0.039999999105930328369140625), _1461, vec3(_1462));\n highp float _1211 = _1176 * _1176;\n highp float _1212 = _1211 * _1211;\n highp float _1216 = ((_1171 * _1171) * (_1212 - 1.0)) + 1.0;\n highp float _1227 = _1176 + 1.0;\n highp float _1229 = (_1227 * _1227) * 0.125;\n highp float _1236 = _1176 + 1.0;\n highp float _1238 = (_1236 * _1236) * 0.125;\n highp vec3 _1251 = _1208 + ((vec3(1.0) - _1208) * pow(clamp(1.0 - max(dot(_1167, _1080), 0.0), 0.0, 1.0), 5.0));\n _1123 = ((((clamp((vec3(1.0) - _1251) * (1.0 - _1462), vec3(0.0), vec3(1.0)) * _1461) * vec3(0.3183098733425140380859375)) + ((_1251 * ((_1212 / ((3.1415927410125732421875 * _1216) * _1216)) * ((_1169 / ((_1169 * (1.0 - _1229)) + _1229)) * (_1156 / ((_1156 * (1.0 - _1238)) + _1238))))) / vec3(((4.0 * _1169) * _1156) + 9.9999997473787516355514526367188e-05))) * (globalParams.u_lightColors.data[_1081] * _1126)) * _1156;\n break;\n } while(false);\n _1082 += _1123;\n }\n _1081++;\n continue;\n }\n highp vec3 _1287 = mix(vec3(0.039999999105930328369140625), _1461, vec3(_1462));\n highp vec3 _1298 = _1287 + ((max(vec3(1.0 - max(_1463, 0.039999999105930328369140625)), _1287) - _1287) * pow(clamp(1.0 - max(dot(_337, _1080), 0.0), 0.0, 1.0), 5.0));\n highp vec3 _1121 = (((((clamp((vec3(1.0) - _1298) * (1.0 - _1462), vec3(0.0), vec3(1.0)) * mix(_1472, _1471, vec3((dot(_337, _1473) * 0.5) + 0.5))) * _1461) + (mix(_1472, _1471, vec3((dot(reflect(-_1080, _337), _1473) * 0.5) + 0.5)) * _1298)) * _1464) + _1082) + _1465;\n entryPointParam_fragmentMain = vec4(pow(_1121 / (_1121 + vec3(1.0)), vec3(0.454545438289642333984375)), globalParams.u_opacity);\n break;\n } while(false);\n}\n\n",
|
|
435
|
+
"sha256": "e69016fbd01a463277dcc9ba4f164eb54e4de66ab7b6a8c499bc941088d87f7b"
|
|
354
436
|
}
|
|
355
437
|
}
|
|
356
438
|
}
|