@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",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"capabilities": [
|
|
16
16
|
"deform3",
|
|
17
17
|
"fringe-int",
|
|
18
|
+
"material-map-r16ui",
|
|
18
19
|
"material",
|
|
19
20
|
"material-table",
|
|
20
21
|
"material-surface-finish",
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
"mask-lut-r8ui",
|
|
24
25
|
"transform",
|
|
25
26
|
"transform-lut-r32ui",
|
|
27
|
+
"transform-map-r16ui",
|
|
26
28
|
"clip"
|
|
27
29
|
],
|
|
28
30
|
"inputs": [
|
|
@@ -37,25 +39,15 @@
|
|
|
37
39
|
"semantic": "deformation"
|
|
38
40
|
},
|
|
39
41
|
{
|
|
40
|
-
"name": "
|
|
42
|
+
"name": "a_atomId",
|
|
41
43
|
"type": "int",
|
|
42
|
-
"semantic": "
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"name": "a_componentId",
|
|
46
|
-
"type": "int",
|
|
47
|
-
"semantic": "component-id"
|
|
44
|
+
"semantic": "atom-id"
|
|
48
45
|
},
|
|
49
46
|
{
|
|
50
47
|
"name": "a_normal",
|
|
51
48
|
"type": "vec3",
|
|
52
49
|
"semantic": "normal"
|
|
53
50
|
},
|
|
54
|
-
{
|
|
55
|
-
"name": "a_materialId",
|
|
56
|
-
"type": "int",
|
|
57
|
-
"semantic": "material-id"
|
|
58
|
-
},
|
|
59
51
|
{
|
|
60
52
|
"name": "a_category",
|
|
61
53
|
"type": "int",
|
|
@@ -84,6 +76,10 @@
|
|
|
84
76
|
"name": "u_maskLutWidth",
|
|
85
77
|
"type": "int"
|
|
86
78
|
},
|
|
79
|
+
{
|
|
80
|
+
"name": "u_maskLutBase",
|
|
81
|
+
"type": "int"
|
|
82
|
+
},
|
|
87
83
|
{
|
|
88
84
|
"name": "u_transformLutWidth",
|
|
89
85
|
"type": "int"
|
|
@@ -92,6 +88,18 @@
|
|
|
92
88
|
"name": "u_transformLutStride",
|
|
93
89
|
"type": "int"
|
|
94
90
|
},
|
|
91
|
+
{
|
|
92
|
+
"name": "u_transformLutBase",
|
|
93
|
+
"type": "int"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "u_transformMapWidth",
|
|
97
|
+
"type": "int"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "u_transformMapBase",
|
|
101
|
+
"type": "int"
|
|
102
|
+
},
|
|
95
103
|
{
|
|
96
104
|
"name": "u_clipPlanes",
|
|
97
105
|
"type": "vec4[6]"
|
|
@@ -116,6 +124,14 @@
|
|
|
116
124
|
"name": "u_uncoveredColor",
|
|
117
125
|
"type": "vec4"
|
|
118
126
|
},
|
|
127
|
+
{
|
|
128
|
+
"name": "u_materialMapWidth",
|
|
129
|
+
"type": "int"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "u_materialMapBase",
|
|
133
|
+
"type": "int"
|
|
134
|
+
},
|
|
119
135
|
{
|
|
120
136
|
"name": "u_viewPosition",
|
|
121
137
|
"type": "vec3"
|
|
@@ -199,6 +215,18 @@
|
|
|
199
215
|
"format": "r32ui",
|
|
200
216
|
"semantic": "transform"
|
|
201
217
|
},
|
|
218
|
+
{
|
|
219
|
+
"name": "u_transformMap",
|
|
220
|
+
"type": "Texture2D<uint4>",
|
|
221
|
+
"format": "r16ui",
|
|
222
|
+
"semantic": "transform-map"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"name": "u_materialMap",
|
|
226
|
+
"type": "Texture2D<uint4>",
|
|
227
|
+
"format": "r16ui",
|
|
228
|
+
"semantic": "material-map"
|
|
229
|
+
},
|
|
202
230
|
{
|
|
203
231
|
"name": "u_materialTable",
|
|
204
232
|
"type": "Texture2D<float4>",
|
|
@@ -209,10 +237,10 @@
|
|
|
209
237
|
"textures": [],
|
|
210
238
|
"samplers": []
|
|
211
239
|
},
|
|
212
|
-
"contractSha256": "
|
|
240
|
+
"contractSha256": "2286098e6f247a02352346fa765b2837aa8398377f85b5165ee60d03b1b38ad5",
|
|
213
241
|
"languages": {
|
|
214
242
|
"glsl": {
|
|
215
|
-
"blockSize":
|
|
243
|
+
"blockSize": 2912,
|
|
216
244
|
"layout": {
|
|
217
245
|
"u_mvpMatrix": {
|
|
218
246
|
"offset": 0,
|
|
@@ -246,134 +274,170 @@
|
|
|
246
274
|
"elementStride": 0,
|
|
247
275
|
"encoding": "int"
|
|
248
276
|
},
|
|
249
|
-
"
|
|
277
|
+
"u_maskLutBase": {
|
|
250
278
|
"offset": 160,
|
|
251
279
|
"size": 4,
|
|
252
280
|
"elementStride": 0,
|
|
253
281
|
"encoding": "int"
|
|
254
282
|
},
|
|
255
|
-
"
|
|
283
|
+
"u_transformLutWidth": {
|
|
256
284
|
"offset": 164,
|
|
257
285
|
"size": 4,
|
|
258
286
|
"elementStride": 0,
|
|
259
287
|
"encoding": "int"
|
|
260
288
|
},
|
|
261
|
-
"
|
|
289
|
+
"u_transformLutStride": {
|
|
290
|
+
"offset": 168,
|
|
291
|
+
"size": 4,
|
|
292
|
+
"elementStride": 0,
|
|
293
|
+
"encoding": "int"
|
|
294
|
+
},
|
|
295
|
+
"u_transformLutBase": {
|
|
296
|
+
"offset": 172,
|
|
297
|
+
"size": 4,
|
|
298
|
+
"elementStride": 0,
|
|
299
|
+
"encoding": "int"
|
|
300
|
+
},
|
|
301
|
+
"u_transformMapWidth": {
|
|
262
302
|
"offset": 176,
|
|
303
|
+
"size": 4,
|
|
304
|
+
"elementStride": 0,
|
|
305
|
+
"encoding": "int"
|
|
306
|
+
},
|
|
307
|
+
"u_transformMapBase": {
|
|
308
|
+
"offset": 180,
|
|
309
|
+
"size": 4,
|
|
310
|
+
"elementStride": 0,
|
|
311
|
+
"encoding": "int"
|
|
312
|
+
},
|
|
313
|
+
"u_clipPlanes": {
|
|
314
|
+
"offset": 192,
|
|
263
315
|
"size": 96,
|
|
264
316
|
"elementStride": 16,
|
|
265
317
|
"encoding": "vec4[]"
|
|
266
318
|
},
|
|
267
319
|
"u_clipPlaneCount": {
|
|
268
|
-
"offset":
|
|
320
|
+
"offset": 288,
|
|
269
321
|
"size": 4,
|
|
270
322
|
"elementStride": 0,
|
|
271
323
|
"encoding": "int"
|
|
272
324
|
},
|
|
273
325
|
"u_bandBounds": {
|
|
274
|
-
"offset":
|
|
326
|
+
"offset": 304,
|
|
275
327
|
"size": 1152,
|
|
276
328
|
"elementStride": 16,
|
|
277
329
|
"encoding": "ivec2[]"
|
|
278
330
|
},
|
|
279
331
|
"u_numBands": {
|
|
280
|
-
"offset":
|
|
332
|
+
"offset": 1456,
|
|
281
333
|
"size": 4,
|
|
282
334
|
"elementStride": 0,
|
|
283
335
|
"encoding": "int"
|
|
284
336
|
},
|
|
285
337
|
"u_bandColors": {
|
|
286
|
-
"offset":
|
|
338
|
+
"offset": 1472,
|
|
287
339
|
"size": 1152,
|
|
288
340
|
"elementStride": 16,
|
|
289
341
|
"encoding": "vec4[]"
|
|
290
342
|
},
|
|
291
343
|
"u_uncoveredColor": {
|
|
292
|
-
"offset":
|
|
344
|
+
"offset": 2624,
|
|
293
345
|
"size": 16,
|
|
294
346
|
"elementStride": 4,
|
|
295
347
|
"encoding": "vec4"
|
|
296
348
|
},
|
|
349
|
+
"u_materialMapWidth": {
|
|
350
|
+
"offset": 2640,
|
|
351
|
+
"size": 4,
|
|
352
|
+
"elementStride": 0,
|
|
353
|
+
"encoding": "int"
|
|
354
|
+
},
|
|
355
|
+
"u_materialMapBase": {
|
|
356
|
+
"offset": 2644,
|
|
357
|
+
"size": 4,
|
|
358
|
+
"elementStride": 0,
|
|
359
|
+
"encoding": "int"
|
|
360
|
+
},
|
|
297
361
|
"u_viewPosition": {
|
|
298
|
-
"offset":
|
|
362
|
+
"offset": 2656,
|
|
299
363
|
"size": 12,
|
|
300
364
|
"elementStride": 4,
|
|
301
365
|
"encoding": "vec3"
|
|
302
366
|
},
|
|
303
367
|
"u_environmentSky": {
|
|
304
|
-
"offset":
|
|
368
|
+
"offset": 2672,
|
|
305
369
|
"size": 12,
|
|
306
370
|
"elementStride": 4,
|
|
307
371
|
"encoding": "vec3"
|
|
308
372
|
},
|
|
309
373
|
"u_environmentGround": {
|
|
310
|
-
"offset":
|
|
374
|
+
"offset": 2688,
|
|
311
375
|
"size": 12,
|
|
312
376
|
"elementStride": 4,
|
|
313
377
|
"encoding": "vec3"
|
|
314
378
|
},
|
|
315
379
|
"u_environmentUp": {
|
|
316
|
-
"offset":
|
|
380
|
+
"offset": 2704,
|
|
317
381
|
"size": 12,
|
|
318
382
|
"elementStride": 4,
|
|
319
383
|
"encoding": "vec3"
|
|
320
384
|
},
|
|
321
385
|
"u_lightPositions": {
|
|
322
|
-
"offset":
|
|
386
|
+
"offset": 2720,
|
|
323
387
|
"size": 64,
|
|
324
388
|
"elementStride": 16,
|
|
325
389
|
"encoding": "vec4[]"
|
|
326
390
|
},
|
|
327
391
|
"u_lightColors": {
|
|
328
|
-
"offset":
|
|
392
|
+
"offset": 2784,
|
|
329
393
|
"size": 64,
|
|
330
394
|
"elementStride": 16,
|
|
331
395
|
"encoding": "vec3[]"
|
|
332
396
|
},
|
|
333
397
|
"u_lightCount": {
|
|
334
|
-
"offset":
|
|
398
|
+
"offset": 2848,
|
|
335
399
|
"size": 4,
|
|
336
400
|
"elementStride": 0,
|
|
337
401
|
"encoding": "int"
|
|
338
402
|
},
|
|
339
403
|
"u_surfaceFinishScale": {
|
|
340
|
-
"offset":
|
|
404
|
+
"offset": 2852,
|
|
341
405
|
"size": 4,
|
|
342
406
|
"elementStride": 0,
|
|
343
407
|
"encoding": "float"
|
|
344
408
|
},
|
|
345
409
|
"u_surfaceFinishRoughness": {
|
|
346
|
-
"offset":
|
|
410
|
+
"offset": 2856,
|
|
347
411
|
"size": 4,
|
|
348
412
|
"elementStride": 0,
|
|
349
413
|
"encoding": "float"
|
|
350
414
|
},
|
|
351
415
|
"u_surfaceFinishColor": {
|
|
352
|
-
"offset":
|
|
416
|
+
"offset": 2860,
|
|
353
417
|
"size": 4,
|
|
354
418
|
"elementStride": 0,
|
|
355
419
|
"encoding": "float"
|
|
356
420
|
},
|
|
357
421
|
"u_colorSource": {
|
|
358
|
-
"offset":
|
|
422
|
+
"offset": 2864,
|
|
359
423
|
"size": 4,
|
|
360
424
|
"elementStride": 0,
|
|
361
425
|
"encoding": "int"
|
|
362
426
|
},
|
|
363
427
|
"u_opacity": {
|
|
364
|
-
"offset":
|
|
428
|
+
"offset": 2868,
|
|
365
429
|
"size": 4,
|
|
366
430
|
"elementStride": 0,
|
|
367
431
|
"encoding": "float"
|
|
368
432
|
},
|
|
369
433
|
"u_capTint": {
|
|
370
|
-
"offset":
|
|
434
|
+
"offset": 2880,
|
|
371
435
|
"size": 16,
|
|
372
436
|
"elementStride": 4,
|
|
373
437
|
"encoding": "vec4"
|
|
374
438
|
},
|
|
375
439
|
"u_modelEyePosition": {
|
|
376
|
-
"offset":
|
|
440
|
+
"offset": 2896,
|
|
377
441
|
"size": 12,
|
|
378
442
|
"elementStride": 4,
|
|
379
443
|
"encoding": "vec3"
|
|
@@ -389,6 +453,15 @@
|
|
|
389
453
|
"stage": "vertex",
|
|
390
454
|
"unit": 0
|
|
391
455
|
},
|
|
456
|
+
{
|
|
457
|
+
"semantic": "material-map",
|
|
458
|
+
"texture": "u_materialMap",
|
|
459
|
+
"sampler": null,
|
|
460
|
+
"uniform": "SPIRV_Cross_Combinedu_materialMapSPIRV_Cross_DummySampler",
|
|
461
|
+
"component": "uint",
|
|
462
|
+
"stage": "vertex",
|
|
463
|
+
"unit": 1
|
|
464
|
+
},
|
|
392
465
|
{
|
|
393
466
|
"semantic": "transform",
|
|
394
467
|
"texture": "u_transformLut",
|
|
@@ -396,7 +469,16 @@
|
|
|
396
469
|
"uniform": "SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler",
|
|
397
470
|
"component": "uint",
|
|
398
471
|
"stage": "vertex",
|
|
399
|
-
"unit":
|
|
472
|
+
"unit": 2
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"semantic": "transform-map",
|
|
476
|
+
"texture": "u_transformMap",
|
|
477
|
+
"sampler": null,
|
|
478
|
+
"uniform": "SPIRV_Cross_Combinedu_transformMapSPIRV_Cross_DummySampler",
|
|
479
|
+
"component": "uint",
|
|
480
|
+
"stage": "vertex",
|
|
481
|
+
"unit": 3
|
|
400
482
|
},
|
|
401
483
|
{
|
|
402
484
|
"semantic": "material",
|
|
@@ -405,17 +487,17 @@
|
|
|
405
487
|
"uniform": "SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler",
|
|
406
488
|
"component": "float",
|
|
407
489
|
"stage": "fragment",
|
|
408
|
-
"unit":
|
|
490
|
+
"unit": 4
|
|
409
491
|
}
|
|
410
492
|
],
|
|
411
493
|
"stages": {
|
|
412
494
|
"vertex": {
|
|
413
|
-
"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_int_2_72\n{\n ivec2 data[72];\n};\n\nstruct _Array_std140_vector_float_4_72\n{\n vec4 data[72];\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 _Array_std140_vector_int_2_72 u_bandBounds;\n int u_numBands;\n _Array_std140_vector_float_4_72 u_bandColors;\n vec4 u_uncoveredColor;\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 vec4 u_capTint;\n vec3 u_modelEyePosition;\n} globalParams;\n\nuniform highp usampler2D SPIRV_Cross_Combinedu_maskLutSPIRV_Cross_DummySampler;\nuniform highp usampler2D SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler;\n\nlayout(location = 2) in int
|
|
414
|
-
"sha256": "
|
|
495
|
+
"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_int_2_72\n{\n ivec2 data[72];\n};\n\nstruct _Array_std140_vector_float_4_72\n{\n vec4 data[72];\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 _Array_std140_vector_int_2_72 u_bandBounds;\n int u_numBands;\n _Array_std140_vector_float_4_72 u_bandColors;\n vec4 u_uncoveredColor;\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 vec4 u_capTint;\n vec3 u_modelEyePosition;\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 = 2) in int a_atomId;\nout vec3 v0;\nout vec3 v1;\nout vec3 v2;\nout vec3 v3;\nflat out int v4;\nflat out int v5;\nflat out int v6;\nflat out int v7;\nlayout(location = 0) in vec3 a_position;\nlayout(location = 1) in vec3 a_deformation;\nlayout(location = 3) in vec3 a_normal;\nlayout(location = 4) in int a_category;\nlayout(location = 5) in int a_capEnabled;\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 _482 = globalParams.u_maskLutBase + a_atomId;\n if (!(texelFetch(SPIRV_Cross_Combinedu_maskLutSPIRV_Cross_DummySampler, ivec2(_482 - globalParams.u_maskLutWidth * (_482 / globalParams.u_maskLutWidth), _482 / 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 v5 = 0;\n v6 = 0;\n v7 = 0;\n break;\n }\n vec3 _513 = a_position + (globalParams.u_deformScale * a_deformation);\n int _630 = globalParams.u_transformMapBase + a_atomId;\n int _638 = int(texelFetch(SPIRV_Cross_Combinedu_transformMapSPIRV_Cross_DummySampler, ivec2(_630 - globalParams.u_transformMapWidth * (_630 / globalParams.u_transformMapWidth), _630 / globalParams.u_transformMapWidth), 0).x);\n int _642 = (globalParams.u_transformLutBase + _638) * globalParams.u_transformLutStride;\n int _514;\n vec3 _515;\n vec3 _516;\n if (texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_642 - globalParams.u_transformLutWidth * (_642 / globalParams.u_transformLutWidth), _642 / globalParams.u_transformLutWidth), 0).x != 0u)\n {\n int _658 = ((globalParams.u_transformLutBase + _638) * globalParams.u_transformLutStride) + 1;\n int _670 = ((globalParams.u_transformLutBase + _638) * globalParams.u_transformLutStride) + 2;\n int _682 = ((globalParams.u_transformLutBase + _638) * globalParams.u_transformLutStride) + 3;\n int _700 = ((globalParams.u_transformLutBase + _638) * globalParams.u_transformLutStride) + 4;\n int _712 = ((globalParams.u_transformLutBase + _638) * globalParams.u_transformLutStride) + 5;\n int _724 = ((globalParams.u_transformLutBase + _638) * globalParams.u_transformLutStride) + 6;\n int _736 = ((globalParams.u_transformLutBase + _638) * globalParams.u_transformLutStride) + 7;\n vec4 _750 = vec4(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_700 - globalParams.u_transformLutWidth * (_700 / globalParams.u_transformLutWidth), _700 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_712 - globalParams.u_transformLutWidth * (_712 / globalParams.u_transformLutWidth), _712 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_724 - globalParams.u_transformLutWidth * (_724 / globalParams.u_transformLutWidth), _724 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_736 - globalParams.u_transformLutWidth * (_736 / globalParams.u_transformLutWidth), _736 / globalParams.u_transformLutWidth), 0).x));\n int _755 = ((globalParams.u_transformLutBase + _638) * globalParams.u_transformLutStride) + 8;\n int _767 = ((globalParams.u_transformLutBase + _638) * globalParams.u_transformLutStride) + 9;\n int _779 = ((globalParams.u_transformLutBase + _638) * globalParams.u_transformLutStride) + 10;\n vec3 _792 = vec3(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_755 - globalParams.u_transformLutWidth * (_755 / globalParams.u_transformLutWidth), _755 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_767 - globalParams.u_transformLutWidth * (_767 / globalParams.u_transformLutWidth), _767 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_779 - globalParams.u_transformLutWidth * (_779 / globalParams.u_transformLutWidth), _779 / globalParams.u_transformLutWidth), 0).x));\n vec3 _795 = _792 * _513;\n vec3 _800 = _750.xyz;\n vec3 _802 = cross(_800, _795) * 2.0;\n vec3 _810 = a_normal / _792;\n vec3 _815 = _750.xyz;\n vec3 _817 = cross(_815, _810) * 2.0;\n if (((_792.x * _792.y) * _792.z) < 0.0)\n {\n _514 = 1;\n }\n else\n {\n _514 = 0;\n }\n _515 = ((_795 + (_802 * _750.w)) + cross(_800, _802)) + vec3(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_658 - globalParams.u_transformLutWidth * (_658 / globalParams.u_transformLutWidth), _658 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_670 - globalParams.u_transformLutWidth * (_670 / globalParams.u_transformLutWidth), _670 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_682 - globalParams.u_transformLutWidth * (_682 / globalParams.u_transformLutWidth), _682 / globalParams.u_transformLutWidth), 0).x));\n _516 = normalize((_810 + (_817 * _750.w)) + cross(_815, _817));\n }\n else\n {\n _515 = _513;\n _516 = a_normal;\n _514 = 0;\n }\n vec4 _603 = vec4(_515, 1.0);\n int _825 = globalParams.u_materialMapBase + a_atomId;\n gl_Position = _603 * spvWorkaroundRowMajor(globalParams.u_mvpMatrix);\n v0 = _515;\n v1 = (_603 * spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)).xyz;\n v2 = _516 * 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(_825 - globalParams.u_materialMapWidth * (_825 / globalParams.u_materialMapWidth), _825 / globalParams.u_materialMapWidth), 0).x);\n v5 = a_category;\n v6 = a_capEnabled;\n v7 = _514;\n break;\n } while(false);\n}\n\n",
|
|
496
|
+
"sha256": "b5915d1df023c9f46e626744421a9a8fbeab7692b4e89cf68db001c482b0dd6f"
|
|
415
497
|
},
|
|
416
498
|
"fragment": {
|
|
417
|
-
"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_int_2_72\n{\n ivec2 data[72];\n};\n\nstruct _Array_std140_vector_float_4_72\n{\n highp vec4 data[72];\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 _Array_std140_vector_int_2_72 u_bandBounds;\n int u_numBands;\n _Array_std140_vector_float_4_72 u_bandColors;\n highp vec4 u_uncoveredColor;\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 highp vec4 u_capTint;\n highp vec3 u_modelEyePosition;\n} globalParams;\n\nuniform highp sampler2D SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler;\n\nin highp vec3 v0;\nflat in int v7;\nflat in int v6;\nflat in int v4;\nin highp vec3 v3;\nflat in int v5;\nlayout(location = 0) out highp vec4 entryPointParam_fragmentMain;\nin highp vec3 v2;\nin highp vec3 v1;\n\nhighp mat4 spvWorkaroundRowMajor(highp mat4 wrap) { return wrap; }\nmediump mat4 spvWorkaroundRowMajorMP(mediump mat4 wrap) { return wrap; }\n\nvoid main()\n{\n bool _1539 = false;\n bool _1110 = false;\n do\n {\n _1110 = false;\n bool _1111;\n do\n {\n int _1112 = 0;\n for (;;)\n {\n if (!(_1112 < 6))\n {\n break;\n }\n if (_1112 >= globalParams.u_clipPlaneCount)\n {\n break;\n }\n if ((dot(globalParams.u_clipPlanes.data[_1112].xyz, v0) + globalParams.u_clipPlanes.data[_1112].w) < 0.0)\n {\n _1110 = true;\n _1111 = false;\n break;\n }\n _1112++;\n continue;\n }\n if (_1110)\n {\n break;\n }\n _1110 = true;\n _1111 = true;\n break;\n } while(false);\n if (!_1111)\n {\n discard;\n }\n bool _1156 = gl_FrontFacing != (v7 != 0);\n bool _1157;\n if (!_1156)\n {\n _1157 = v6 == 0;\n }\n else\n {\n _1157 = false;\n }\n if (_1157)\n {\n discard;\n }\n highp vec3 _182 = v0 - globalParams.u_modelEyePosition;\n int _1166 = -1;\n highp float _1168 = 0.0;\n int _1167 = 0;\n bool _1169;\n int _1170;\n highp float _1171;\n for (;;)\n {\n bool _1177_ladder_break = false;\n do\n {\n if (!(_1167 < 6))\n {\n _1177_ladder_break = true;\n break;\n }\n if (_1167 >= globalParams.u_clipPlaneCount)\n {\n _1177_ladder_break = true;\n break;\n }\n highp float _1192 = dot(globalParams.u_clipPlanes.data[_1167].xyz, _182);\n if (_1192 <= 0.0)\n {\n break;\n }\n highp float _1198 = (-(dot(globalParams.u_clipPlanes.data[_1167].xyz, globalParams.u_modelEyePosition) + globalParams.u_clipPlanes.data[_1167].w)) / _1192;\n if (_1166 < 0)\n {\n _1169 = true;\n }\n else\n {\n _1169 = _1198 > _1168;\n }\n if (_1169)\n {\n _1170 = _1167;\n _1171 = _1198;\n }\n else\n {\n _1170 = _1166;\n _1171 = _1168;\n }\n _1166 = _1170;\n _1168 = _1171;\n break;\n } while(false);\n if (_1177_ladder_break)\n {\n break;\n }\n _1167++;\n continue;\n }\n bool _7;\n if (_1166 < 0)\n {\n bool _1228;\n if (!_1156)\n {\n _1228 = v6 != 0;\n }\n else\n {\n _1228 = false;\n }\n _7 = _1228;\n }\n else\n {\n _7 = false;\n }\n if (_7)\n {\n discard;\n }\n highp vec4 _1242 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 0), 0);\n highp vec4 _1246 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 1), 0);\n highp vec4 _1250 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 2), 0);\n highp vec3 _1253 = _1242.xyz;\n highp float _1255 = _1242.w;\n highp vec3 _1257 = _1246.xyz;\n highp float _1259 = _1246.w;\n highp float _1261 = _1250.x;\n highp vec3 _2000 = _1253;\n highp float _2001 = _1255;\n highp float _2002 = _1259;\n highp float _2003 = _1261;\n highp vec3 _2004 = _1257;\n highp vec3 _2028 = _1253;\n highp float _2029 = _1255;\n highp float _2030 = _1259;\n highp float _2031 = _1261;\n highp vec3 _2032 = _1257;\n highp float _2050 = globalParams.u_surfaceFinishScale;\n highp float _2051 = globalParams.u_surfaceFinishRoughness;\n highp float _2052 = globalParams.u_surfaceFinishColor;\n highp vec3 _1920;\n highp float _1921;\n highp float _1922;\n highp float _1923;\n highp vec3 _1924;\n do\n {\n if (_2050 <= 0.0)\n {\n _1920 = _2028;\n _1921 = _2029;\n _1922 = _2030;\n _1923 = _2031;\n _1924 = _2032;\n break;\n }\n highp vec3 _1276 = v3 / vec3(_2050);\n highp vec3 _1303 = floor(_1276);\n highp vec3 _1304 = _1276 - _1303;\n highp vec3 _1309 = (_1304 * _1304) * (vec3(3.0) - (_1304 * 2.0));\n ivec3 _1310 = ivec3(_1303);\n uint _1349 = (((uint(_1310.x) * 2376512323u) + (uint(_1310.y) * 3625334849u)) + (uint(_1310.z) * 3407524639u)) + 2654435769u;\n uint _1352 = (_1349 ^ (_1349 >> uint(15))) * 739982445u;\n uint _1355 = (_1352 ^ (_1352 >> uint(12))) * 695872825u;\n ivec3 _1312 = _1310 + ivec3(1, 0, 0);\n uint _1374 = (((uint(_1312.x) * 2376512323u) + (uint(_1312.y) * 3625334849u)) + (uint(_1312.z) * 3407524639u)) + 2654435769u;\n uint _1377 = (_1374 ^ (_1374 >> uint(15))) * 739982445u;\n uint _1380 = (_1377 ^ (_1377 >> uint(12))) * 695872825u;\n ivec3 _1314 = _1310 + ivec3(0, 1, 0);\n uint _1399 = (((uint(_1314.x) * 2376512323u) + (uint(_1314.y) * 3625334849u)) + (uint(_1314.z) * 3407524639u)) + 2654435769u;\n uint _1402 = (_1399 ^ (_1399 >> uint(15))) * 739982445u;\n uint _1405 = (_1402 ^ (_1402 >> uint(12))) * 695872825u;\n ivec3 _1316 = _1310 + ivec3(1, 1, 0);\n uint _1424 = (((uint(_1316.x) * 2376512323u) + (uint(_1316.y) * 3625334849u)) + (uint(_1316.z) * 3407524639u)) + 2654435769u;\n uint _1427 = (_1424 ^ (_1424 >> uint(15))) * 739982445u;\n uint _1430 = (_1427 ^ (_1427 >> uint(12))) * 695872825u;\n ivec3 _1318 = _1310 + ivec3(0, 0, 1);\n uint _1449 = (((uint(_1318.x) * 2376512323u) + (uint(_1318.y) * 3625334849u)) + (uint(_1318.z) * 3407524639u)) + 2654435769u;\n uint _1452 = (_1449 ^ (_1449 >> uint(15))) * 739982445u;\n uint _1455 = (_1452 ^ (_1452 >> uint(12))) * 695872825u;\n ivec3 _1320 = _1310 + ivec3(1, 0, 1);\n uint _1474 = (((uint(_1320.x) * 2376512323u) + (uint(_1320.y) * 3625334849u)) + (uint(_1320.z) * 3407524639u)) + 2654435769u;\n uint _1477 = (_1474 ^ (_1474 >> uint(15))) * 739982445u;\n uint _1480 = (_1477 ^ (_1477 >> uint(12))) * 695872825u;\n ivec3 _1322 = _1310 + ivec3(0, 1, 1);\n uint _1499 = (((uint(_1322.x) * 2376512323u) + (uint(_1322.y) * 3625334849u)) + (uint(_1322.z) * 3407524639u)) + 2654435769u;\n uint _1502 = (_1499 ^ (_1499 >> uint(15))) * 739982445u;\n uint _1505 = (_1502 ^ (_1502 >> uint(12))) * 695872825u;\n ivec3 _1324 = _1310 + ivec3(1);\n uint _1524 = (((uint(_1324.x) * 2376512323u) + (uint(_1324.y) * 3625334849u)) + (uint(_1324.z) * 3407524639u)) + 2654435769u;\n uint _1527 = (_1524 ^ (_1524 >> uint(15))) * 739982445u;\n uint _1530 = (_1527 ^ (_1527 >> uint(12))) * 695872825u;\n highp float _1326 = _1309.x;\n highp float _1331 = _1309.y;\n highp float _1279 = (mix(mix(mix(float((_1355 ^ (_1355 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1380 ^ (_1380 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1326), mix(float((_1405 ^ (_1405 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1430 ^ (_1430 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1326), _1331), mix(mix(float((_1455 ^ (_1455 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1480 ^ (_1480 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1326), mix(float((_1505 ^ (_1505 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1530 ^ (_1530 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1326), _1331), _1309.z) * 2.0) - 1.0;\n _1920 = clamp(_2028 * (1.0 + (_1279 * _2052)), vec3(0.0), vec3(1.0));\n _1921 = _2029;\n _1922 = clamp(_2030 + (_1279 * _2051), 0.0, 1.0);\n _1923 = _2031;\n _1924 = _2032;\n break;\n } while(false);\n _2000 = _1920;\n _2001 = _1921;\n _2002 = _1922;\n _2003 = _1923;\n _2004 = _1924;\n _1539 = false;\n highp vec4 _1540;\n do\n {\n int _1541 = 0;\n bool _1542;\n for (;;)\n {\n if (!(_1541 < globalParams.u_numBands))\n {\n break;\n }\n if (v5 >= globalParams.u_bandBounds.data[_1541].x)\n {\n _1542 = v5 < globalParams.u_bandBounds.data[_1541].y;\n }\n else\n {\n _1542 = false;\n }\n if (_1542)\n {\n _1539 = true;\n _1540 = globalParams.u_bandColors.data[_1541];\n break;\n }\n _1541++;\n continue;\n }\n if (_1539)\n {\n break;\n }\n _1539 = true;\n _1540 = globalParams.u_uncoveredColor;\n break;\n } while(false);\n if (globalParams.u_colorSource == 1)\n {\n highp vec3 _1585;\n do\n {\n bool _1600;\n if (!_1156)\n {\n _1600 = v6 != 0;\n }\n else\n {\n _1600 = false;\n }\n if (_1600)\n {\n _1585 = (_1540.xyz * (1.0 - globalParams.u_capTint.w)) + (globalParams.u_capTint.xyz * globalParams.u_capTint.w);\n break;\n }\n _1585 = _1540.xyz;\n break;\n } while(false);\n entryPointParam_fragmentMain = vec4(_1585, _1540.w * globalParams.u_opacity);\n break;\n }\n if (globalParams.u_colorSource == 2)\n {\n _2000 = mix(_1540.xyz * vec3(0.077399380505084991455078125), pow((_1540.xyz + vec3(0.054999999701976776123046875)) * vec3(0.947867333889007568359375), vec3(2.400000095367431640625)), step(vec3(0.040449999272823333740234375), _1540.xyz));\n }\n highp vec3 _1621;\n do\n {\n bool _1636;\n if (!_1156)\n {\n _1636 = v6 != 0;\n }\n else\n {\n _1636 = false;\n }\n if (_1636)\n {\n _1621 = (_2000 * (1.0 - globalParams.u_capTint.w)) + (globalParams.u_capTint.xyz * globalParams.u_capTint.w);\n break;\n }\n _1621 = _2000;\n break;\n } while(false);\n _2000 = _1621;\n if (globalParams.u_colorSource == 3)\n {\n entryPointParam_fragmentMain = vec4(_2000, globalParams.u_opacity);\n break;\n }\n bool _1645;\n if (!_1156)\n {\n _1645 = v6 != 0;\n }\n else\n {\n _1645 = false;\n }\n highp vec3 N;\n if (_1645)\n {\n N = normalize((-globalParams.u_clipPlanes.data[max(_1166, 0)].xyz) * mat3(spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[0].xyz, spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[1].xyz, spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[2].xyz));\n }\n else\n {\n N = normalize(v2);\n }\n highp vec3 _1661 = normalize(globalParams.u_viewPosition - v1);\n highp vec3 _2063 = _2000;\n highp float _2064 = _2001;\n highp float _2065 = _2002;\n highp float _2066 = _2003;\n highp vec3 _2067 = _2004;\n highp vec3 _2073 = globalParams.u_environmentSky;\n highp vec3 _2074 = globalParams.u_environmentGround;\n highp vec3 _2075 = globalParams.u_environmentUp;\n int _1662 = 0;\n highp vec3 _1663 = vec3(0.0);\n highp vec3 _1704;\n highp vec3 _1705;\n highp vec3 _1706;\n highp float _1707;\n for (;;)\n {\n if (!(_1662 < 4))\n {\n break;\n }\n if (_1662 < globalParams.u_lightCount)\n {\n do\n {\n bool _1712 = globalParams.u_lightPositions.data[_1662].w == 0.0;\n if (_1712)\n {\n _1705 = globalParams.u_lightPositions.data[_1662].xyz;\n }\n else\n {\n _1705 = globalParams.u_lightPositions.data[_1662].xyz - v1;\n }\n highp float _1721 = dot(_1705, _1705);\n if (_1712)\n {\n _1706 = normalize(globalParams.u_lightPositions.data[_1662].xyz);\n }\n else\n {\n _1706 = _1705 * inversesqrt(_1721);\n }\n if (_1712)\n {\n _1707 = 1.0;\n }\n else\n {\n _1707 = 1.0 / _1721;\n }\n highp float _1737 = dot(N, _1706);\n if (_1737 <= 0.0)\n {\n _1704 = vec3(0.0);\n break;\n }\n highp vec3 _1742 = _1661 + _1706;\n highp float _1743 = dot(_1742, _1742);\n if (_1743 <= 9.9999999600419720025001879548654e-13)\n {\n _1704 = vec3(0.0);\n break;\n }\n highp vec3 _1748 = _1742 * inversesqrt(_1743);\n highp float _1750 = max(dot(N, _1661), 0.0);\n highp float _1752 = max(dot(N, _1748), 0.0);\n highp float _1757 = max(_2065, 0.039999999105930328369140625);\n highp vec3 _1789 = mix(vec3(0.039999999105930328369140625), _2063, vec3(_2064));\n highp float _1792 = _1757 * _1757;\n highp float _1793 = _1792 * _1792;\n highp float _1797 = ((_1752 * _1752) * (_1793 - 1.0)) + 1.0;\n highp float _1808 = _1757 + 1.0;\n highp float _1810 = (_1808 * _1808) * 0.125;\n highp float _1817 = _1757 + 1.0;\n highp float _1819 = (_1817 * _1817) * 0.125;\n highp vec3 _1832 = _1789 + ((vec3(1.0) - _1789) * pow(clamp(1.0 - max(dot(_1748, _1661), 0.0), 0.0, 1.0), 5.0));\n _1704 = ((((clamp((vec3(1.0) - _1832) * (1.0 - _2064), vec3(0.0), vec3(1.0)) * _2063) * vec3(0.3183098733425140380859375)) + ((_1832 * ((_1793 / ((3.1415927410125732421875 * _1797) * _1797)) * ((_1750 / ((_1750 * (1.0 - _1810)) + _1810)) * (_1737 / ((_1737 * (1.0 - _1819)) + _1819))))) / vec3(((4.0 * _1750) * _1737) + 9.9999997473787516355514526367188e-05))) * (globalParams.u_lightColors.data[_1662] * _1707)) * _1737;\n break;\n } while(false);\n _1663 += _1704;\n }\n _1662++;\n continue;\n }\n highp vec3 _1868 = mix(vec3(0.039999999105930328369140625), _2063, vec3(_2064));\n highp vec3 _1879 = _1868 + ((max(vec3(1.0 - max(_2065, 0.039999999105930328369140625)), _1868) - _1868) * pow(clamp(1.0 - max(dot(N, _1661), 0.0), 0.0, 1.0), 5.0));\n highp vec3 _1702 = (((((clamp((vec3(1.0) - _1879) * (1.0 - _2064), vec3(0.0), vec3(1.0)) * mix(_2074, _2073, vec3((dot(N, _2075) * 0.5) + 0.5))) * _2063) + (mix(_2074, _2073, vec3((dot(reflect(-_1661, N), _2075) * 0.5) + 0.5)) * _1879)) * _2066) + _1663) + _2067;\n entryPointParam_fragmentMain = vec4(pow(_1702 / (_1702 + vec3(1.0)), vec3(0.454545438289642333984375)), globalParams.u_opacity);\n break;\n } while(false);\n}\n\n",
|
|
418
|
-
"sha256": "
|
|
499
|
+
"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_int_2_72\n{\n ivec2 data[72];\n};\n\nstruct _Array_std140_vector_float_4_72\n{\n highp vec4 data[72];\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 _Array_std140_vector_int_2_72 u_bandBounds;\n int u_numBands;\n _Array_std140_vector_float_4_72 u_bandColors;\n highp vec4 u_uncoveredColor;\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 highp vec4 u_capTint;\n highp vec3 u_modelEyePosition;\n} globalParams;\n\nuniform highp sampler2D SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler;\n\nin highp vec3 v0;\nflat in int v7;\nflat in int v6;\nflat in int v4;\nin highp vec3 v3;\nflat in int v5;\nlayout(location = 0) out highp vec4 entryPointParam_fragmentMain;\nin highp vec3 v2;\nin highp vec3 v1;\n\nhighp mat4 spvWorkaroundRowMajor(highp mat4 wrap) { return wrap; }\nmediump mat4 spvWorkaroundRowMajorMP(mediump mat4 wrap) { return wrap; }\n\nvoid main()\n{\n bool _1539 = false;\n bool _1110 = false;\n do\n {\n _1110 = false;\n bool _1111;\n do\n {\n int _1112 = 0;\n for (;;)\n {\n if (!(_1112 < 6))\n {\n break;\n }\n if (_1112 >= globalParams.u_clipPlaneCount)\n {\n break;\n }\n if ((dot(globalParams.u_clipPlanes.data[_1112].xyz, v0) + globalParams.u_clipPlanes.data[_1112].w) < 0.0)\n {\n _1110 = true;\n _1111 = false;\n break;\n }\n _1112++;\n continue;\n }\n if (_1110)\n {\n break;\n }\n _1110 = true;\n _1111 = true;\n break;\n } while(false);\n if (!_1111)\n {\n discard;\n }\n bool _1156 = gl_FrontFacing != (v7 != 0);\n bool _1157;\n if (!_1156)\n {\n _1157 = v6 == 0;\n }\n else\n {\n _1157 = false;\n }\n if (_1157)\n {\n discard;\n }\n highp vec3 _182 = v0 - globalParams.u_modelEyePosition;\n int _1166 = -1;\n highp float _1168 = 0.0;\n int _1167 = 0;\n bool _1169;\n int _1170;\n highp float _1171;\n for (;;)\n {\n bool _1177_ladder_break = false;\n do\n {\n if (!(_1167 < 6))\n {\n _1177_ladder_break = true;\n break;\n }\n if (_1167 >= globalParams.u_clipPlaneCount)\n {\n _1177_ladder_break = true;\n break;\n }\n highp float _1192 = dot(globalParams.u_clipPlanes.data[_1167].xyz, _182);\n if (_1192 <= 0.0)\n {\n break;\n }\n highp float _1198 = (-(dot(globalParams.u_clipPlanes.data[_1167].xyz, globalParams.u_modelEyePosition) + globalParams.u_clipPlanes.data[_1167].w)) / _1192;\n if (_1166 < 0)\n {\n _1169 = true;\n }\n else\n {\n _1169 = _1198 > _1168;\n }\n if (_1169)\n {\n _1170 = _1167;\n _1171 = _1198;\n }\n else\n {\n _1170 = _1166;\n _1171 = _1168;\n }\n _1166 = _1170;\n _1168 = _1171;\n break;\n } while(false);\n if (_1177_ladder_break)\n {\n break;\n }\n _1167++;\n continue;\n }\n bool _7;\n if (_1166 < 0)\n {\n bool _1228;\n if (!_1156)\n {\n _1228 = v6 != 0;\n }\n else\n {\n _1228 = false;\n }\n _7 = _1228;\n }\n else\n {\n _7 = false;\n }\n if (_7)\n {\n discard;\n }\n highp vec4 _1242 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 0), 0);\n highp vec4 _1246 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 1), 0);\n highp vec4 _1250 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 2), 0);\n highp vec3 _1253 = _1242.xyz;\n highp float _1255 = _1242.w;\n highp vec3 _1257 = _1246.xyz;\n highp float _1259 = _1246.w;\n highp float _1261 = _1250.x;\n highp vec3 _2000 = _1253;\n highp float _2001 = _1255;\n highp float _2002 = _1259;\n highp float _2003 = _1261;\n highp vec3 _2004 = _1257;\n highp vec3 _2028 = _1253;\n highp float _2029 = _1255;\n highp float _2030 = _1259;\n highp float _2031 = _1261;\n highp vec3 _2032 = _1257;\n highp float _2050 = globalParams.u_surfaceFinishScale;\n highp float _2051 = globalParams.u_surfaceFinishRoughness;\n highp float _2052 = globalParams.u_surfaceFinishColor;\n highp vec3 _1920;\n highp float _1921;\n highp float _1922;\n highp float _1923;\n highp vec3 _1924;\n do\n {\n if (_2050 <= 0.0)\n {\n _1920 = _2028;\n _1921 = _2029;\n _1922 = _2030;\n _1923 = _2031;\n _1924 = _2032;\n break;\n }\n highp vec3 _1276 = v3 / vec3(_2050);\n highp vec3 _1303 = floor(_1276);\n highp vec3 _1304 = _1276 - _1303;\n highp vec3 _1309 = (_1304 * _1304) * (vec3(3.0) - (_1304 * 2.0));\n ivec3 _1310 = ivec3(_1303);\n uint _1349 = (((uint(_1310.x) * 2376512323u) + (uint(_1310.y) * 3625334849u)) + (uint(_1310.z) * 3407524639u)) + 2654435769u;\n uint _1352 = (_1349 ^ (_1349 >> uint(15))) * 739982445u;\n uint _1355 = (_1352 ^ (_1352 >> uint(12))) * 695872825u;\n ivec3 _1312 = _1310 + ivec3(1, 0, 0);\n uint _1374 = (((uint(_1312.x) * 2376512323u) + (uint(_1312.y) * 3625334849u)) + (uint(_1312.z) * 3407524639u)) + 2654435769u;\n uint _1377 = (_1374 ^ (_1374 >> uint(15))) * 739982445u;\n uint _1380 = (_1377 ^ (_1377 >> uint(12))) * 695872825u;\n ivec3 _1314 = _1310 + ivec3(0, 1, 0);\n uint _1399 = (((uint(_1314.x) * 2376512323u) + (uint(_1314.y) * 3625334849u)) + (uint(_1314.z) * 3407524639u)) + 2654435769u;\n uint _1402 = (_1399 ^ (_1399 >> uint(15))) * 739982445u;\n uint _1405 = (_1402 ^ (_1402 >> uint(12))) * 695872825u;\n ivec3 _1316 = _1310 + ivec3(1, 1, 0);\n uint _1424 = (((uint(_1316.x) * 2376512323u) + (uint(_1316.y) * 3625334849u)) + (uint(_1316.z) * 3407524639u)) + 2654435769u;\n uint _1427 = (_1424 ^ (_1424 >> uint(15))) * 739982445u;\n uint _1430 = (_1427 ^ (_1427 >> uint(12))) * 695872825u;\n ivec3 _1318 = _1310 + ivec3(0, 0, 1);\n uint _1449 = (((uint(_1318.x) * 2376512323u) + (uint(_1318.y) * 3625334849u)) + (uint(_1318.z) * 3407524639u)) + 2654435769u;\n uint _1452 = (_1449 ^ (_1449 >> uint(15))) * 739982445u;\n uint _1455 = (_1452 ^ (_1452 >> uint(12))) * 695872825u;\n ivec3 _1320 = _1310 + ivec3(1, 0, 1);\n uint _1474 = (((uint(_1320.x) * 2376512323u) + (uint(_1320.y) * 3625334849u)) + (uint(_1320.z) * 3407524639u)) + 2654435769u;\n uint _1477 = (_1474 ^ (_1474 >> uint(15))) * 739982445u;\n uint _1480 = (_1477 ^ (_1477 >> uint(12))) * 695872825u;\n ivec3 _1322 = _1310 + ivec3(0, 1, 1);\n uint _1499 = (((uint(_1322.x) * 2376512323u) + (uint(_1322.y) * 3625334849u)) + (uint(_1322.z) * 3407524639u)) + 2654435769u;\n uint _1502 = (_1499 ^ (_1499 >> uint(15))) * 739982445u;\n uint _1505 = (_1502 ^ (_1502 >> uint(12))) * 695872825u;\n ivec3 _1324 = _1310 + ivec3(1);\n uint _1524 = (((uint(_1324.x) * 2376512323u) + (uint(_1324.y) * 3625334849u)) + (uint(_1324.z) * 3407524639u)) + 2654435769u;\n uint _1527 = (_1524 ^ (_1524 >> uint(15))) * 739982445u;\n uint _1530 = (_1527 ^ (_1527 >> uint(12))) * 695872825u;\n highp float _1326 = _1309.x;\n highp float _1331 = _1309.y;\n highp float _1279 = (mix(mix(mix(float((_1355 ^ (_1355 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1380 ^ (_1380 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1326), mix(float((_1405 ^ (_1405 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1430 ^ (_1430 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1326), _1331), mix(mix(float((_1455 ^ (_1455 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1480 ^ (_1480 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1326), mix(float((_1505 ^ (_1505 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1530 ^ (_1530 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1326), _1331), _1309.z) * 2.0) - 1.0;\n _1920 = clamp(_2028 * (1.0 + (_1279 * _2052)), vec3(0.0), vec3(1.0));\n _1921 = _2029;\n _1922 = clamp(_2030 + (_1279 * _2051), 0.0, 1.0);\n _1923 = _2031;\n _1924 = _2032;\n break;\n } while(false);\n _2000 = _1920;\n _2001 = _1921;\n _2002 = _1922;\n _2003 = _1923;\n _2004 = _1924;\n _1539 = false;\n highp vec4 _1540;\n do\n {\n int _1541 = 0;\n bool _1542;\n for (;;)\n {\n if (!(_1541 < globalParams.u_numBands))\n {\n break;\n }\n if (v5 >= globalParams.u_bandBounds.data[_1541].x)\n {\n _1542 = v5 < globalParams.u_bandBounds.data[_1541].y;\n }\n else\n {\n _1542 = false;\n }\n if (_1542)\n {\n _1539 = true;\n _1540 = globalParams.u_bandColors.data[_1541];\n break;\n }\n _1541++;\n continue;\n }\n if (_1539)\n {\n break;\n }\n _1539 = true;\n _1540 = globalParams.u_uncoveredColor;\n break;\n } while(false);\n if (globalParams.u_colorSource == 1)\n {\n highp vec3 _1585;\n do\n {\n bool _1600;\n if (!_1156)\n {\n _1600 = v6 != 0;\n }\n else\n {\n _1600 = false;\n }\n if (_1600)\n {\n _1585 = (_1540.xyz * (1.0 - globalParams.u_capTint.w)) + (globalParams.u_capTint.xyz * globalParams.u_capTint.w);\n break;\n }\n _1585 = _1540.xyz;\n break;\n } while(false);\n entryPointParam_fragmentMain = vec4(_1585, _1540.w * globalParams.u_opacity);\n break;\n }\n if (globalParams.u_colorSource == 2)\n {\n _2000 = mix(_1540.xyz * vec3(0.077399380505084991455078125), pow((_1540.xyz + vec3(0.054999999701976776123046875)) * vec3(0.947867333889007568359375), vec3(2.400000095367431640625)), step(vec3(0.040449999272823333740234375), _1540.xyz));\n }\n highp vec3 _1621;\n do\n {\n bool _1636;\n if (!_1156)\n {\n _1636 = v6 != 0;\n }\n else\n {\n _1636 = false;\n }\n if (_1636)\n {\n _1621 = (_2000 * (1.0 - globalParams.u_capTint.w)) + (globalParams.u_capTint.xyz * globalParams.u_capTint.w);\n break;\n }\n _1621 = _2000;\n break;\n } while(false);\n _2000 = _1621;\n if (globalParams.u_colorSource == 3)\n {\n entryPointParam_fragmentMain = vec4(_2000, globalParams.u_opacity);\n break;\n }\n bool _1645;\n if (!_1156)\n {\n _1645 = v6 != 0;\n }\n else\n {\n _1645 = false;\n }\n highp vec3 N;\n if (_1645)\n {\n N = normalize((-globalParams.u_clipPlanes.data[max(_1166, 0)].xyz) * mat3(spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[0].xyz, spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[1].xyz, spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[2].xyz));\n }\n else\n {\n N = normalize(v2);\n }\n highp vec3 _1661 = normalize(globalParams.u_viewPosition - v1);\n highp vec3 _2063 = _2000;\n highp float _2064 = _2001;\n highp float _2065 = _2002;\n highp float _2066 = _2003;\n highp vec3 _2067 = _2004;\n highp vec3 _2073 = globalParams.u_environmentSky;\n highp vec3 _2074 = globalParams.u_environmentGround;\n highp vec3 _2075 = globalParams.u_environmentUp;\n int _1662 = 0;\n highp vec3 _1663 = vec3(0.0);\n highp vec3 _1704;\n highp vec3 _1705;\n highp vec3 _1706;\n highp float _1707;\n for (;;)\n {\n if (!(_1662 < 4))\n {\n break;\n }\n if (_1662 < globalParams.u_lightCount)\n {\n do\n {\n bool _1712 = globalParams.u_lightPositions.data[_1662].w == 0.0;\n if (_1712)\n {\n _1705 = globalParams.u_lightPositions.data[_1662].xyz;\n }\n else\n {\n _1705 = globalParams.u_lightPositions.data[_1662].xyz - v1;\n }\n highp float _1721 = dot(_1705, _1705);\n if (_1712)\n {\n _1706 = normalize(globalParams.u_lightPositions.data[_1662].xyz);\n }\n else\n {\n _1706 = _1705 * inversesqrt(_1721);\n }\n if (_1712)\n {\n _1707 = 1.0;\n }\n else\n {\n _1707 = 1.0 / _1721;\n }\n highp float _1737 = dot(N, _1706);\n if (_1737 <= 0.0)\n {\n _1704 = vec3(0.0);\n break;\n }\n highp vec3 _1742 = _1661 + _1706;\n highp float _1743 = dot(_1742, _1742);\n if (_1743 <= 9.9999999600419720025001879548654e-13)\n {\n _1704 = vec3(0.0);\n break;\n }\n highp vec3 _1748 = _1742 * inversesqrt(_1743);\n highp float _1750 = max(dot(N, _1661), 0.0);\n highp float _1752 = max(dot(N, _1748), 0.0);\n highp float _1757 = max(_2065, 0.039999999105930328369140625);\n highp vec3 _1789 = mix(vec3(0.039999999105930328369140625), _2063, vec3(_2064));\n highp float _1792 = _1757 * _1757;\n highp float _1793 = _1792 * _1792;\n highp float _1797 = ((_1752 * _1752) * (_1793 - 1.0)) + 1.0;\n highp float _1808 = _1757 + 1.0;\n highp float _1810 = (_1808 * _1808) * 0.125;\n highp float _1817 = _1757 + 1.0;\n highp float _1819 = (_1817 * _1817) * 0.125;\n highp vec3 _1832 = _1789 + ((vec3(1.0) - _1789) * pow(clamp(1.0 - max(dot(_1748, _1661), 0.0), 0.0, 1.0), 5.0));\n _1704 = ((((clamp((vec3(1.0) - _1832) * (1.0 - _2064), vec3(0.0), vec3(1.0)) * _2063) * vec3(0.3183098733425140380859375)) + ((_1832 * ((_1793 / ((3.1415927410125732421875 * _1797) * _1797)) * ((_1750 / ((_1750 * (1.0 - _1810)) + _1810)) * (_1737 / ((_1737 * (1.0 - _1819)) + _1819))))) / vec3(((4.0 * _1750) * _1737) + 9.9999997473787516355514526367188e-05))) * (globalParams.u_lightColors.data[_1662] * _1707)) * _1737;\n break;\n } while(false);\n _1663 += _1704;\n }\n _1662++;\n continue;\n }\n highp vec3 _1868 = mix(vec3(0.039999999105930328369140625), _2063, vec3(_2064));\n highp vec3 _1879 = _1868 + ((max(vec3(1.0 - max(_2065, 0.039999999105930328369140625)), _1868) - _1868) * pow(clamp(1.0 - max(dot(N, _1661), 0.0), 0.0, 1.0), 5.0));\n highp vec3 _1702 = (((((clamp((vec3(1.0) - _1879) * (1.0 - _2064), vec3(0.0), vec3(1.0)) * mix(_2074, _2073, vec3((dot(N, _2075) * 0.5) + 0.5))) * _2063) + (mix(_2074, _2073, vec3((dot(reflect(-_1661, N), _2075) * 0.5) + 0.5)) * _1879)) * _2066) + _1663) + _2067;\n entryPointParam_fragmentMain = vec4(pow(_1702 / (_1702 + vec3(1.0)), vec3(0.454545438289642333984375)), globalParams.u_opacity);\n break;\n } while(false);\n}\n\n",
|
|
500
|
+
"sha256": "0914d07536b5bfa34b16b8c5a690efea2b91ab86e81ce6245e6b23a14e1f264e"
|
|
419
501
|
}
|
|
420
502
|
}
|
|
421
503
|
}
|