@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",
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"mask-lut-r8ui",
|
|
22
22
|
"transform",
|
|
23
23
|
"transform-lut-r32ui",
|
|
24
|
+
"transform-map-r16ui",
|
|
24
25
|
"clip"
|
|
25
26
|
],
|
|
26
27
|
"inputs": [
|
|
@@ -35,14 +36,9 @@
|
|
|
35
36
|
"semantic": "deformation"
|
|
36
37
|
},
|
|
37
38
|
{
|
|
38
|
-
"name": "
|
|
39
|
+
"name": "a_atomId",
|
|
39
40
|
"type": "int",
|
|
40
|
-
"semantic": "
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "a_componentId",
|
|
44
|
-
"type": "int",
|
|
45
|
-
"semantic": "component-id"
|
|
41
|
+
"semantic": "atom-id"
|
|
46
42
|
},
|
|
47
43
|
{
|
|
48
44
|
"name": "a_normal",
|
|
@@ -77,6 +73,10 @@
|
|
|
77
73
|
"name": "u_maskLutWidth",
|
|
78
74
|
"type": "int"
|
|
79
75
|
},
|
|
76
|
+
{
|
|
77
|
+
"name": "u_maskLutBase",
|
|
78
|
+
"type": "int"
|
|
79
|
+
},
|
|
80
80
|
{
|
|
81
81
|
"name": "u_transformLutWidth",
|
|
82
82
|
"type": "int"
|
|
@@ -85,6 +85,18 @@
|
|
|
85
85
|
"name": "u_transformLutStride",
|
|
86
86
|
"type": "int"
|
|
87
87
|
},
|
|
88
|
+
{
|
|
89
|
+
"name": "u_transformLutBase",
|
|
90
|
+
"type": "int"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "u_transformMapWidth",
|
|
94
|
+
"type": "int"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "u_transformMapBase",
|
|
98
|
+
"type": "int"
|
|
99
|
+
},
|
|
88
100
|
{
|
|
89
101
|
"name": "u_clipPlanes",
|
|
90
102
|
"type": "vec4[6]"
|
|
@@ -189,6 +201,12 @@
|
|
|
189
201
|
"type": "Texture2D<uint4>",
|
|
190
202
|
"format": "r32ui",
|
|
191
203
|
"semantic": "transform"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"name": "u_transformMap",
|
|
207
|
+
"type": "Texture2D<uint4>",
|
|
208
|
+
"format": "r16ui",
|
|
209
|
+
"semantic": "transform-map"
|
|
192
210
|
}
|
|
193
211
|
],
|
|
194
212
|
"textures": [
|
|
@@ -272,10 +290,10 @@
|
|
|
272
290
|
}
|
|
273
291
|
]
|
|
274
292
|
},
|
|
275
|
-
"contractSha256": "
|
|
293
|
+
"contractSha256": "1ffe68d8db57ab87a3dbc321a832df998c3c1b4f95a4830bc73a2033b8f8dd5e",
|
|
276
294
|
"languages": {
|
|
277
295
|
"glsl": {
|
|
278
|
-
"blockSize":
|
|
296
|
+
"blockSize": 576,
|
|
279
297
|
"layout": {
|
|
280
298
|
"u_mvpMatrix": {
|
|
281
299
|
"offset": 0,
|
|
@@ -309,134 +327,158 @@
|
|
|
309
327
|
"elementStride": 0,
|
|
310
328
|
"encoding": "int"
|
|
311
329
|
},
|
|
312
|
-
"
|
|
330
|
+
"u_maskLutBase": {
|
|
313
331
|
"offset": 160,
|
|
314
332
|
"size": 4,
|
|
315
333
|
"elementStride": 0,
|
|
316
334
|
"encoding": "int"
|
|
317
335
|
},
|
|
318
|
-
"
|
|
336
|
+
"u_transformLutWidth": {
|
|
319
337
|
"offset": 164,
|
|
320
338
|
"size": 4,
|
|
321
339
|
"elementStride": 0,
|
|
322
340
|
"encoding": "int"
|
|
323
341
|
},
|
|
324
|
-
"
|
|
342
|
+
"u_transformLutStride": {
|
|
343
|
+
"offset": 168,
|
|
344
|
+
"size": 4,
|
|
345
|
+
"elementStride": 0,
|
|
346
|
+
"encoding": "int"
|
|
347
|
+
},
|
|
348
|
+
"u_transformLutBase": {
|
|
349
|
+
"offset": 172,
|
|
350
|
+
"size": 4,
|
|
351
|
+
"elementStride": 0,
|
|
352
|
+
"encoding": "int"
|
|
353
|
+
},
|
|
354
|
+
"u_transformMapWidth": {
|
|
325
355
|
"offset": 176,
|
|
356
|
+
"size": 4,
|
|
357
|
+
"elementStride": 0,
|
|
358
|
+
"encoding": "int"
|
|
359
|
+
},
|
|
360
|
+
"u_transformMapBase": {
|
|
361
|
+
"offset": 180,
|
|
362
|
+
"size": 4,
|
|
363
|
+
"elementStride": 0,
|
|
364
|
+
"encoding": "int"
|
|
365
|
+
},
|
|
366
|
+
"u_clipPlanes": {
|
|
367
|
+
"offset": 192,
|
|
326
368
|
"size": 96,
|
|
327
369
|
"elementStride": 16,
|
|
328
370
|
"encoding": "vec4[]"
|
|
329
371
|
},
|
|
330
372
|
"u_clipPlaneCount": {
|
|
331
|
-
"offset":
|
|
373
|
+
"offset": 288,
|
|
332
374
|
"size": 4,
|
|
333
375
|
"elementStride": 0,
|
|
334
376
|
"encoding": "int"
|
|
335
377
|
},
|
|
336
378
|
"u_materialBaseColor": {
|
|
337
|
-
"offset":
|
|
379
|
+
"offset": 304,
|
|
338
380
|
"size": 12,
|
|
339
381
|
"elementStride": 4,
|
|
340
382
|
"encoding": "vec3"
|
|
341
383
|
},
|
|
342
384
|
"u_materialMetallic": {
|
|
343
|
-
"offset":
|
|
385
|
+
"offset": 316,
|
|
344
386
|
"size": 4,
|
|
345
387
|
"elementStride": 0,
|
|
346
388
|
"encoding": "float"
|
|
347
389
|
},
|
|
348
390
|
"u_materialRoughness": {
|
|
349
|
-
"offset":
|
|
391
|
+
"offset": 320,
|
|
350
392
|
"size": 4,
|
|
351
393
|
"elementStride": 0,
|
|
352
394
|
"encoding": "float"
|
|
353
395
|
},
|
|
354
396
|
"u_materialOcclusion": {
|
|
355
|
-
"offset":
|
|
397
|
+
"offset": 324,
|
|
356
398
|
"size": 4,
|
|
357
399
|
"elementStride": 0,
|
|
358
400
|
"encoding": "float"
|
|
359
401
|
},
|
|
360
402
|
"u_materialEmissive": {
|
|
361
|
-
"offset":
|
|
403
|
+
"offset": 336,
|
|
362
404
|
"size": 12,
|
|
363
405
|
"elementStride": 4,
|
|
364
406
|
"encoding": "vec3"
|
|
365
407
|
},
|
|
366
408
|
"u_materialNormalScale": {
|
|
367
|
-
"offset":
|
|
409
|
+
"offset": 348,
|
|
368
410
|
"size": 4,
|
|
369
411
|
"elementStride": 0,
|
|
370
412
|
"encoding": "float"
|
|
371
413
|
},
|
|
372
414
|
"u_viewPosition": {
|
|
373
|
-
"offset":
|
|
415
|
+
"offset": 352,
|
|
374
416
|
"size": 12,
|
|
375
417
|
"elementStride": 4,
|
|
376
418
|
"encoding": "vec3"
|
|
377
419
|
},
|
|
378
420
|
"u_environmentSky": {
|
|
379
|
-
"offset":
|
|
421
|
+
"offset": 368,
|
|
380
422
|
"size": 12,
|
|
381
423
|
"elementStride": 4,
|
|
382
424
|
"encoding": "vec3"
|
|
383
425
|
},
|
|
384
426
|
"u_environmentGround": {
|
|
385
|
-
"offset":
|
|
427
|
+
"offset": 384,
|
|
386
428
|
"size": 12,
|
|
387
429
|
"elementStride": 4,
|
|
388
430
|
"encoding": "vec3"
|
|
389
431
|
},
|
|
390
432
|
"u_environmentUp": {
|
|
391
|
-
"offset":
|
|
433
|
+
"offset": 400,
|
|
392
434
|
"size": 12,
|
|
393
435
|
"elementStride": 4,
|
|
394
436
|
"encoding": "vec3"
|
|
395
437
|
},
|
|
396
438
|
"u_lightPositions": {
|
|
397
|
-
"offset":
|
|
439
|
+
"offset": 416,
|
|
398
440
|
"size": 64,
|
|
399
441
|
"elementStride": 16,
|
|
400
442
|
"encoding": "vec4[]"
|
|
401
443
|
},
|
|
402
444
|
"u_lightColors": {
|
|
403
|
-
"offset":
|
|
445
|
+
"offset": 480,
|
|
404
446
|
"size": 64,
|
|
405
447
|
"elementStride": 16,
|
|
406
448
|
"encoding": "vec3[]"
|
|
407
449
|
},
|
|
408
450
|
"u_lightCount": {
|
|
409
|
-
"offset":
|
|
451
|
+
"offset": 544,
|
|
410
452
|
"size": 4,
|
|
411
453
|
"elementStride": 0,
|
|
412
454
|
"encoding": "int"
|
|
413
455
|
},
|
|
414
456
|
"u_surfaceFinishScale": {
|
|
415
|
-
"offset":
|
|
457
|
+
"offset": 548,
|
|
416
458
|
"size": 4,
|
|
417
459
|
"elementStride": 0,
|
|
418
460
|
"encoding": "float"
|
|
419
461
|
},
|
|
420
462
|
"u_surfaceFinishRoughness": {
|
|
421
|
-
"offset":
|
|
463
|
+
"offset": 552,
|
|
422
464
|
"size": 4,
|
|
423
465
|
"elementStride": 0,
|
|
424
466
|
"encoding": "float"
|
|
425
467
|
},
|
|
426
468
|
"u_surfaceFinishColor": {
|
|
427
|
-
"offset":
|
|
469
|
+
"offset": 556,
|
|
428
470
|
"size": 4,
|
|
429
471
|
"elementStride": 0,
|
|
430
472
|
"encoding": "float"
|
|
431
473
|
},
|
|
432
474
|
"u_colorSource": {
|
|
433
|
-
"offset":
|
|
475
|
+
"offset": 560,
|
|
434
476
|
"size": 4,
|
|
435
477
|
"elementStride": 0,
|
|
436
478
|
"encoding": "int"
|
|
437
479
|
},
|
|
438
480
|
"u_opacity": {
|
|
439
|
-
"offset":
|
|
481
|
+
"offset": 564,
|
|
440
482
|
"size": 4,
|
|
441
483
|
"elementStride": 0,
|
|
442
484
|
"encoding": "float"
|
|
@@ -461,6 +503,15 @@
|
|
|
461
503
|
"stage": "vertex",
|
|
462
504
|
"unit": 1
|
|
463
505
|
},
|
|
506
|
+
{
|
|
507
|
+
"semantic": "transform-map",
|
|
508
|
+
"texture": "u_transformMap",
|
|
509
|
+
"sampler": null,
|
|
510
|
+
"uniform": "SPIRV_Cross_Combinedu_transformMapSPIRV_Cross_DummySampler",
|
|
511
|
+
"component": "uint",
|
|
512
|
+
"stage": "vertex",
|
|
513
|
+
"unit": 2
|
|
514
|
+
},
|
|
464
515
|
{
|
|
465
516
|
"semantic": "base-color",
|
|
466
517
|
"texture": "u_materialBaseColorMap",
|
|
@@ -468,7 +519,7 @@
|
|
|
468
519
|
"uniform": "SPIRV_Cross_Combinedu_materialBaseColorMapu_materialSampler",
|
|
469
520
|
"component": "float",
|
|
470
521
|
"stage": "fragment",
|
|
471
|
-
"unit":
|
|
522
|
+
"unit": 3
|
|
472
523
|
},
|
|
473
524
|
{
|
|
474
525
|
"semantic": "emissive",
|
|
@@ -477,7 +528,7 @@
|
|
|
477
528
|
"uniform": "SPIRV_Cross_Combinedu_materialEmissiveMapu_materialSampler",
|
|
478
529
|
"component": "float",
|
|
479
530
|
"stage": "fragment",
|
|
480
|
-
"unit":
|
|
531
|
+
"unit": 4
|
|
481
532
|
},
|
|
482
533
|
{
|
|
483
534
|
"semantic": "normal",
|
|
@@ -486,7 +537,7 @@
|
|
|
486
537
|
"uniform": "SPIRV_Cross_Combinedu_materialNormalMapu_materialSampler",
|
|
487
538
|
"component": "float",
|
|
488
539
|
"stage": "fragment",
|
|
489
|
-
"unit":
|
|
540
|
+
"unit": 5
|
|
490
541
|
},
|
|
491
542
|
{
|
|
492
543
|
"semantic": "occlusion-roughness-metallic",
|
|
@@ -495,17 +546,17 @@
|
|
|
495
546
|
"uniform": "SPIRV_Cross_Combinedu_materialPackedMapu_materialSampler",
|
|
496
547
|
"component": "float",
|
|
497
548
|
"stage": "fragment",
|
|
498
|
-
"unit":
|
|
549
|
+
"unit": 6
|
|
499
550
|
}
|
|
500
551
|
],
|
|
501
552
|
"stages": {
|
|
502
553
|
"vertex": {
|
|
503
|
-
"source": "#version 300 es\nprecision highp float;\nprecision highp int;\n\nstruct _Array_std140_vector_float_4_6\n{\n vec4 data[6];\n};\n\nstruct _Array_std140_vector_float_4_4\n{\n vec4 data[4];\n};\n\nstruct _Array_std140_vector_float_3_4\n{\n vec3 data[4];\n};\n\nlayout(std140) uniform GlobalParams_std140\n{\n layout(row_major) mat4 u_mvpMatrix;\n layout(row_major) mat4 u_modelViewMatrix;\n vec3 u_deformScale;\n vec3 u_deformRotationCenter;\n int u_maskLutWidth;\n int u_transformLutWidth;\n int u_transformLutStride;\n _Array_std140_vector_float_4_6 u_clipPlanes;\n int u_clipPlaneCount;\n vec3 u_materialBaseColor;\n float u_materialMetallic;\n float u_materialRoughness;\n float u_materialOcclusion;\n vec3 u_materialEmissive;\n float u_materialNormalScale;\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
|
|
504
|
-
"sha256": "
|
|
554
|
+
"source": "#version 300 es\nprecision highp float;\nprecision highp int;\n\nstruct _Array_std140_vector_float_4_6\n{\n vec4 data[6];\n};\n\nstruct _Array_std140_vector_float_4_4\n{\n vec4 data[4];\n};\n\nstruct _Array_std140_vector_float_3_4\n{\n vec3 data[4];\n};\n\nlayout(std140) uniform GlobalParams_std140\n{\n layout(row_major) mat4 u_mvpMatrix;\n layout(row_major) mat4 u_modelViewMatrix;\n vec3 u_deformScale;\n vec3 u_deformRotationCenter;\n int u_maskLutWidth;\n int u_maskLutBase;\n int u_transformLutWidth;\n int u_transformLutStride;\n int u_transformLutBase;\n int u_transformMapWidth;\n int u_transformMapBase;\n _Array_std140_vector_float_4_6 u_clipPlanes;\n int u_clipPlaneCount;\n vec3 u_materialBaseColor;\n float u_materialMetallic;\n float u_materialRoughness;\n float u_materialOcclusion;\n vec3 u_materialEmissive;\n float u_materialNormalScale;\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;\n\nlayout(location = 2) in int a_atomId;\nout vec3 v0;\nout vec3 v1;\nout vec3 v2;\nout vec3 v3;\nout vec2 v4;\nout vec4 v5;\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 vec2 a_uv;\nlayout(location = 5) in vec4 a_tangent;\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 _447 = globalParams.u_maskLutBase + a_atomId;\n if (!(texelFetch(SPIRV_Cross_Combinedu_maskLutSPIRV_Cross_DummySampler, ivec2(_447 - globalParams.u_maskLutWidth * (_447 / globalParams.u_maskLutWidth), _447 / 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 = vec2(0.0);\n v5 = vec4(0.0);\n break;\n }\n vec3 _478 = a_position + (globalParams.u_deformScale * a_deformation);\n vec4 _479 = a_tangent;\n int _596 = globalParams.u_transformMapBase + a_atomId;\n int _604 = int(texelFetch(SPIRV_Cross_Combinedu_transformMapSPIRV_Cross_DummySampler, ivec2(_596 - globalParams.u_transformMapWidth * (_596 / globalParams.u_transformMapWidth), _596 / globalParams.u_transformMapWidth), 0).x);\n int _608 = (globalParams.u_transformLutBase + _604) * globalParams.u_transformLutStride;\n vec3 _480;\n vec3 _481;\n if (texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_608 - globalParams.u_transformLutWidth * (_608 / globalParams.u_transformLutWidth), _608 / globalParams.u_transformLutWidth), 0).x != 0u)\n {\n int _624 = ((globalParams.u_transformLutBase + _604) * globalParams.u_transformLutStride) + 1;\n int _636 = ((globalParams.u_transformLutBase + _604) * globalParams.u_transformLutStride) + 2;\n int _648 = ((globalParams.u_transformLutBase + _604) * globalParams.u_transformLutStride) + 3;\n int _666 = ((globalParams.u_transformLutBase + _604) * globalParams.u_transformLutStride) + 4;\n int _678 = ((globalParams.u_transformLutBase + _604) * globalParams.u_transformLutStride) + 5;\n int _690 = ((globalParams.u_transformLutBase + _604) * globalParams.u_transformLutStride) + 6;\n int _702 = ((globalParams.u_transformLutBase + _604) * globalParams.u_transformLutStride) + 7;\n vec4 _716 = vec4(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_666 - globalParams.u_transformLutWidth * (_666 / globalParams.u_transformLutWidth), _666 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_678 - globalParams.u_transformLutWidth * (_678 / globalParams.u_transformLutWidth), _678 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_690 - globalParams.u_transformLutWidth * (_690 / globalParams.u_transformLutWidth), _690 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_702 - globalParams.u_transformLutWidth * (_702 / globalParams.u_transformLutWidth), _702 / globalParams.u_transformLutWidth), 0).x));\n int _721 = ((globalParams.u_transformLutBase + _604) * globalParams.u_transformLutStride) + 8;\n int _733 = ((globalParams.u_transformLutBase + _604) * globalParams.u_transformLutStride) + 9;\n int _745 = ((globalParams.u_transformLutBase + _604) * globalParams.u_transformLutStride) + 10;\n vec3 _758 = vec3(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_721 - globalParams.u_transformLutWidth * (_721 / globalParams.u_transformLutWidth), _721 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_733 - globalParams.u_transformLutWidth * (_733 / globalParams.u_transformLutWidth), _733 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_745 - globalParams.u_transformLutWidth * (_745 / globalParams.u_transformLutWidth), _745 / globalParams.u_transformLutWidth), 0).x));\n vec3 _761 = _758 * _478;\n vec3 _766 = _716.xyz;\n vec3 _768 = cross(_766, _761) * 2.0;\n vec3 _776 = a_normal / _758;\n vec3 _781 = _716.xyz;\n vec3 _783 = cross(_781, _776) * 2.0;\n vec4 _544 = _479;\n vec3 _546 = _758 * _544.xyz;\n vec3 _791 = _716.xyz;\n vec3 _793 = cross(_791, _546) * 2.0;\n vec3 _548 = normalize((_546 + (_793 * _716.w)) + cross(_791, _793));\n vec4 _878 = _544;\n _878.x = _548.x;\n _878.y = _548.y;\n _878.z = _548.z;\n _479 = _878;\n _480 = ((_761 + (_768 * _716.w)) + cross(_766, _768)) + vec3(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_624 - globalParams.u_transformLutWidth * (_624 / globalParams.u_transformLutWidth), _624 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_636 - globalParams.u_transformLutWidth * (_636 / globalParams.u_transformLutWidth), _636 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_648 - globalParams.u_transformLutWidth * (_648 / globalParams.u_transformLutWidth), _648 / globalParams.u_transformLutWidth), 0).x));\n _481 = normalize((_776 + (_783 * _716.w)) + cross(_781, _783));\n }\n else\n {\n _480 = _478;\n _481 = a_normal;\n }\n mat3 _567 = mat3(spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[0].xyz, spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[1].xyz, spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[2].xyz);\n vec4 _570 = vec4(_480, 1.0);\n gl_Position = _570 * spvWorkaroundRowMajor(globalParams.u_mvpMatrix);\n v0 = _480;\n v1 = (_570 * spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)).xyz;\n v2 = _481 * _567;\n v3 = a_position;\n v4 = a_uv;\n v5 = vec4(_479.xyz * _567, _479.w);\n break;\n } while(false);\n}\n\n",
|
|
555
|
+
"sha256": "1cc59adb672319938dc11bacb50a3a3764a0b88717693a9c0198d6a4ceb79df1"
|
|
505
556
|
},
|
|
506
557
|
"fragment": {
|
|
507
|
-
"source": "#version 300 es\nprecision highp float;\nprecision highp int;\n\nstruct _Array_std140_vector_float_4_6\n{\n highp vec4 data[6];\n};\n\nstruct _Array_std140_vector_float_4_4\n{\n highp vec4 data[4];\n};\n\nstruct _Array_std140_vector_float_3_4\n{\n highp vec3 data[4];\n};\n\nlayout(std140) uniform GlobalParams_std140\n{\n layout(row_major) highp mat4 u_mvpMatrix;\n layout(row_major) highp mat4 u_modelViewMatrix;\n highp vec3 u_deformScale;\n highp vec3 u_deformRotationCenter;\n int u_maskLutWidth;\n int u_transformLutWidth;\n int u_transformLutStride;\n _Array_std140_vector_float_4_6 u_clipPlanes;\n int u_clipPlaneCount;\n highp vec3 u_materialBaseColor;\n highp float u_materialMetallic;\n highp float u_materialRoughness;\n highp float u_materialOcclusion;\n highp vec3 u_materialEmissive;\n highp float u_materialNormalScale;\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_materialBaseColorMapu_materialSampler;\nuniform highp sampler2D SPIRV_Cross_Combinedu_materialPackedMapu_materialSampler;\nuniform highp sampler2D SPIRV_Cross_Combinedu_materialEmissiveMapu_materialSampler;\nuniform highp sampler2D SPIRV_Cross_Combinedu_materialNormalMapu_materialSampler;\n\nin highp vec3 v0;\nin highp vec2 v4;\nin highp vec3 v3;\nlayout(location = 0) out highp vec4 entryPointParam_fragmentMain;\nin highp vec3 v2;\nin highp vec4 v5;\nin highp vec3 v1;\n\nvoid main()\n{\n bool _814 = false;\n do\n {\n _814 = false;\n bool _815;\n do\n {\n int _816 = 0;\n for (;;)\n {\n if (!(_816 < 6))\n {\n break;\n }\n if (_816 >= globalParams.u_clipPlaneCount)\n {\n break;\n }\n if ((dot(globalParams.u_clipPlanes.data[_816].xyz, v0) + globalParams.u_clipPlanes.data[_816].w) < 0.0)\n {\n _814 = true;\n _815 = false;\n break;\n }\n _816++;\n continue;\n }\n if (_814)\n {\n break;\n }\n _814 = true;\n _815 = true;\n break;\n } while(false);\n if (!_815)\n {\n discard;\n }\n highp vec4 _866 = texture(SPIRV_Cross_Combinedu_materialPackedMapu_materialSampler, v4);\n highp vec3 _1545 = globalParams.u_materialBaseColor * texture(SPIRV_Cross_Combinedu_materialBaseColorMapu_materialSampler, v4).xyz;\n highp float _1546 = globalParams.u_materialMetallic * _866.z;\n highp float _1547 = globalParams.u_materialRoughness * _866.y;\n highp float _1548 = globalParams.u_materialOcclusion * _866.x;\n highp vec3 _1549 = globalParams.u_materialEmissive * texture(SPIRV_Cross_Combinedu_materialEmissiveMapu_materialSampler, v4).xyz;\n highp float _1567 = globalParams.u_surfaceFinishScale;\n highp float _1568 = globalParams.u_surfaceFinishRoughness;\n highp float _1569 = globalParams.u_surfaceFinishColor;\n highp vec3 _1458;\n highp float _1459;\n highp float _1460;\n highp float _1461;\n highp vec3 _1462;\n do\n {\n if (_1567 <= 0.0)\n {\n _1458 = _1545;\n _1459 = _1546;\n _1460 = _1547;\n _1461 = _1548;\n _1462 = _1549;\n break;\n }\n highp vec3 _901 = v3 / vec3(_1567);\n highp vec3 _928 = floor(_901);\n highp vec3 _929 = _901 - _928;\n highp vec3 _934 = (_929 * _929) * (vec3(3.0) - (_929 * 2.0));\n ivec3 _935 = ivec3(_928);\n uint _974 = (((uint(_935.x) * 2376512323u) + (uint(_935.y) * 3625334849u)) + (uint(_935.z) * 3407524639u)) + 2654435769u;\n uint _977 = (_974 ^ (_974 >> uint(15))) * 739982445u;\n uint _980 = (_977 ^ (_977 >> uint(12))) * 695872825u;\n ivec3 _937 = _935 + ivec3(1, 0, 0);\n uint _999 = (((uint(_937.x) * 2376512323u) + (uint(_937.y) * 3625334849u)) + (uint(_937.z) * 3407524639u)) + 2654435769u;\n uint _1002 = (_999 ^ (_999 >> uint(15))) * 739982445u;\n uint _1005 = (_1002 ^ (_1002 >> uint(12))) * 695872825u;\n ivec3 _939 = _935 + ivec3(0, 1, 0);\n uint _1024 = (((uint(_939.x) * 2376512323u) + (uint(_939.y) * 3625334849u)) + (uint(_939.z) * 3407524639u)) + 2654435769u;\n uint _1027 = (_1024 ^ (_1024 >> uint(15))) * 739982445u;\n uint _1030 = (_1027 ^ (_1027 >> uint(12))) * 695872825u;\n ivec3 _941 = _935 + ivec3(1, 1, 0);\n uint _1049 = (((uint(_941.x) * 2376512323u) + (uint(_941.y) * 3625334849u)) + (uint(_941.z) * 3407524639u)) + 2654435769u;\n uint _1052 = (_1049 ^ (_1049 >> uint(15))) * 739982445u;\n uint _1055 = (_1052 ^ (_1052 >> uint(12))) * 695872825u;\n ivec3 _943 = _935 + ivec3(0, 0, 1);\n uint _1074 = (((uint(_943.x) * 2376512323u) + (uint(_943.y) * 3625334849u)) + (uint(_943.z) * 3407524639u)) + 2654435769u;\n uint _1077 = (_1074 ^ (_1074 >> uint(15))) * 739982445u;\n uint _1080 = (_1077 ^ (_1077 >> uint(12))) * 695872825u;\n ivec3 _945 = _935 + ivec3(1, 0, 1);\n uint _1099 = (((uint(_945.x) * 2376512323u) + (uint(_945.y) * 3625334849u)) + (uint(_945.z) * 3407524639u)) + 2654435769u;\n uint _1102 = (_1099 ^ (_1099 >> uint(15))) * 739982445u;\n uint _1105 = (_1102 ^ (_1102 >> uint(12))) * 695872825u;\n ivec3 _947 = _935 + ivec3(0, 1, 1);\n uint _1124 = (((uint(_947.x) * 2376512323u) + (uint(_947.y) * 3625334849u)) + (uint(_947.z) * 3407524639u)) + 2654435769u;\n uint _1127 = (_1124 ^ (_1124 >> uint(15))) * 739982445u;\n uint _1130 = (_1127 ^ (_1127 >> uint(12))) * 695872825u;\n ivec3 _949 = _935 + ivec3(1);\n uint _1149 = (((uint(_949.x) * 2376512323u) + (uint(_949.y) * 3625334849u)) + (uint(_949.z) * 3407524639u)) + 2654435769u;\n uint _1152 = (_1149 ^ (_1149 >> uint(15))) * 739982445u;\n uint _1155 = (_1152 ^ (_1152 >> uint(12))) * 695872825u;\n highp float _951 = _934.x;\n highp float _956 = _934.y;\n highp float _904 = (mix(mix(mix(float((_980 ^ (_980 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1005 ^ (_1005 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _951), mix(float((_1030 ^ (_1030 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1055 ^ (_1055 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _951), _956), mix(mix(float((_1080 ^ (_1080 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1105 ^ (_1105 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _951), mix(float((_1130 ^ (_1130 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1155 ^ (_1155 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _951), _956), _934.z) * 2.0) - 1.0;\n _1458 = clamp(_1545 * (1.0 + (_904 * _1569)), vec3(0.0), vec3(1.0));\n _1459 = _1546;\n _1460 = clamp(_1547 + (_904 * _1568), 0.0, 1.0);\n _1461 = _1548;\n _1462 = _1549;\n break;\n } while(false);\n if (globalParams.u_colorSource == 3)\n {\n entryPointParam_fragmentMain = vec4(_1458, globalParams.u_opacity);\n break;\n }\n highp vec4 _1168 = texture(SPIRV_Cross_Combinedu_materialNormalMapu_materialSampler, v4);\n highp vec3 _1173 = (_1168.xyz * 2.0) - vec3(1.0);\n highp vec2 _1175 = _1173.xy * globalParams.u_materialNormalScale;\n highp vec3 _1178 = normalize(normalize(v2));\n highp vec3 _1183 = normalize(v5.xyz - (_1178 * dot(_1178, v5.xyz)));\n highp vec3 _1195 = normalize(((_1183 * _1175.x) + ((cross(_1178, _1183) * v5.w) * _1175.y)) + (_1178 * _1173.z));\n highp vec3 _1199 = normalize(globalParams.u_viewPosition - v1);\n highp vec3 _1580 = _1458;\n highp float _1581 = _1459;\n highp float _1582 = _1460;\n highp float _1583 = _1461;\n highp vec3 _1584 = _1462;\n highp vec3 _1590 = globalParams.u_environmentSky;\n highp vec3 _1591 = globalParams.u_environmentGround;\n highp vec3 _1592 = globalParams.u_environmentUp;\n int _1200 = 0;\n highp vec3 _1201 = vec3(0.0);\n highp vec3 _1242;\n highp vec3 _1243;\n highp vec3 _1244;\n highp float _1245;\n for (;;)\n {\n if (!(_1200 < 4))\n {\n break;\n }\n if (_1200 < globalParams.u_lightCount)\n {\n do\n {\n bool _1250 = globalParams.u_lightPositions.data[_1200].w == 0.0;\n if (_1250)\n {\n _1243 = globalParams.u_lightPositions.data[_1200].xyz;\n }\n else\n {\n _1243 = globalParams.u_lightPositions.data[_1200].xyz - v1;\n }\n highp float _1259 = dot(_1243, _1243);\n if (_1250)\n {\n _1244 = normalize(globalParams.u_lightPositions.data[_1200].xyz);\n }\n else\n {\n _1244 = _1243 * inversesqrt(_1259);\n }\n if (_1250)\n {\n _1245 = 1.0;\n }\n else\n {\n _1245 = 1.0 / _1259;\n }\n highp float _1275 = dot(_1195, _1244);\n if (_1275 <= 0.0)\n {\n _1242 = vec3(0.0);\n break;\n }\n highp vec3 _1280 = _1199 + _1244;\n highp float _1281 = dot(_1280, _1280);\n if (_1281 <= 9.9999999600419720025001879548654e-13)\n {\n _1242 = vec3(0.0);\n break;\n }\n highp vec3 _1286 = _1280 * inversesqrt(_1281);\n highp float _1288 = max(dot(_1195, _1199), 0.0);\n highp float _1290 = max(dot(_1195, _1286), 0.0);\n highp float _1295 = max(_1582, 0.039999999105930328369140625);\n highp vec3 _1327 = mix(vec3(0.039999999105930328369140625), _1580, vec3(_1581));\n highp float _1330 = _1295 * _1295;\n highp float _1331 = _1330 * _1330;\n highp float _1335 = ((_1290 * _1290) * (_1331 - 1.0)) + 1.0;\n highp float _1346 = _1295 + 1.0;\n highp float _1348 = (_1346 * _1346) * 0.125;\n highp float _1355 = _1295 + 1.0;\n highp float _1357 = (_1355 * _1355) * 0.125;\n highp vec3 _1370 = _1327 + ((vec3(1.0) - _1327) * pow(clamp(1.0 - max(dot(_1286, _1199), 0.0), 0.0, 1.0), 5.0));\n _1242 = ((((clamp((vec3(1.0) - _1370) * (1.0 - _1581), vec3(0.0), vec3(1.0)) * _1580) * vec3(0.3183098733425140380859375)) + ((_1370 * ((_1331 / ((3.1415927410125732421875 * _1335) * _1335)) * ((_1288 / ((_1288 * (1.0 - _1348)) + _1348)) * (_1275 / ((_1275 * (1.0 - _1357)) + _1357))))) / vec3(((4.0 * _1288) * _1275) + 9.9999997473787516355514526367188e-05))) * (globalParams.u_lightColors.data[_1200] * _1245)) * _1275;\n break;\n } while(false);\n _1201 += _1242;\n }\n _1200++;\n continue;\n }\n highp vec3 _1406 = mix(vec3(0.039999999105930328369140625), _1580, vec3(_1581));\n highp vec3 _1417 = _1406 + ((max(vec3(1.0 - max(_1582, 0.039999999105930328369140625)), _1406) - _1406) * pow(clamp(1.0 - max(dot(_1195, _1199), 0.0), 0.0, 1.0), 5.0));\n highp vec3 _1240 = (((((clamp((vec3(1.0) - _1417) * (1.0 - _1581), vec3(0.0), vec3(1.0)) * mix(_1591, _1590, vec3((dot(_1195, _1592) * 0.5) + 0.5))) * _1580) + (mix(_1591, _1590, vec3((dot(reflect(-_1199, _1195), _1592) * 0.5) + 0.5)) * _1417)) * _1583) + _1201) + _1584;\n entryPointParam_fragmentMain = vec4(pow(_1240 / (_1240 + vec3(1.0)), vec3(0.454545438289642333984375)), globalParams.u_opacity);\n break;\n } while(false);\n}\n\n",
|
|
508
|
-
"sha256": "
|
|
558
|
+
"source": "#version 300 es\nprecision highp float;\nprecision highp int;\n\nstruct _Array_std140_vector_float_4_6\n{\n highp vec4 data[6];\n};\n\nstruct _Array_std140_vector_float_4_4\n{\n highp vec4 data[4];\n};\n\nstruct _Array_std140_vector_float_3_4\n{\n highp vec3 data[4];\n};\n\nlayout(std140) uniform GlobalParams_std140\n{\n layout(row_major) highp mat4 u_mvpMatrix;\n layout(row_major) highp mat4 u_modelViewMatrix;\n highp vec3 u_deformScale;\n highp vec3 u_deformRotationCenter;\n int u_maskLutWidth;\n int u_maskLutBase;\n int u_transformLutWidth;\n int u_transformLutStride;\n int u_transformLutBase;\n int u_transformMapWidth;\n int u_transformMapBase;\n _Array_std140_vector_float_4_6 u_clipPlanes;\n int u_clipPlaneCount;\n highp vec3 u_materialBaseColor;\n highp float u_materialMetallic;\n highp float u_materialRoughness;\n highp float u_materialOcclusion;\n highp vec3 u_materialEmissive;\n highp float u_materialNormalScale;\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_materialBaseColorMapu_materialSampler;\nuniform highp sampler2D SPIRV_Cross_Combinedu_materialPackedMapu_materialSampler;\nuniform highp sampler2D SPIRV_Cross_Combinedu_materialEmissiveMapu_materialSampler;\nuniform highp sampler2D SPIRV_Cross_Combinedu_materialNormalMapu_materialSampler;\n\nin highp vec3 v0;\nin highp vec2 v4;\nin highp vec3 v3;\nlayout(location = 0) out highp vec4 entryPointParam_fragmentMain;\nin highp vec3 v2;\nin highp vec4 v5;\nin highp vec3 v1;\n\nvoid main()\n{\n bool _814 = false;\n do\n {\n _814 = false;\n bool _815;\n do\n {\n int _816 = 0;\n for (;;)\n {\n if (!(_816 < 6))\n {\n break;\n }\n if (_816 >= globalParams.u_clipPlaneCount)\n {\n break;\n }\n if ((dot(globalParams.u_clipPlanes.data[_816].xyz, v0) + globalParams.u_clipPlanes.data[_816].w) < 0.0)\n {\n _814 = true;\n _815 = false;\n break;\n }\n _816++;\n continue;\n }\n if (_814)\n {\n break;\n }\n _814 = true;\n _815 = true;\n break;\n } while(false);\n if (!_815)\n {\n discard;\n }\n highp vec4 _866 = texture(SPIRV_Cross_Combinedu_materialPackedMapu_materialSampler, v4);\n highp vec3 _1545 = globalParams.u_materialBaseColor * texture(SPIRV_Cross_Combinedu_materialBaseColorMapu_materialSampler, v4).xyz;\n highp float _1546 = globalParams.u_materialMetallic * _866.z;\n highp float _1547 = globalParams.u_materialRoughness * _866.y;\n highp float _1548 = globalParams.u_materialOcclusion * _866.x;\n highp vec3 _1549 = globalParams.u_materialEmissive * texture(SPIRV_Cross_Combinedu_materialEmissiveMapu_materialSampler, v4).xyz;\n highp float _1567 = globalParams.u_surfaceFinishScale;\n highp float _1568 = globalParams.u_surfaceFinishRoughness;\n highp float _1569 = globalParams.u_surfaceFinishColor;\n highp vec3 _1458;\n highp float _1459;\n highp float _1460;\n highp float _1461;\n highp vec3 _1462;\n do\n {\n if (_1567 <= 0.0)\n {\n _1458 = _1545;\n _1459 = _1546;\n _1460 = _1547;\n _1461 = _1548;\n _1462 = _1549;\n break;\n }\n highp vec3 _901 = v3 / vec3(_1567);\n highp vec3 _928 = floor(_901);\n highp vec3 _929 = _901 - _928;\n highp vec3 _934 = (_929 * _929) * (vec3(3.0) - (_929 * 2.0));\n ivec3 _935 = ivec3(_928);\n uint _974 = (((uint(_935.x) * 2376512323u) + (uint(_935.y) * 3625334849u)) + (uint(_935.z) * 3407524639u)) + 2654435769u;\n uint _977 = (_974 ^ (_974 >> uint(15))) * 739982445u;\n uint _980 = (_977 ^ (_977 >> uint(12))) * 695872825u;\n ivec3 _937 = _935 + ivec3(1, 0, 0);\n uint _999 = (((uint(_937.x) * 2376512323u) + (uint(_937.y) * 3625334849u)) + (uint(_937.z) * 3407524639u)) + 2654435769u;\n uint _1002 = (_999 ^ (_999 >> uint(15))) * 739982445u;\n uint _1005 = (_1002 ^ (_1002 >> uint(12))) * 695872825u;\n ivec3 _939 = _935 + ivec3(0, 1, 0);\n uint _1024 = (((uint(_939.x) * 2376512323u) + (uint(_939.y) * 3625334849u)) + (uint(_939.z) * 3407524639u)) + 2654435769u;\n uint _1027 = (_1024 ^ (_1024 >> uint(15))) * 739982445u;\n uint _1030 = (_1027 ^ (_1027 >> uint(12))) * 695872825u;\n ivec3 _941 = _935 + ivec3(1, 1, 0);\n uint _1049 = (((uint(_941.x) * 2376512323u) + (uint(_941.y) * 3625334849u)) + (uint(_941.z) * 3407524639u)) + 2654435769u;\n uint _1052 = (_1049 ^ (_1049 >> uint(15))) * 739982445u;\n uint _1055 = (_1052 ^ (_1052 >> uint(12))) * 695872825u;\n ivec3 _943 = _935 + ivec3(0, 0, 1);\n uint _1074 = (((uint(_943.x) * 2376512323u) + (uint(_943.y) * 3625334849u)) + (uint(_943.z) * 3407524639u)) + 2654435769u;\n uint _1077 = (_1074 ^ (_1074 >> uint(15))) * 739982445u;\n uint _1080 = (_1077 ^ (_1077 >> uint(12))) * 695872825u;\n ivec3 _945 = _935 + ivec3(1, 0, 1);\n uint _1099 = (((uint(_945.x) * 2376512323u) + (uint(_945.y) * 3625334849u)) + (uint(_945.z) * 3407524639u)) + 2654435769u;\n uint _1102 = (_1099 ^ (_1099 >> uint(15))) * 739982445u;\n uint _1105 = (_1102 ^ (_1102 >> uint(12))) * 695872825u;\n ivec3 _947 = _935 + ivec3(0, 1, 1);\n uint _1124 = (((uint(_947.x) * 2376512323u) + (uint(_947.y) * 3625334849u)) + (uint(_947.z) * 3407524639u)) + 2654435769u;\n uint _1127 = (_1124 ^ (_1124 >> uint(15))) * 739982445u;\n uint _1130 = (_1127 ^ (_1127 >> uint(12))) * 695872825u;\n ivec3 _949 = _935 + ivec3(1);\n uint _1149 = (((uint(_949.x) * 2376512323u) + (uint(_949.y) * 3625334849u)) + (uint(_949.z) * 3407524639u)) + 2654435769u;\n uint _1152 = (_1149 ^ (_1149 >> uint(15))) * 739982445u;\n uint _1155 = (_1152 ^ (_1152 >> uint(12))) * 695872825u;\n highp float _951 = _934.x;\n highp float _956 = _934.y;\n highp float _904 = (mix(mix(mix(float((_980 ^ (_980 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1005 ^ (_1005 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _951), mix(float((_1030 ^ (_1030 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1055 ^ (_1055 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _951), _956), mix(mix(float((_1080 ^ (_1080 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1105 ^ (_1105 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _951), mix(float((_1130 ^ (_1130 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1155 ^ (_1155 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _951), _956), _934.z) * 2.0) - 1.0;\n _1458 = clamp(_1545 * (1.0 + (_904 * _1569)), vec3(0.0), vec3(1.0));\n _1459 = _1546;\n _1460 = clamp(_1547 + (_904 * _1568), 0.0, 1.0);\n _1461 = _1548;\n _1462 = _1549;\n break;\n } while(false);\n if (globalParams.u_colorSource == 3)\n {\n entryPointParam_fragmentMain = vec4(_1458, globalParams.u_opacity);\n break;\n }\n highp vec4 _1168 = texture(SPIRV_Cross_Combinedu_materialNormalMapu_materialSampler, v4);\n highp vec3 _1173 = (_1168.xyz * 2.0) - vec3(1.0);\n highp vec2 _1175 = _1173.xy * globalParams.u_materialNormalScale;\n highp vec3 _1178 = normalize(normalize(v2));\n highp vec3 _1183 = normalize(v5.xyz - (_1178 * dot(_1178, v5.xyz)));\n highp vec3 _1195 = normalize(((_1183 * _1175.x) + ((cross(_1178, _1183) * v5.w) * _1175.y)) + (_1178 * _1173.z));\n highp vec3 _1199 = normalize(globalParams.u_viewPosition - v1);\n highp vec3 _1580 = _1458;\n highp float _1581 = _1459;\n highp float _1582 = _1460;\n highp float _1583 = _1461;\n highp vec3 _1584 = _1462;\n highp vec3 _1590 = globalParams.u_environmentSky;\n highp vec3 _1591 = globalParams.u_environmentGround;\n highp vec3 _1592 = globalParams.u_environmentUp;\n int _1200 = 0;\n highp vec3 _1201 = vec3(0.0);\n highp vec3 _1242;\n highp vec3 _1243;\n highp vec3 _1244;\n highp float _1245;\n for (;;)\n {\n if (!(_1200 < 4))\n {\n break;\n }\n if (_1200 < globalParams.u_lightCount)\n {\n do\n {\n bool _1250 = globalParams.u_lightPositions.data[_1200].w == 0.0;\n if (_1250)\n {\n _1243 = globalParams.u_lightPositions.data[_1200].xyz;\n }\n else\n {\n _1243 = globalParams.u_lightPositions.data[_1200].xyz - v1;\n }\n highp float _1259 = dot(_1243, _1243);\n if (_1250)\n {\n _1244 = normalize(globalParams.u_lightPositions.data[_1200].xyz);\n }\n else\n {\n _1244 = _1243 * inversesqrt(_1259);\n }\n if (_1250)\n {\n _1245 = 1.0;\n }\n else\n {\n _1245 = 1.0 / _1259;\n }\n highp float _1275 = dot(_1195, _1244);\n if (_1275 <= 0.0)\n {\n _1242 = vec3(0.0);\n break;\n }\n highp vec3 _1280 = _1199 + _1244;\n highp float _1281 = dot(_1280, _1280);\n if (_1281 <= 9.9999999600419720025001879548654e-13)\n {\n _1242 = vec3(0.0);\n break;\n }\n highp vec3 _1286 = _1280 * inversesqrt(_1281);\n highp float _1288 = max(dot(_1195, _1199), 0.0);\n highp float _1290 = max(dot(_1195, _1286), 0.0);\n highp float _1295 = max(_1582, 0.039999999105930328369140625);\n highp vec3 _1327 = mix(vec3(0.039999999105930328369140625), _1580, vec3(_1581));\n highp float _1330 = _1295 * _1295;\n highp float _1331 = _1330 * _1330;\n highp float _1335 = ((_1290 * _1290) * (_1331 - 1.0)) + 1.0;\n highp float _1346 = _1295 + 1.0;\n highp float _1348 = (_1346 * _1346) * 0.125;\n highp float _1355 = _1295 + 1.0;\n highp float _1357 = (_1355 * _1355) * 0.125;\n highp vec3 _1370 = _1327 + ((vec3(1.0) - _1327) * pow(clamp(1.0 - max(dot(_1286, _1199), 0.0), 0.0, 1.0), 5.0));\n _1242 = ((((clamp((vec3(1.0) - _1370) * (1.0 - _1581), vec3(0.0), vec3(1.0)) * _1580) * vec3(0.3183098733425140380859375)) + ((_1370 * ((_1331 / ((3.1415927410125732421875 * _1335) * _1335)) * ((_1288 / ((_1288 * (1.0 - _1348)) + _1348)) * (_1275 / ((_1275 * (1.0 - _1357)) + _1357))))) / vec3(((4.0 * _1288) * _1275) + 9.9999997473787516355514526367188e-05))) * (globalParams.u_lightColors.data[_1200] * _1245)) * _1275;\n break;\n } while(false);\n _1201 += _1242;\n }\n _1200++;\n continue;\n }\n highp vec3 _1406 = mix(vec3(0.039999999105930328369140625), _1580, vec3(_1581));\n highp vec3 _1417 = _1406 + ((max(vec3(1.0 - max(_1582, 0.039999999105930328369140625)), _1406) - _1406) * pow(clamp(1.0 - max(dot(_1195, _1199), 0.0), 0.0, 1.0), 5.0));\n highp vec3 _1240 = (((((clamp((vec3(1.0) - _1417) * (1.0 - _1581), vec3(0.0), vec3(1.0)) * mix(_1591, _1590, vec3((dot(_1195, _1592) * 0.5) + 0.5))) * _1580) + (mix(_1591, _1590, vec3((dot(reflect(-_1199, _1195), _1592) * 0.5) + 0.5)) * _1417)) * _1583) + _1201) + _1584;\n entryPointParam_fragmentMain = vec4(pow(_1240 / (_1240 + vec3(1.0)), vec3(0.454545438289642333984375)), globalParams.u_opacity);\n break;\n } while(false);\n}\n\n",
|
|
559
|
+
"sha256": "ed9d3c5e64640c5f6719150a847fe01e40d723d4ac032799403e879ebd8a070e"
|
|
509
560
|
}
|
|
510
561
|
}
|
|
511
562
|
}
|