@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",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"deform3",
|
|
17
17
|
"dof6",
|
|
18
18
|
"fringe-float",
|
|
19
|
+
"material-map-r16ui",
|
|
19
20
|
"material",
|
|
20
21
|
"material-table",
|
|
21
22
|
"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_result0",
|
|
61
53
|
"type": "vec3",
|
|
@@ -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]"
|
|
@@ -158,6 +166,14 @@
|
|
|
158
166
|
"name": "u_errorColor",
|
|
159
167
|
"type": "vec4"
|
|
160
168
|
},
|
|
169
|
+
{
|
|
170
|
+
"name": "u_materialMapWidth",
|
|
171
|
+
"type": "int"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"name": "u_materialMapBase",
|
|
175
|
+
"type": "int"
|
|
176
|
+
},
|
|
161
177
|
{
|
|
162
178
|
"name": "u_viewPosition",
|
|
163
179
|
"type": "vec3"
|
|
@@ -233,6 +249,18 @@
|
|
|
233
249
|
"format": "r32ui",
|
|
234
250
|
"semantic": "transform"
|
|
235
251
|
},
|
|
252
|
+
{
|
|
253
|
+
"name": "u_transformMap",
|
|
254
|
+
"type": "Texture2D<uint4>",
|
|
255
|
+
"format": "r16ui",
|
|
256
|
+
"semantic": "transform-map"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"name": "u_materialMap",
|
|
260
|
+
"type": "Texture2D<uint4>",
|
|
261
|
+
"format": "r16ui",
|
|
262
|
+
"semantic": "material-map"
|
|
263
|
+
},
|
|
236
264
|
{
|
|
237
265
|
"name": "u_materialTable",
|
|
238
266
|
"type": "Texture2D<float4>",
|
|
@@ -243,10 +271,10 @@
|
|
|
243
271
|
"textures": [],
|
|
244
272
|
"samplers": []
|
|
245
273
|
},
|
|
246
|
-
"contractSha256": "
|
|
274
|
+
"contractSha256": "53f6102513460a49d7233cbf4202f1a93f5722910a1acba0df473085a4ced5bc",
|
|
247
275
|
"languages": {
|
|
248
276
|
"glsl": {
|
|
249
|
-
"blockSize":
|
|
277
|
+
"blockSize": 5344,
|
|
250
278
|
"layout": {
|
|
251
279
|
"u_mvpMatrix": {
|
|
252
280
|
"offset": 0,
|
|
@@ -280,164 +308,200 @@
|
|
|
280
308
|
"elementStride": 0,
|
|
281
309
|
"encoding": "int"
|
|
282
310
|
},
|
|
283
|
-
"
|
|
311
|
+
"u_maskLutBase": {
|
|
284
312
|
"offset": 160,
|
|
285
313
|
"size": 4,
|
|
286
314
|
"elementStride": 0,
|
|
287
315
|
"encoding": "int"
|
|
288
316
|
},
|
|
289
|
-
"
|
|
317
|
+
"u_transformLutWidth": {
|
|
290
318
|
"offset": 164,
|
|
291
319
|
"size": 4,
|
|
292
320
|
"elementStride": 0,
|
|
293
321
|
"encoding": "int"
|
|
294
322
|
},
|
|
295
|
-
"
|
|
323
|
+
"u_transformLutStride": {
|
|
324
|
+
"offset": 168,
|
|
325
|
+
"size": 4,
|
|
326
|
+
"elementStride": 0,
|
|
327
|
+
"encoding": "int"
|
|
328
|
+
},
|
|
329
|
+
"u_transformLutBase": {
|
|
330
|
+
"offset": 172,
|
|
331
|
+
"size": 4,
|
|
332
|
+
"elementStride": 0,
|
|
333
|
+
"encoding": "int"
|
|
334
|
+
},
|
|
335
|
+
"u_transformMapWidth": {
|
|
296
336
|
"offset": 176,
|
|
337
|
+
"size": 4,
|
|
338
|
+
"elementStride": 0,
|
|
339
|
+
"encoding": "int"
|
|
340
|
+
},
|
|
341
|
+
"u_transformMapBase": {
|
|
342
|
+
"offset": 180,
|
|
343
|
+
"size": 4,
|
|
344
|
+
"elementStride": 0,
|
|
345
|
+
"encoding": "int"
|
|
346
|
+
},
|
|
347
|
+
"u_clipPlanes": {
|
|
348
|
+
"offset": 192,
|
|
297
349
|
"size": 96,
|
|
298
350
|
"elementStride": 16,
|
|
299
351
|
"encoding": "vec4[]"
|
|
300
352
|
},
|
|
301
353
|
"u_clipPlaneCount": {
|
|
302
|
-
"offset":
|
|
354
|
+
"offset": 288,
|
|
303
355
|
"size": 4,
|
|
304
356
|
"elementStride": 0,
|
|
305
357
|
"encoding": "int"
|
|
306
358
|
},
|
|
307
359
|
"u_componentOrder": {
|
|
308
|
-
"offset":
|
|
360
|
+
"offset": 304,
|
|
309
361
|
"size": 96,
|
|
310
362
|
"elementStride": 16,
|
|
311
363
|
"encoding": "int[]"
|
|
312
364
|
},
|
|
313
365
|
"u_derivedType": {
|
|
314
|
-
"offset":
|
|
366
|
+
"offset": 400,
|
|
315
367
|
"size": 4,
|
|
316
368
|
"elementStride": 0,
|
|
317
369
|
"encoding": "int"
|
|
318
370
|
},
|
|
319
371
|
"u_bandBounds": {
|
|
320
|
-
"offset":
|
|
372
|
+
"offset": 416,
|
|
321
373
|
"size": 1152,
|
|
322
374
|
"elementStride": 16,
|
|
323
375
|
"encoding": "vec2[]"
|
|
324
376
|
},
|
|
325
377
|
"u_numBands": {
|
|
326
|
-
"offset":
|
|
378
|
+
"offset": 1568,
|
|
327
379
|
"size": 4,
|
|
328
380
|
"elementStride": 0,
|
|
329
381
|
"encoding": "int"
|
|
330
382
|
},
|
|
331
383
|
"u_lowerColors": {
|
|
332
|
-
"offset":
|
|
384
|
+
"offset": 1584,
|
|
333
385
|
"size": 1152,
|
|
334
386
|
"elementStride": 16,
|
|
335
387
|
"encoding": "vec4[]"
|
|
336
388
|
},
|
|
337
389
|
"u_upperColors": {
|
|
338
|
-
"offset":
|
|
390
|
+
"offset": 2736,
|
|
339
391
|
"size": 1152,
|
|
340
392
|
"elementStride": 16,
|
|
341
393
|
"encoding": "vec4[]"
|
|
342
394
|
},
|
|
343
395
|
"u_interpModes": {
|
|
344
|
-
"offset":
|
|
396
|
+
"offset": 3888,
|
|
345
397
|
"size": 1152,
|
|
346
398
|
"elementStride": 16,
|
|
347
399
|
"encoding": "int[]"
|
|
348
400
|
},
|
|
349
401
|
"u_interpSteps": {
|
|
350
|
-
"offset":
|
|
402
|
+
"offset": 5040,
|
|
351
403
|
"size": 4,
|
|
352
404
|
"elementStride": 0,
|
|
353
405
|
"encoding": "int"
|
|
354
406
|
},
|
|
355
407
|
"u_nanColor": {
|
|
356
|
-
"offset":
|
|
408
|
+
"offset": 5056,
|
|
357
409
|
"size": 16,
|
|
358
410
|
"elementStride": 4,
|
|
359
411
|
"encoding": "vec4"
|
|
360
412
|
},
|
|
361
413
|
"u_uncoveredColor": {
|
|
362
|
-
"offset":
|
|
414
|
+
"offset": 5072,
|
|
363
415
|
"size": 16,
|
|
364
416
|
"elementStride": 4,
|
|
365
417
|
"encoding": "vec4"
|
|
366
418
|
},
|
|
367
419
|
"u_errorColor": {
|
|
368
|
-
"offset":
|
|
420
|
+
"offset": 5088,
|
|
369
421
|
"size": 16,
|
|
370
422
|
"elementStride": 4,
|
|
371
423
|
"encoding": "vec4"
|
|
372
424
|
},
|
|
425
|
+
"u_materialMapWidth": {
|
|
426
|
+
"offset": 5104,
|
|
427
|
+
"size": 4,
|
|
428
|
+
"elementStride": 0,
|
|
429
|
+
"encoding": "int"
|
|
430
|
+
},
|
|
431
|
+
"u_materialMapBase": {
|
|
432
|
+
"offset": 5108,
|
|
433
|
+
"size": 4,
|
|
434
|
+
"elementStride": 0,
|
|
435
|
+
"encoding": "int"
|
|
436
|
+
},
|
|
373
437
|
"u_viewPosition": {
|
|
374
|
-
"offset":
|
|
438
|
+
"offset": 5120,
|
|
375
439
|
"size": 12,
|
|
376
440
|
"elementStride": 4,
|
|
377
441
|
"encoding": "vec3"
|
|
378
442
|
},
|
|
379
443
|
"u_environmentSky": {
|
|
380
|
-
"offset":
|
|
444
|
+
"offset": 5136,
|
|
381
445
|
"size": 12,
|
|
382
446
|
"elementStride": 4,
|
|
383
447
|
"encoding": "vec3"
|
|
384
448
|
},
|
|
385
449
|
"u_environmentGround": {
|
|
386
|
-
"offset":
|
|
450
|
+
"offset": 5152,
|
|
387
451
|
"size": 12,
|
|
388
452
|
"elementStride": 4,
|
|
389
453
|
"encoding": "vec3"
|
|
390
454
|
},
|
|
391
455
|
"u_environmentUp": {
|
|
392
|
-
"offset":
|
|
456
|
+
"offset": 5168,
|
|
393
457
|
"size": 12,
|
|
394
458
|
"elementStride": 4,
|
|
395
459
|
"encoding": "vec3"
|
|
396
460
|
},
|
|
397
461
|
"u_lightPositions": {
|
|
398
|
-
"offset":
|
|
462
|
+
"offset": 5184,
|
|
399
463
|
"size": 64,
|
|
400
464
|
"elementStride": 16,
|
|
401
465
|
"encoding": "vec4[]"
|
|
402
466
|
},
|
|
403
467
|
"u_lightColors": {
|
|
404
|
-
"offset":
|
|
468
|
+
"offset": 5248,
|
|
405
469
|
"size": 64,
|
|
406
470
|
"elementStride": 16,
|
|
407
471
|
"encoding": "vec3[]"
|
|
408
472
|
},
|
|
409
473
|
"u_lightCount": {
|
|
410
|
-
"offset":
|
|
474
|
+
"offset": 5312,
|
|
411
475
|
"size": 4,
|
|
412
476
|
"elementStride": 0,
|
|
413
477
|
"encoding": "int"
|
|
414
478
|
},
|
|
415
479
|
"u_surfaceFinishScale": {
|
|
416
|
-
"offset":
|
|
480
|
+
"offset": 5316,
|
|
417
481
|
"size": 4,
|
|
418
482
|
"elementStride": 0,
|
|
419
483
|
"encoding": "float"
|
|
420
484
|
},
|
|
421
485
|
"u_surfaceFinishRoughness": {
|
|
422
|
-
"offset":
|
|
486
|
+
"offset": 5320,
|
|
423
487
|
"size": 4,
|
|
424
488
|
"elementStride": 0,
|
|
425
489
|
"encoding": "float"
|
|
426
490
|
},
|
|
427
491
|
"u_surfaceFinishColor": {
|
|
428
|
-
"offset":
|
|
492
|
+
"offset": 5324,
|
|
429
493
|
"size": 4,
|
|
430
494
|
"elementStride": 0,
|
|
431
495
|
"encoding": "float"
|
|
432
496
|
},
|
|
433
497
|
"u_colorSource": {
|
|
434
|
-
"offset":
|
|
498
|
+
"offset": 5328,
|
|
435
499
|
"size": 4,
|
|
436
500
|
"elementStride": 0,
|
|
437
501
|
"encoding": "int"
|
|
438
502
|
},
|
|
439
503
|
"u_opacity": {
|
|
440
|
-
"offset":
|
|
504
|
+
"offset": 5332,
|
|
441
505
|
"size": 4,
|
|
442
506
|
"elementStride": 0,
|
|
443
507
|
"encoding": "float"
|
|
@@ -453,6 +517,15 @@
|
|
|
453
517
|
"stage": "vertex",
|
|
454
518
|
"unit": 0
|
|
455
519
|
},
|
|
520
|
+
{
|
|
521
|
+
"semantic": "material-map",
|
|
522
|
+
"texture": "u_materialMap",
|
|
523
|
+
"sampler": null,
|
|
524
|
+
"uniform": "SPIRV_Cross_Combinedu_materialMapSPIRV_Cross_DummySampler",
|
|
525
|
+
"component": "uint",
|
|
526
|
+
"stage": "vertex",
|
|
527
|
+
"unit": 1
|
|
528
|
+
},
|
|
456
529
|
{
|
|
457
530
|
"semantic": "transform",
|
|
458
531
|
"texture": "u_transformLut",
|
|
@@ -460,7 +533,16 @@
|
|
|
460
533
|
"uniform": "SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler",
|
|
461
534
|
"component": "uint",
|
|
462
535
|
"stage": "vertex",
|
|
463
|
-
"unit":
|
|
536
|
+
"unit": 2
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
"semantic": "transform-map",
|
|
540
|
+
"texture": "u_transformMap",
|
|
541
|
+
"sampler": null,
|
|
542
|
+
"uniform": "SPIRV_Cross_Combinedu_transformMapSPIRV_Cross_DummySampler",
|
|
543
|
+
"component": "uint",
|
|
544
|
+
"stage": "vertex",
|
|
545
|
+
"unit": 3
|
|
464
546
|
},
|
|
465
547
|
{
|
|
466
548
|
"semantic": "material",
|
|
@@ -469,17 +551,17 @@
|
|
|
469
551
|
"uniform": "SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler",
|
|
470
552
|
"component": "float",
|
|
471
553
|
"stage": "fragment",
|
|
472
|
-
"unit":
|
|
554
|
+
"unit": 4
|
|
473
555
|
}
|
|
474
556
|
],
|
|
475
557
|
"stages": {
|
|
476
558
|
"vertex": {
|
|
477
|
-
"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_int6\n{\n int data[6];\n};\n\nstruct _Array_std140_vector_float_2_72\n{\n vec2 data[72];\n};\n\nstruct _Array_std140_vector_float_4_72\n{\n vec4 data[72];\n};\n\nstruct _Array_std140_int72\n{\n int 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_int6 u_componentOrder;\n int u_derivedType;\n _Array_std140_vector_float_2_72 u_bandBounds;\n int u_numBands;\n _Array_std140_vector_float_4_72 u_lowerColors;\n _Array_std140_vector_float_4_72 u_upperColors;\n _Array_std140_int72 u_interpModes;\n int u_interpSteps;\n vec4 u_nanColor;\n vec4 u_uncoveredColor;\n vec4 u_errorColor;\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 = 2) in int
|
|
478
|
-
"sha256": "
|
|
559
|
+
"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_int6\n{\n int data[6];\n};\n\nstruct _Array_std140_vector_float_2_72\n{\n vec2 data[72];\n};\n\nstruct _Array_std140_vector_float_4_72\n{\n vec4 data[72];\n};\n\nstruct _Array_std140_int72\n{\n int 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_int6 u_componentOrder;\n int u_derivedType;\n _Array_std140_vector_float_2_72 u_bandBounds;\n int u_numBands;\n _Array_std140_vector_float_4_72 u_lowerColors;\n _Array_std140_vector_float_4_72 u_upperColors;\n _Array_std140_int72 u_interpModes;\n int u_interpSteps;\n vec4 u_nanColor;\n vec4 u_uncoveredColor;\n vec4 u_errorColor;\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 = 2) in int a_atomId;\nout vec3 v0;\nout vec3 v1;\nout vec3 v2;\nout vec3 v3;\nflat out int v4;\nout vec3 v5;\nout vec3 v6;\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 vec3 a_result0;\nlayout(location = 5) in vec3 a_result1;\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 v5 = vec3(0.0);\n v6 = vec3(0.0);\n break;\n }\n vec3 _490 = a_position + (globalParams.u_deformScale * a_deformation);\n int _595 = globalParams.u_transformMapBase + a_atomId;\n int _603 = int(texelFetch(SPIRV_Cross_Combinedu_transformMapSPIRV_Cross_DummySampler, ivec2(_595 - globalParams.u_transformMapWidth * (_595 / globalParams.u_transformMapWidth), _595 / globalParams.u_transformMapWidth), 0).x);\n int _607 = (globalParams.u_transformLutBase + _603) * globalParams.u_transformLutStride;\n vec3 _491;\n vec3 _492;\n if (texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_607 - globalParams.u_transformLutWidth * (_607 / globalParams.u_transformLutWidth), _607 / globalParams.u_transformLutWidth), 0).x != 0u)\n {\n int _623 = ((globalParams.u_transformLutBase + _603) * globalParams.u_transformLutStride) + 1;\n int _635 = ((globalParams.u_transformLutBase + _603) * globalParams.u_transformLutStride) + 2;\n int _647 = ((globalParams.u_transformLutBase + _603) * globalParams.u_transformLutStride) + 3;\n int _665 = ((globalParams.u_transformLutBase + _603) * globalParams.u_transformLutStride) + 4;\n int _677 = ((globalParams.u_transformLutBase + _603) * globalParams.u_transformLutStride) + 5;\n int _689 = ((globalParams.u_transformLutBase + _603) * globalParams.u_transformLutStride) + 6;\n int _701 = ((globalParams.u_transformLutBase + _603) * globalParams.u_transformLutStride) + 7;\n vec4 _715 = vec4(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_665 - globalParams.u_transformLutWidth * (_665 / globalParams.u_transformLutWidth), _665 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_677 - globalParams.u_transformLutWidth * (_677 / globalParams.u_transformLutWidth), _677 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_689 - globalParams.u_transformLutWidth * (_689 / globalParams.u_transformLutWidth), _689 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_701 - globalParams.u_transformLutWidth * (_701 / globalParams.u_transformLutWidth), _701 / globalParams.u_transformLutWidth), 0).x));\n int _720 = ((globalParams.u_transformLutBase + _603) * globalParams.u_transformLutStride) + 8;\n int _732 = ((globalParams.u_transformLutBase + _603) * globalParams.u_transformLutStride) + 9;\n int _744 = ((globalParams.u_transformLutBase + _603) * globalParams.u_transformLutStride) + 10;\n vec3 _757 = vec3(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_720 - globalParams.u_transformLutWidth * (_720 / globalParams.u_transformLutWidth), _720 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_732 - globalParams.u_transformLutWidth * (_732 / globalParams.u_transformLutWidth), _732 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_744 - globalParams.u_transformLutWidth * (_744 / globalParams.u_transformLutWidth), _744 / globalParams.u_transformLutWidth), 0).x));\n vec3 _760 = _757 * _490;\n vec3 _765 = _715.xyz;\n vec3 _767 = cross(_765, _760) * 2.0;\n vec3 _775 = a_normal / _757;\n vec3 _780 = _715.xyz;\n vec3 _782 = cross(_780, _775) * 2.0;\n _491 = ((_760 + (_767 * _715.w)) + cross(_765, _767)) + vec3(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_623 - globalParams.u_transformLutWidth * (_623 / globalParams.u_transformLutWidth), _623 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_635 - globalParams.u_transformLutWidth * (_635 / globalParams.u_transformLutWidth), _635 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_647 - globalParams.u_transformLutWidth * (_647 / globalParams.u_transformLutWidth), _647 / globalParams.u_transformLutWidth), 0).x));\n _492 = normalize((_775 + (_782 * _715.w)) + cross(_780, _782));\n }\n else\n {\n _491 = _490;\n _492 = a_normal;\n }\n vec4 _570 = vec4(_491, 1.0);\n int _790 = globalParams.u_materialMapBase + a_atomId;\n gl_Position = _570 * spvWorkaroundRowMajor(globalParams.u_mvpMatrix);\n v0 = _491;\n v1 = (_570 * spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)).xyz;\n v2 = _492 * 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(_790 - globalParams.u_materialMapWidth * (_790 / globalParams.u_materialMapWidth), _790 / globalParams.u_materialMapWidth), 0).x);\n v5 = a_result0;\n v6 = a_result1;\n break;\n } while(false);\n}\n\n",
|
|
560
|
+
"sha256": "e022895c2fa68b650ce260261529351795255c2677bb18ebaa1fb5453e08080d"
|
|
479
561
|
},
|
|
480
562
|
"fragment": {
|
|
481
|
-
"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_int6\n{\n int data[6];\n};\n\nstruct _Array_std140_vector_float_2_72\n{\n highp vec2 data[72];\n};\n\nstruct _Array_std140_vector_float_4_72\n{\n highp vec4 data[72];\n};\n\nstruct _Array_std140_int72\n{\n int 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_int6 u_componentOrder;\n int u_derivedType;\n _Array_std140_vector_float_2_72 u_bandBounds;\n int u_numBands;\n _Array_std140_vector_float_4_72 u_lowerColors;\n _Array_std140_vector_float_4_72 u_upperColors;\n _Array_std140_int72 u_interpModes;\n int u_interpSteps;\n highp vec4 u_nanColor;\n highp vec4 u_uncoveredColor;\n highp vec4 u_errorColor;\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;\nin highp vec3 v5;\nin highp vec3 v6;\nlayout(location = 0) out highp vec4 entryPointParam_fragmentMain;\nin highp vec3 v2;\nin highp vec3 v1;\n\nvoid main()\n{\n bool _1583 = false;\n bool _1502 = false;\n bool _1157 = false;\n do\n {\n _1157 = false;\n bool _1158;\n do\n {\n int _1159 = 0;\n for (;;)\n {\n if (!(_1159 < 6))\n {\n break;\n }\n if (_1159 >= globalParams.u_clipPlaneCount)\n {\n break;\n }\n if ((dot(globalParams.u_clipPlanes.data[_1159].xyz, v0) + globalParams.u_clipPlanes.data[_1159].w) < 0.0)\n {\n _1157 = true;\n _1158 = false;\n break;\n }\n _1159++;\n continue;\n }\n if (_1157)\n {\n break;\n }\n _1157 = true;\n _1158 = true;\n break;\n } while(false);\n if (!_1158)\n {\n discard;\n }\n highp vec4 _1205 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 0), 0);\n highp vec4 _1209 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 1), 0);\n highp vec4 _1213 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 2), 0);\n highp vec3 _1216 = _1205.xyz;\n highp float _1218 = _1205.w;\n highp vec3 _1220 = _1209.xyz;\n highp float _1222 = _1209.w;\n highp float _1224 = _1213.x;\n highp vec3 _2075 = _1216;\n highp float _2076 = _1218;\n highp float _2077 = _1222;\n highp float _2078 = _1224;\n highp vec3 _2079 = _1220;\n highp vec3 _2103 = _1216;\n highp float _2104 = _1218;\n highp float _2105 = _1222;\n highp float _2106 = _1224;\n highp vec3 _2107 = _1220;\n highp float _2125 = globalParams.u_surfaceFinishScale;\n highp float _2126 = globalParams.u_surfaceFinishRoughness;\n highp float _2127 = globalParams.u_surfaceFinishColor;\n highp vec3 _1995;\n highp float _1996;\n highp float _1997;\n highp float _1998;\n highp vec3 _1999;\n do\n {\n if (_2125 <= 0.0)\n {\n _1995 = _2103;\n _1996 = _2104;\n _1997 = _2105;\n _1998 = _2106;\n _1999 = _2107;\n break;\n }\n highp vec3 _1239 = v3 / vec3(_2125);\n highp vec3 _1266 = floor(_1239);\n highp vec3 _1267 = _1239 - _1266;\n highp vec3 _1272 = (_1267 * _1267) * (vec3(3.0) - (_1267 * 2.0));\n ivec3 _1273 = ivec3(_1266);\n uint _1312 = (((uint(_1273.x) * 2376512323u) + (uint(_1273.y) * 3625334849u)) + (uint(_1273.z) * 3407524639u)) + 2654435769u;\n uint _1315 = (_1312 ^ (_1312 >> uint(15))) * 739982445u;\n uint _1318 = (_1315 ^ (_1315 >> uint(12))) * 695872825u;\n ivec3 _1275 = _1273 + ivec3(1, 0, 0);\n uint _1337 = (((uint(_1275.x) * 2376512323u) + (uint(_1275.y) * 3625334849u)) + (uint(_1275.z) * 3407524639u)) + 2654435769u;\n uint _1340 = (_1337 ^ (_1337 >> uint(15))) * 739982445u;\n uint _1343 = (_1340 ^ (_1340 >> uint(12))) * 695872825u;\n ivec3 _1277 = _1273 + ivec3(0, 1, 0);\n uint _1362 = (((uint(_1277.x) * 2376512323u) + (uint(_1277.y) * 3625334849u)) + (uint(_1277.z) * 3407524639u)) + 2654435769u;\n uint _1365 = (_1362 ^ (_1362 >> uint(15))) * 739982445u;\n uint _1368 = (_1365 ^ (_1365 >> uint(12))) * 695872825u;\n ivec3 _1279 = _1273 + ivec3(1, 1, 0);\n uint _1387 = (((uint(_1279.x) * 2376512323u) + (uint(_1279.y) * 3625334849u)) + (uint(_1279.z) * 3407524639u)) + 2654435769u;\n uint _1390 = (_1387 ^ (_1387 >> uint(15))) * 739982445u;\n uint _1393 = (_1390 ^ (_1390 >> uint(12))) * 695872825u;\n ivec3 _1281 = _1273 + ivec3(0, 0, 1);\n uint _1412 = (((uint(_1281.x) * 2376512323u) + (uint(_1281.y) * 3625334849u)) + (uint(_1281.z) * 3407524639u)) + 2654435769u;\n uint _1415 = (_1412 ^ (_1412 >> uint(15))) * 739982445u;\n uint _1418 = (_1415 ^ (_1415 >> uint(12))) * 695872825u;\n ivec3 _1283 = _1273 + ivec3(1, 0, 1);\n uint _1437 = (((uint(_1283.x) * 2376512323u) + (uint(_1283.y) * 3625334849u)) + (uint(_1283.z) * 3407524639u)) + 2654435769u;\n uint _1440 = (_1437 ^ (_1437 >> uint(15))) * 739982445u;\n uint _1443 = (_1440 ^ (_1440 >> uint(12))) * 695872825u;\n ivec3 _1285 = _1273 + ivec3(0, 1, 1);\n uint _1462 = (((uint(_1285.x) * 2376512323u) + (uint(_1285.y) * 3625334849u)) + (uint(_1285.z) * 3407524639u)) + 2654435769u;\n uint _1465 = (_1462 ^ (_1462 >> uint(15))) * 739982445u;\n uint _1468 = (_1465 ^ (_1465 >> uint(12))) * 695872825u;\n ivec3 _1287 = _1273 + ivec3(1);\n uint _1487 = (((uint(_1287.x) * 2376512323u) + (uint(_1287.y) * 3625334849u)) + (uint(_1287.z) * 3407524639u)) + 2654435769u;\n uint _1490 = (_1487 ^ (_1487 >> uint(15))) * 739982445u;\n uint _1493 = (_1490 ^ (_1490 >> uint(12))) * 695872825u;\n highp float _1289 = _1272.x;\n highp float _1294 = _1272.y;\n highp float _1242 = (mix(mix(mix(float((_1318 ^ (_1318 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1343 ^ (_1343 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1289), mix(float((_1368 ^ (_1368 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1393 ^ (_1393 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1289), _1294), mix(mix(float((_1418 ^ (_1418 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1443 ^ (_1443 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1289), mix(float((_1468 ^ (_1468 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1493 ^ (_1493 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1289), _1294), _1272.z) * 2.0) - 1.0;\n _1995 = clamp(_2103 * (1.0 + (_1242 * _2127)), vec3(0.0), vec3(1.0));\n _1996 = _2104;\n _1997 = clamp(_2105 + (_1242 * _2126), 0.0, 1.0);\n _1998 = _2106;\n _1999 = _2107;\n break;\n } while(false);\n _2075 = _1995;\n _2076 = _1996;\n _2077 = _1997;\n _2078 = _1998;\n _2079 = _1999;\n _1502 = false;\n highp float _1503;\n do\n {\n highp float _1504[6] = float[](v5.x, v5.y, v5.z, v6.x, v6.y, v6.z);\n int _1506 = 0;\n highp float _1505[6];\n for (;;)\n {\n if (!(_1506 < 6))\n {\n break;\n }\n _1505[_1506] = _1504[globalParams.u_componentOrder.data[_1506]];\n _1506++;\n continue;\n }\n switch (globalParams.u_derivedType)\n {\n case 0:\n {\n _1502 = true;\n _1503 = _1505[0];\n break;\n }\n case 1:\n {\n _1502 = true;\n _1503 = _1505[1];\n break;\n }\n case 2:\n {\n _1502 = true;\n _1503 = _1505[2];\n break;\n }\n case 3:\n {\n _1502 = true;\n _1503 = _1505[3];\n break;\n }\n case 4:\n {\n _1502 = true;\n _1503 = _1505[4];\n break;\n }\n case 5:\n {\n _1502 = true;\n _1503 = _1505[5];\n break;\n }\n case 6:\n {\n _1502 = true;\n _1503 = length(vec3(_1505[0], _1505[1], _1505[2]));\n break;\n }\n case 7:\n {\n _1502 = true;\n _1503 = length(vec3(_1505[3], _1505[4], _1505[5]));\n break;\n }\n default:\n {\n _1502 = true;\n _1503 = uintBitsToFloat(0x7fc00000u /* nan */);\n break;\n }\n }\n if (_1502)\n {\n break;\n }\n break;\n } while(false);\n _1583 = false;\n highp vec4 _1584;\n do\n {\n if (_1503 != _1503)\n {\n _1583 = true;\n _1584 = globalParams.u_nanColor;\n break;\n }\n int _1585 = 0;\n bool _1586;\n highp vec4 _1644;\n bool _1645;\n highp float _1667;\n bool _1668;\n for (;;)\n {\n if (!(_1585 < globalParams.u_numBands))\n {\n break;\n }\n if (_1503 >= globalParams.u_bandBounds.data[_1585].x)\n {\n _1586 = _1503 < globalParams.u_bandBounds.data[_1585].y;\n }\n else\n {\n _1586 = false;\n }\n if (_1586)\n {\n do\n {\n if (all(equal(globalParams.u_lowerColors.data[_1585], globalParams.u_upperColors.data[_1585])))\n {\n _1644 = globalParams.u_lowerColors.data[_1585];\n break;\n }\n if (globalParams.u_interpModes.data[_1585] == 1)\n {\n _1645 = globalParams.u_bandBounds.data[_1585].x <= 0.0;\n }\n else\n {\n _1645 = false;\n }\n if (_1645)\n {\n _1644 = globalParams.u_errorColor;\n break;\n }\n if (globalParams.u_interpModes.data[_1585] == 1)\n {\n if (0.0 < globalParams.u_bandBounds.data[_1585].x)\n {\n _1668 = globalParams.u_bandBounds.data[_1585].x < globalParams.u_bandBounds.data[_1585].y;\n }\n else\n {\n _1668 = false;\n }\n if (_1668)\n {\n _1668 = _1503 > 0.0;\n }\n else\n {\n _1668 = false;\n }\n if (_1668)\n {\n _1667 = log(_1503 / globalParams.u_bandBounds.data[_1585].x) / log(globalParams.u_bandBounds.data[_1585].y / globalParams.u_bandBounds.data[_1585].x);\n }\n else\n {\n _1667 = 0.0;\n }\n }\n else\n {\n highp float _1675 = globalParams.u_bandBounds.data[_1585].y - globalParams.u_bandBounds.data[_1585].x;\n if (_1675 > 0.0)\n {\n _1667 = (_1503 - globalParams.u_bandBounds.data[_1585].x) / _1675;\n }\n else\n {\n _1667 = 0.0;\n }\n }\n if (_1667 != _1667)\n {\n _1667 = 0.0;\n }\n highp float _1709 = _1667;\n highp float _1710 = clamp(_1709, 0.0, 1.0);\n if (globalParams.u_interpSteps > 1)\n {\n highp float _1714 = float(globalParams.u_interpSteps);\n highp float _1717 = _1714 - 1.0;\n _1667 = min(floor(_1710 * _1714), _1717) / _1717;\n }\n else\n {\n _1667 = _1710;\n }\n _1644 = mix(globalParams.u_lowerColors.data[_1585], globalParams.u_upperColors.data[_1585], vec4(_1667));\n break;\n } while(false);\n _1583 = true;\n _1584 = _1644;\n break;\n }\n _1585++;\n continue;\n }\n if (_1583)\n {\n break;\n }\n _1583 = true;\n _1584 = globalParams.u_uncoveredColor;\n break;\n } while(false);\n if (globalParams.u_colorSource == 1)\n {\n entryPointParam_fragmentMain = vec4(_1584.xyz, _1584.w * globalParams.u_opacity);\n break;\n }\n if (globalParams.u_colorSource == 2)\n {\n _2075 = mix(_1584.xyz * vec3(0.077399380505084991455078125), pow((_1584.xyz + vec3(0.054999999701976776123046875)) * vec3(0.947867333889007568359375), vec3(2.400000095367431640625)), step(vec3(0.040449999272823333740234375), _1584.xyz));\n }\n if (globalParams.u_colorSource == 3)\n {\n entryPointParam_fragmentMain = vec4(_2075, globalParams.u_opacity);\n break;\n }\n highp vec3 _741 = normalize(v2);\n highp vec3 _1736 = normalize(globalParams.u_viewPosition - v1);\n highp vec3 _2138 = _2075;\n highp float _2139 = _2076;\n highp float _2140 = _2077;\n highp float _2141 = _2078;\n highp vec3 _2142 = _2079;\n highp vec3 _2148 = globalParams.u_environmentSky;\n highp vec3 _2149 = globalParams.u_environmentGround;\n highp vec3 _2150 = globalParams.u_environmentUp;\n int _1737 = 0;\n highp vec3 _1738 = vec3(0.0);\n highp vec3 _1779;\n highp vec3 _1780;\n highp vec3 _1781;\n highp float _1782;\n for (;;)\n {\n if (!(_1737 < 4))\n {\n break;\n }\n if (_1737 < globalParams.u_lightCount)\n {\n do\n {\n bool _1787 = globalParams.u_lightPositions.data[_1737].w == 0.0;\n if (_1787)\n {\n _1780 = globalParams.u_lightPositions.data[_1737].xyz;\n }\n else\n {\n _1780 = globalParams.u_lightPositions.data[_1737].xyz - v1;\n }\n highp float _1796 = dot(_1780, _1780);\n if (_1787)\n {\n _1781 = normalize(globalParams.u_lightPositions.data[_1737].xyz);\n }\n else\n {\n _1781 = _1780 * inversesqrt(_1796);\n }\n if (_1787)\n {\n _1782 = 1.0;\n }\n else\n {\n _1782 = 1.0 / _1796;\n }\n highp float _1812 = dot(_741, _1781);\n if (_1812 <= 0.0)\n {\n _1779 = vec3(0.0);\n break;\n }\n highp vec3 _1817 = _1736 + _1781;\n highp float _1818 = dot(_1817, _1817);\n if (_1818 <= 9.9999999600419720025001879548654e-13)\n {\n _1779 = vec3(0.0);\n break;\n }\n highp vec3 _1823 = _1817 * inversesqrt(_1818);\n highp float _1825 = max(dot(_741, _1736), 0.0);\n highp float _1827 = max(dot(_741, _1823), 0.0);\n highp float _1832 = max(_2140, 0.039999999105930328369140625);\n highp vec3 _1864 = mix(vec3(0.039999999105930328369140625), _2138, vec3(_2139));\n highp float _1867 = _1832 * _1832;\n highp float _1868 = _1867 * _1867;\n highp float _1872 = ((_1827 * _1827) * (_1868 - 1.0)) + 1.0;\n highp float _1883 = _1832 + 1.0;\n highp float _1885 = (_1883 * _1883) * 0.125;\n highp float _1892 = _1832 + 1.0;\n highp float _1894 = (_1892 * _1892) * 0.125;\n highp vec3 _1907 = _1864 + ((vec3(1.0) - _1864) * pow(clamp(1.0 - max(dot(_1823, _1736), 0.0), 0.0, 1.0), 5.0));\n _1779 = ((((clamp((vec3(1.0) - _1907) * (1.0 - _2139), vec3(0.0), vec3(1.0)) * _2138) * vec3(0.3183098733425140380859375)) + ((_1907 * ((_1868 / ((3.1415927410125732421875 * _1872) * _1872)) * ((_1825 / ((_1825 * (1.0 - _1885)) + _1885)) * (_1812 / ((_1812 * (1.0 - _1894)) + _1894))))) / vec3(((4.0 * _1825) * _1812) + 9.9999997473787516355514526367188e-05))) * (globalParams.u_lightColors.data[_1737] * _1782)) * _1812;\n break;\n } while(false);\n _1738 += _1779;\n }\n _1737++;\n continue;\n }\n highp vec3 _1943 = mix(vec3(0.039999999105930328369140625), _2138, vec3(_2139));\n highp vec3 _1954 = _1943 + ((max(vec3(1.0 - max(_2140, 0.039999999105930328369140625)), _1943) - _1943) * pow(clamp(1.0 - max(dot(_741, _1736), 0.0), 0.0, 1.0), 5.0));\n highp vec3 _1777 = (((((clamp((vec3(1.0) - _1954) * (1.0 - _2139), vec3(0.0), vec3(1.0)) * mix(_2149, _2148, vec3((dot(_741, _2150) * 0.5) + 0.5))) * _2138) + (mix(_2149, _2148, vec3((dot(reflect(-_1736, _741), _2150) * 0.5) + 0.5)) * _1954)) * _2141) + _1738) + _2142;\n entryPointParam_fragmentMain = vec4(pow(_1777 / (_1777 + vec3(1.0)), vec3(0.454545438289642333984375)), globalParams.u_opacity);\n break;\n } while(false);\n}\n\n",
|
|
482
|
-
"sha256": "
|
|
563
|
+
"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_int6\n{\n int data[6];\n};\n\nstruct _Array_std140_vector_float_2_72\n{\n highp vec2 data[72];\n};\n\nstruct _Array_std140_vector_float_4_72\n{\n highp vec4 data[72];\n};\n\nstruct _Array_std140_int72\n{\n int 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_int6 u_componentOrder;\n int u_derivedType;\n _Array_std140_vector_float_2_72 u_bandBounds;\n int u_numBands;\n _Array_std140_vector_float_4_72 u_lowerColors;\n _Array_std140_vector_float_4_72 u_upperColors;\n _Array_std140_int72 u_interpModes;\n int u_interpSteps;\n highp vec4 u_nanColor;\n highp vec4 u_uncoveredColor;\n highp vec4 u_errorColor;\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;\nin highp vec3 v5;\nin highp vec3 v6;\nlayout(location = 0) out highp vec4 entryPointParam_fragmentMain;\nin highp vec3 v2;\nin highp vec3 v1;\n\nvoid main()\n{\n bool _1583 = false;\n bool _1502 = false;\n bool _1157 = false;\n do\n {\n _1157 = false;\n bool _1158;\n do\n {\n int _1159 = 0;\n for (;;)\n {\n if (!(_1159 < 6))\n {\n break;\n }\n if (_1159 >= globalParams.u_clipPlaneCount)\n {\n break;\n }\n if ((dot(globalParams.u_clipPlanes.data[_1159].xyz, v0) + globalParams.u_clipPlanes.data[_1159].w) < 0.0)\n {\n _1157 = true;\n _1158 = false;\n break;\n }\n _1159++;\n continue;\n }\n if (_1157)\n {\n break;\n }\n _1157 = true;\n _1158 = true;\n break;\n } while(false);\n if (!_1158)\n {\n discard;\n }\n highp vec4 _1205 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 0), 0);\n highp vec4 _1209 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 1), 0);\n highp vec4 _1213 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 2), 0);\n highp vec3 _1216 = _1205.xyz;\n highp float _1218 = _1205.w;\n highp vec3 _1220 = _1209.xyz;\n highp float _1222 = _1209.w;\n highp float _1224 = _1213.x;\n highp vec3 _2075 = _1216;\n highp float _2076 = _1218;\n highp float _2077 = _1222;\n highp float _2078 = _1224;\n highp vec3 _2079 = _1220;\n highp vec3 _2103 = _1216;\n highp float _2104 = _1218;\n highp float _2105 = _1222;\n highp float _2106 = _1224;\n highp vec3 _2107 = _1220;\n highp float _2125 = globalParams.u_surfaceFinishScale;\n highp float _2126 = globalParams.u_surfaceFinishRoughness;\n highp float _2127 = globalParams.u_surfaceFinishColor;\n highp vec3 _1995;\n highp float _1996;\n highp float _1997;\n highp float _1998;\n highp vec3 _1999;\n do\n {\n if (_2125 <= 0.0)\n {\n _1995 = _2103;\n _1996 = _2104;\n _1997 = _2105;\n _1998 = _2106;\n _1999 = _2107;\n break;\n }\n highp vec3 _1239 = v3 / vec3(_2125);\n highp vec3 _1266 = floor(_1239);\n highp vec3 _1267 = _1239 - _1266;\n highp vec3 _1272 = (_1267 * _1267) * (vec3(3.0) - (_1267 * 2.0));\n ivec3 _1273 = ivec3(_1266);\n uint _1312 = (((uint(_1273.x) * 2376512323u) + (uint(_1273.y) * 3625334849u)) + (uint(_1273.z) * 3407524639u)) + 2654435769u;\n uint _1315 = (_1312 ^ (_1312 >> uint(15))) * 739982445u;\n uint _1318 = (_1315 ^ (_1315 >> uint(12))) * 695872825u;\n ivec3 _1275 = _1273 + ivec3(1, 0, 0);\n uint _1337 = (((uint(_1275.x) * 2376512323u) + (uint(_1275.y) * 3625334849u)) + (uint(_1275.z) * 3407524639u)) + 2654435769u;\n uint _1340 = (_1337 ^ (_1337 >> uint(15))) * 739982445u;\n uint _1343 = (_1340 ^ (_1340 >> uint(12))) * 695872825u;\n ivec3 _1277 = _1273 + ivec3(0, 1, 0);\n uint _1362 = (((uint(_1277.x) * 2376512323u) + (uint(_1277.y) * 3625334849u)) + (uint(_1277.z) * 3407524639u)) + 2654435769u;\n uint _1365 = (_1362 ^ (_1362 >> uint(15))) * 739982445u;\n uint _1368 = (_1365 ^ (_1365 >> uint(12))) * 695872825u;\n ivec3 _1279 = _1273 + ivec3(1, 1, 0);\n uint _1387 = (((uint(_1279.x) * 2376512323u) + (uint(_1279.y) * 3625334849u)) + (uint(_1279.z) * 3407524639u)) + 2654435769u;\n uint _1390 = (_1387 ^ (_1387 >> uint(15))) * 739982445u;\n uint _1393 = (_1390 ^ (_1390 >> uint(12))) * 695872825u;\n ivec3 _1281 = _1273 + ivec3(0, 0, 1);\n uint _1412 = (((uint(_1281.x) * 2376512323u) + (uint(_1281.y) * 3625334849u)) + (uint(_1281.z) * 3407524639u)) + 2654435769u;\n uint _1415 = (_1412 ^ (_1412 >> uint(15))) * 739982445u;\n uint _1418 = (_1415 ^ (_1415 >> uint(12))) * 695872825u;\n ivec3 _1283 = _1273 + ivec3(1, 0, 1);\n uint _1437 = (((uint(_1283.x) * 2376512323u) + (uint(_1283.y) * 3625334849u)) + (uint(_1283.z) * 3407524639u)) + 2654435769u;\n uint _1440 = (_1437 ^ (_1437 >> uint(15))) * 739982445u;\n uint _1443 = (_1440 ^ (_1440 >> uint(12))) * 695872825u;\n ivec3 _1285 = _1273 + ivec3(0, 1, 1);\n uint _1462 = (((uint(_1285.x) * 2376512323u) + (uint(_1285.y) * 3625334849u)) + (uint(_1285.z) * 3407524639u)) + 2654435769u;\n uint _1465 = (_1462 ^ (_1462 >> uint(15))) * 739982445u;\n uint _1468 = (_1465 ^ (_1465 >> uint(12))) * 695872825u;\n ivec3 _1287 = _1273 + ivec3(1);\n uint _1487 = (((uint(_1287.x) * 2376512323u) + (uint(_1287.y) * 3625334849u)) + (uint(_1287.z) * 3407524639u)) + 2654435769u;\n uint _1490 = (_1487 ^ (_1487 >> uint(15))) * 739982445u;\n uint _1493 = (_1490 ^ (_1490 >> uint(12))) * 695872825u;\n highp float _1289 = _1272.x;\n highp float _1294 = _1272.y;\n highp float _1242 = (mix(mix(mix(float((_1318 ^ (_1318 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1343 ^ (_1343 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1289), mix(float((_1368 ^ (_1368 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1393 ^ (_1393 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1289), _1294), mix(mix(float((_1418 ^ (_1418 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1443 ^ (_1443 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1289), mix(float((_1468 ^ (_1468 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1493 ^ (_1493 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1289), _1294), _1272.z) * 2.0) - 1.0;\n _1995 = clamp(_2103 * (1.0 + (_1242 * _2127)), vec3(0.0), vec3(1.0));\n _1996 = _2104;\n _1997 = clamp(_2105 + (_1242 * _2126), 0.0, 1.0);\n _1998 = _2106;\n _1999 = _2107;\n break;\n } while(false);\n _2075 = _1995;\n _2076 = _1996;\n _2077 = _1997;\n _2078 = _1998;\n _2079 = _1999;\n _1502 = false;\n highp float _1503;\n do\n {\n highp float _1504[6] = float[](v5.x, v5.y, v5.z, v6.x, v6.y, v6.z);\n int _1506 = 0;\n highp float _1505[6];\n for (;;)\n {\n if (!(_1506 < 6))\n {\n break;\n }\n _1505[_1506] = _1504[globalParams.u_componentOrder.data[_1506]];\n _1506++;\n continue;\n }\n switch (globalParams.u_derivedType)\n {\n case 0:\n {\n _1502 = true;\n _1503 = _1505[0];\n break;\n }\n case 1:\n {\n _1502 = true;\n _1503 = _1505[1];\n break;\n }\n case 2:\n {\n _1502 = true;\n _1503 = _1505[2];\n break;\n }\n case 3:\n {\n _1502 = true;\n _1503 = _1505[3];\n break;\n }\n case 4:\n {\n _1502 = true;\n _1503 = _1505[4];\n break;\n }\n case 5:\n {\n _1502 = true;\n _1503 = _1505[5];\n break;\n }\n case 6:\n {\n _1502 = true;\n _1503 = length(vec3(_1505[0], _1505[1], _1505[2]));\n break;\n }\n case 7:\n {\n _1502 = true;\n _1503 = length(vec3(_1505[3], _1505[4], _1505[5]));\n break;\n }\n default:\n {\n _1502 = true;\n _1503 = uintBitsToFloat(0x7fc00000u /* nan */);\n break;\n }\n }\n if (_1502)\n {\n break;\n }\n break;\n } while(false);\n _1583 = false;\n highp vec4 _1584;\n do\n {\n if (_1503 != _1503)\n {\n _1583 = true;\n _1584 = globalParams.u_nanColor;\n break;\n }\n int _1585 = 0;\n bool _1586;\n highp vec4 _1644;\n bool _1645;\n highp float _1667;\n bool _1668;\n for (;;)\n {\n if (!(_1585 < globalParams.u_numBands))\n {\n break;\n }\n if (_1503 >= globalParams.u_bandBounds.data[_1585].x)\n {\n _1586 = _1503 < globalParams.u_bandBounds.data[_1585].y;\n }\n else\n {\n _1586 = false;\n }\n if (_1586)\n {\n do\n {\n if (all(equal(globalParams.u_lowerColors.data[_1585], globalParams.u_upperColors.data[_1585])))\n {\n _1644 = globalParams.u_lowerColors.data[_1585];\n break;\n }\n if (globalParams.u_interpModes.data[_1585] == 1)\n {\n _1645 = globalParams.u_bandBounds.data[_1585].x <= 0.0;\n }\n else\n {\n _1645 = false;\n }\n if (_1645)\n {\n _1644 = globalParams.u_errorColor;\n break;\n }\n if (globalParams.u_interpModes.data[_1585] == 1)\n {\n if (0.0 < globalParams.u_bandBounds.data[_1585].x)\n {\n _1668 = globalParams.u_bandBounds.data[_1585].x < globalParams.u_bandBounds.data[_1585].y;\n }\n else\n {\n _1668 = false;\n }\n if (_1668)\n {\n _1668 = _1503 > 0.0;\n }\n else\n {\n _1668 = false;\n }\n if (_1668)\n {\n _1667 = log(_1503 / globalParams.u_bandBounds.data[_1585].x) / log(globalParams.u_bandBounds.data[_1585].y / globalParams.u_bandBounds.data[_1585].x);\n }\n else\n {\n _1667 = 0.0;\n }\n }\n else\n {\n highp float _1675 = globalParams.u_bandBounds.data[_1585].y - globalParams.u_bandBounds.data[_1585].x;\n if (_1675 > 0.0)\n {\n _1667 = (_1503 - globalParams.u_bandBounds.data[_1585].x) / _1675;\n }\n else\n {\n _1667 = 0.0;\n }\n }\n if (_1667 != _1667)\n {\n _1667 = 0.0;\n }\n highp float _1709 = _1667;\n highp float _1710 = clamp(_1709, 0.0, 1.0);\n if (globalParams.u_interpSteps > 1)\n {\n highp float _1714 = float(globalParams.u_interpSteps);\n highp float _1717 = _1714 - 1.0;\n _1667 = min(floor(_1710 * _1714), _1717) / _1717;\n }\n else\n {\n _1667 = _1710;\n }\n _1644 = mix(globalParams.u_lowerColors.data[_1585], globalParams.u_upperColors.data[_1585], vec4(_1667));\n break;\n } while(false);\n _1583 = true;\n _1584 = _1644;\n break;\n }\n _1585++;\n continue;\n }\n if (_1583)\n {\n break;\n }\n _1583 = true;\n _1584 = globalParams.u_uncoveredColor;\n break;\n } while(false);\n if (globalParams.u_colorSource == 1)\n {\n entryPointParam_fragmentMain = vec4(_1584.xyz, _1584.w * globalParams.u_opacity);\n break;\n }\n if (globalParams.u_colorSource == 2)\n {\n _2075 = mix(_1584.xyz * vec3(0.077399380505084991455078125), pow((_1584.xyz + vec3(0.054999999701976776123046875)) * vec3(0.947867333889007568359375), vec3(2.400000095367431640625)), step(vec3(0.040449999272823333740234375), _1584.xyz));\n }\n if (globalParams.u_colorSource == 3)\n {\n entryPointParam_fragmentMain = vec4(_2075, globalParams.u_opacity);\n break;\n }\n highp vec3 _741 = normalize(v2);\n highp vec3 _1736 = normalize(globalParams.u_viewPosition - v1);\n highp vec3 _2138 = _2075;\n highp float _2139 = _2076;\n highp float _2140 = _2077;\n highp float _2141 = _2078;\n highp vec3 _2142 = _2079;\n highp vec3 _2148 = globalParams.u_environmentSky;\n highp vec3 _2149 = globalParams.u_environmentGround;\n highp vec3 _2150 = globalParams.u_environmentUp;\n int _1737 = 0;\n highp vec3 _1738 = vec3(0.0);\n highp vec3 _1779;\n highp vec3 _1780;\n highp vec3 _1781;\n highp float _1782;\n for (;;)\n {\n if (!(_1737 < 4))\n {\n break;\n }\n if (_1737 < globalParams.u_lightCount)\n {\n do\n {\n bool _1787 = globalParams.u_lightPositions.data[_1737].w == 0.0;\n if (_1787)\n {\n _1780 = globalParams.u_lightPositions.data[_1737].xyz;\n }\n else\n {\n _1780 = globalParams.u_lightPositions.data[_1737].xyz - v1;\n }\n highp float _1796 = dot(_1780, _1780);\n if (_1787)\n {\n _1781 = normalize(globalParams.u_lightPositions.data[_1737].xyz);\n }\n else\n {\n _1781 = _1780 * inversesqrt(_1796);\n }\n if (_1787)\n {\n _1782 = 1.0;\n }\n else\n {\n _1782 = 1.0 / _1796;\n }\n highp float _1812 = dot(_741, _1781);\n if (_1812 <= 0.0)\n {\n _1779 = vec3(0.0);\n break;\n }\n highp vec3 _1817 = _1736 + _1781;\n highp float _1818 = dot(_1817, _1817);\n if (_1818 <= 9.9999999600419720025001879548654e-13)\n {\n _1779 = vec3(0.0);\n break;\n }\n highp vec3 _1823 = _1817 * inversesqrt(_1818);\n highp float _1825 = max(dot(_741, _1736), 0.0);\n highp float _1827 = max(dot(_741, _1823), 0.0);\n highp float _1832 = max(_2140, 0.039999999105930328369140625);\n highp vec3 _1864 = mix(vec3(0.039999999105930328369140625), _2138, vec3(_2139));\n highp float _1867 = _1832 * _1832;\n highp float _1868 = _1867 * _1867;\n highp float _1872 = ((_1827 * _1827) * (_1868 - 1.0)) + 1.0;\n highp float _1883 = _1832 + 1.0;\n highp float _1885 = (_1883 * _1883) * 0.125;\n highp float _1892 = _1832 + 1.0;\n highp float _1894 = (_1892 * _1892) * 0.125;\n highp vec3 _1907 = _1864 + ((vec3(1.0) - _1864) * pow(clamp(1.0 - max(dot(_1823, _1736), 0.0), 0.0, 1.0), 5.0));\n _1779 = ((((clamp((vec3(1.0) - _1907) * (1.0 - _2139), vec3(0.0), vec3(1.0)) * _2138) * vec3(0.3183098733425140380859375)) + ((_1907 * ((_1868 / ((3.1415927410125732421875 * _1872) * _1872)) * ((_1825 / ((_1825 * (1.0 - _1885)) + _1885)) * (_1812 / ((_1812 * (1.0 - _1894)) + _1894))))) / vec3(((4.0 * _1825) * _1812) + 9.9999997473787516355514526367188e-05))) * (globalParams.u_lightColors.data[_1737] * _1782)) * _1812;\n break;\n } while(false);\n _1738 += _1779;\n }\n _1737++;\n continue;\n }\n highp vec3 _1943 = mix(vec3(0.039999999105930328369140625), _2138, vec3(_2139));\n highp vec3 _1954 = _1943 + ((max(vec3(1.0 - max(_2140, 0.039999999105930328369140625)), _1943) - _1943) * pow(clamp(1.0 - max(dot(_741, _1736), 0.0), 0.0, 1.0), 5.0));\n highp vec3 _1777 = (((((clamp((vec3(1.0) - _1954) * (1.0 - _2139), vec3(0.0), vec3(1.0)) * mix(_2149, _2148, vec3((dot(_741, _2150) * 0.5) + 0.5))) * _2138) + (mix(_2149, _2148, vec3((dot(reflect(-_1736, _741), _2150) * 0.5) + 0.5)) * _1954)) * _2141) + _1738) + _2142;\n entryPointParam_fragmentMain = vec4(pow(_1777 / (_1777 + vec3(1.0)), vec3(0.454545438289642333984375)), globalParams.u_opacity);\n break;\n } while(false);\n}\n\n",
|
|
564
|
+
"sha256": "c67aa186f40fc6e9e3f2b73c14dc131efdecb4b80e30816d00910be8b05f1288"
|
|
483
565
|
}
|
|
484
566
|
}
|
|
485
567
|
}
|