@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": [
|
|
@@ -40,14 +41,9 @@
|
|
|
40
41
|
"semantic": "rotation"
|
|
41
42
|
},
|
|
42
43
|
{
|
|
43
|
-
"name": "
|
|
44
|
+
"name": "a_atomId",
|
|
44
45
|
"type": "int",
|
|
45
|
-
"semantic": "
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"name": "a_componentId",
|
|
49
|
-
"type": "int",
|
|
50
|
-
"semantic": "component-id"
|
|
46
|
+
"semantic": "atom-id"
|
|
51
47
|
},
|
|
52
48
|
{
|
|
53
49
|
"name": "a_normal",
|
|
@@ -81,6 +77,10 @@
|
|
|
81
77
|
"name": "u_maskLutWidth",
|
|
82
78
|
"type": "int"
|
|
83
79
|
},
|
|
80
|
+
{
|
|
81
|
+
"name": "u_maskLutBase",
|
|
82
|
+
"type": "int"
|
|
83
|
+
},
|
|
84
84
|
{
|
|
85
85
|
"name": "u_transformLutWidth",
|
|
86
86
|
"type": "int"
|
|
@@ -89,6 +89,18 @@
|
|
|
89
89
|
"name": "u_transformLutStride",
|
|
90
90
|
"type": "int"
|
|
91
91
|
},
|
|
92
|
+
{
|
|
93
|
+
"name": "u_transformLutBase",
|
|
94
|
+
"type": "int"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "u_transformMapWidth",
|
|
98
|
+
"type": "int"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "u_transformMapBase",
|
|
102
|
+
"type": "int"
|
|
103
|
+
},
|
|
92
104
|
{
|
|
93
105
|
"name": "u_clipPlanes",
|
|
94
106
|
"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": [
|
|
@@ -255,10 +273,10 @@
|
|
|
255
273
|
}
|
|
256
274
|
]
|
|
257
275
|
},
|
|
258
|
-
"contractSha256": "
|
|
276
|
+
"contractSha256": "e50de5a20983b3d785e1cace366ff1bc5c19968835865e6446e7f0cf1b0ee191",
|
|
259
277
|
"languages": {
|
|
260
278
|
"glsl": {
|
|
261
|
-
"blockSize":
|
|
279
|
+
"blockSize": 576,
|
|
262
280
|
"layout": {
|
|
263
281
|
"u_mvpMatrix": {
|
|
264
282
|
"offset": 0,
|
|
@@ -292,128 +310,152 @@
|
|
|
292
310
|
"elementStride": 0,
|
|
293
311
|
"encoding": "int"
|
|
294
312
|
},
|
|
295
|
-
"
|
|
313
|
+
"u_maskLutBase": {
|
|
296
314
|
"offset": 160,
|
|
297
315
|
"size": 4,
|
|
298
316
|
"elementStride": 0,
|
|
299
317
|
"encoding": "int"
|
|
300
318
|
},
|
|
301
|
-
"
|
|
319
|
+
"u_transformLutWidth": {
|
|
302
320
|
"offset": 164,
|
|
303
321
|
"size": 4,
|
|
304
322
|
"elementStride": 0,
|
|
305
323
|
"encoding": "int"
|
|
306
324
|
},
|
|
307
|
-
"
|
|
325
|
+
"u_transformLutStride": {
|
|
326
|
+
"offset": 168,
|
|
327
|
+
"size": 4,
|
|
328
|
+
"elementStride": 0,
|
|
329
|
+
"encoding": "int"
|
|
330
|
+
},
|
|
331
|
+
"u_transformLutBase": {
|
|
332
|
+
"offset": 172,
|
|
333
|
+
"size": 4,
|
|
334
|
+
"elementStride": 0,
|
|
335
|
+
"encoding": "int"
|
|
336
|
+
},
|
|
337
|
+
"u_transformMapWidth": {
|
|
308
338
|
"offset": 176,
|
|
339
|
+
"size": 4,
|
|
340
|
+
"elementStride": 0,
|
|
341
|
+
"encoding": "int"
|
|
342
|
+
},
|
|
343
|
+
"u_transformMapBase": {
|
|
344
|
+
"offset": 180,
|
|
345
|
+
"size": 4,
|
|
346
|
+
"elementStride": 0,
|
|
347
|
+
"encoding": "int"
|
|
348
|
+
},
|
|
349
|
+
"u_clipPlanes": {
|
|
350
|
+
"offset": 192,
|
|
309
351
|
"size": 96,
|
|
310
352
|
"elementStride": 16,
|
|
311
353
|
"encoding": "vec4[]"
|
|
312
354
|
},
|
|
313
355
|
"u_clipPlaneCount": {
|
|
314
|
-
"offset":
|
|
356
|
+
"offset": 288,
|
|
315
357
|
"size": 4,
|
|
316
358
|
"elementStride": 0,
|
|
317
359
|
"encoding": "int"
|
|
318
360
|
},
|
|
319
361
|
"u_materialBaseColor": {
|
|
320
|
-
"offset":
|
|
362
|
+
"offset": 304,
|
|
321
363
|
"size": 12,
|
|
322
364
|
"elementStride": 4,
|
|
323
365
|
"encoding": "vec3"
|
|
324
366
|
},
|
|
325
367
|
"u_materialMetallic": {
|
|
326
|
-
"offset":
|
|
368
|
+
"offset": 316,
|
|
327
369
|
"size": 4,
|
|
328
370
|
"elementStride": 0,
|
|
329
371
|
"encoding": "float"
|
|
330
372
|
},
|
|
331
373
|
"u_materialRoughness": {
|
|
332
|
-
"offset":
|
|
374
|
+
"offset": 320,
|
|
333
375
|
"size": 4,
|
|
334
376
|
"elementStride": 0,
|
|
335
377
|
"encoding": "float"
|
|
336
378
|
},
|
|
337
379
|
"u_materialOcclusion": {
|
|
338
|
-
"offset":
|
|
380
|
+
"offset": 324,
|
|
339
381
|
"size": 4,
|
|
340
382
|
"elementStride": 0,
|
|
341
383
|
"encoding": "float"
|
|
342
384
|
},
|
|
343
385
|
"u_materialEmissive": {
|
|
344
|
-
"offset":
|
|
386
|
+
"offset": 336,
|
|
345
387
|
"size": 12,
|
|
346
388
|
"elementStride": 4,
|
|
347
389
|
"encoding": "vec3"
|
|
348
390
|
},
|
|
349
391
|
"u_viewPosition": {
|
|
350
|
-
"offset":
|
|
392
|
+
"offset": 352,
|
|
351
393
|
"size": 12,
|
|
352
394
|
"elementStride": 4,
|
|
353
395
|
"encoding": "vec3"
|
|
354
396
|
},
|
|
355
397
|
"u_environmentSky": {
|
|
356
|
-
"offset":
|
|
398
|
+
"offset": 368,
|
|
357
399
|
"size": 12,
|
|
358
400
|
"elementStride": 4,
|
|
359
401
|
"encoding": "vec3"
|
|
360
402
|
},
|
|
361
403
|
"u_environmentGround": {
|
|
362
|
-
"offset":
|
|
404
|
+
"offset": 384,
|
|
363
405
|
"size": 12,
|
|
364
406
|
"elementStride": 4,
|
|
365
407
|
"encoding": "vec3"
|
|
366
408
|
},
|
|
367
409
|
"u_environmentUp": {
|
|
368
|
-
"offset":
|
|
410
|
+
"offset": 400,
|
|
369
411
|
"size": 12,
|
|
370
412
|
"elementStride": 4,
|
|
371
413
|
"encoding": "vec3"
|
|
372
414
|
},
|
|
373
415
|
"u_lightPositions": {
|
|
374
|
-
"offset":
|
|
416
|
+
"offset": 416,
|
|
375
417
|
"size": 64,
|
|
376
418
|
"elementStride": 16,
|
|
377
419
|
"encoding": "vec4[]"
|
|
378
420
|
},
|
|
379
421
|
"u_lightColors": {
|
|
380
|
-
"offset":
|
|
422
|
+
"offset": 480,
|
|
381
423
|
"size": 64,
|
|
382
424
|
"elementStride": 16,
|
|
383
425
|
"encoding": "vec3[]"
|
|
384
426
|
},
|
|
385
427
|
"u_lightCount": {
|
|
386
|
-
"offset":
|
|
428
|
+
"offset": 544,
|
|
387
429
|
"size": 4,
|
|
388
430
|
"elementStride": 0,
|
|
389
431
|
"encoding": "int"
|
|
390
432
|
},
|
|
391
433
|
"u_surfaceFinishScale": {
|
|
392
|
-
"offset":
|
|
434
|
+
"offset": 548,
|
|
393
435
|
"size": 4,
|
|
394
436
|
"elementStride": 0,
|
|
395
437
|
"encoding": "float"
|
|
396
438
|
},
|
|
397
439
|
"u_surfaceFinishRoughness": {
|
|
398
|
-
"offset":
|
|
440
|
+
"offset": 552,
|
|
399
441
|
"size": 4,
|
|
400
442
|
"elementStride": 0,
|
|
401
443
|
"encoding": "float"
|
|
402
444
|
},
|
|
403
445
|
"u_surfaceFinishColor": {
|
|
404
|
-
"offset":
|
|
446
|
+
"offset": 556,
|
|
405
447
|
"size": 4,
|
|
406
448
|
"elementStride": 0,
|
|
407
449
|
"encoding": "float"
|
|
408
450
|
},
|
|
409
451
|
"u_colorSource": {
|
|
410
|
-
"offset":
|
|
452
|
+
"offset": 560,
|
|
411
453
|
"size": 4,
|
|
412
454
|
"elementStride": 0,
|
|
413
455
|
"encoding": "int"
|
|
414
456
|
},
|
|
415
457
|
"u_opacity": {
|
|
416
|
-
"offset":
|
|
458
|
+
"offset": 564,
|
|
417
459
|
"size": 4,
|
|
418
460
|
"elementStride": 0,
|
|
419
461
|
"encoding": "float"
|
|
@@ -438,6 +480,15 @@
|
|
|
438
480
|
"stage": "vertex",
|
|
439
481
|
"unit": 1
|
|
440
482
|
},
|
|
483
|
+
{
|
|
484
|
+
"semantic": "transform-map",
|
|
485
|
+
"texture": "u_transformMap",
|
|
486
|
+
"sampler": null,
|
|
487
|
+
"uniform": "SPIRV_Cross_Combinedu_transformMapSPIRV_Cross_DummySampler",
|
|
488
|
+
"component": "uint",
|
|
489
|
+
"stage": "vertex",
|
|
490
|
+
"unit": 2
|
|
491
|
+
},
|
|
441
492
|
{
|
|
442
493
|
"semantic": "base-color",
|
|
443
494
|
"texture": "u_materialBaseColorMap",
|
|
@@ -445,7 +496,7 @@
|
|
|
445
496
|
"uniform": "SPIRV_Cross_Combinedu_materialBaseColorMapu_materialSampler",
|
|
446
497
|
"component": "float",
|
|
447
498
|
"stage": "fragment",
|
|
448
|
-
"unit":
|
|
499
|
+
"unit": 3
|
|
449
500
|
},
|
|
450
501
|
{
|
|
451
502
|
"semantic": "emissive",
|
|
@@ -454,7 +505,7 @@
|
|
|
454
505
|
"uniform": "SPIRV_Cross_Combinedu_materialEmissiveMapu_materialSampler",
|
|
455
506
|
"component": "float",
|
|
456
507
|
"stage": "fragment",
|
|
457
|
-
"unit":
|
|
508
|
+
"unit": 4
|
|
458
509
|
},
|
|
459
510
|
{
|
|
460
511
|
"semantic": "occlusion-roughness-metallic",
|
|
@@ -463,17 +514,17 @@
|
|
|
463
514
|
"uniform": "SPIRV_Cross_Combinedu_materialPackedMapu_materialSampler",
|
|
464
515
|
"component": "float",
|
|
465
516
|
"stage": "fragment",
|
|
466
|
-
"unit":
|
|
517
|
+
"unit": 5
|
|
467
518
|
}
|
|
468
519
|
],
|
|
469
520
|
"stages": {
|
|
470
521
|
"vertex": {
|
|
471
|
-
"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 vec3 u_viewPosition;\n vec3 u_environmentSky;\n vec3 u_environmentGround;\n vec3 u_environmentUp;\n _Array_std140_vector_float_4_4 u_lightPositions;\n _Array_std140_vector_float_3_4 u_lightColors;\n int u_lightCount;\n float u_surfaceFinishScale;\n float u_surfaceFinishRoughness;\n float u_surfaceFinishColor;\n int u_colorSource;\n float u_opacity;\n} globalParams;\n\nuniform highp usampler2D SPIRV_Cross_Combinedu_maskLutSPIRV_Cross_DummySampler;\nuniform highp usampler2D SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler;\n\nlayout(location = 3) in int
|
|
472
|
-
"sha256": "
|
|
522
|
+
"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 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 = 3) in int a_atomId;\nout vec3 v0;\nout vec3 v1;\nout vec3 v2;\nout vec3 v3;\nout vec2 v4;\nlayout(location = 0) in vec3 a_position;\nlayout(location = 1) in vec3 a_deformation;\nlayout(location = 2) in vec3 a_rotation;\nlayout(location = 4) in vec3 a_normal;\nlayout(location = 5) in vec2 a_uv;\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 _444 = globalParams.u_maskLutBase + a_atomId;\n if (!(texelFetch(SPIRV_Cross_Combinedu_maskLutSPIRV_Cross_DummySampler, ivec2(_444 - globalParams.u_maskLutWidth * (_444 / globalParams.u_maskLutWidth), _444 / 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 break;\n }\n vec3 _473 = a_position - globalParams.u_deformRotationCenter;\n float _474 = length(a_rotation);\n vec3 _470;\n if (_474 > 9.9999999392252902907785028219223e-09)\n {\n vec3 _478 = a_rotation / vec3(_474);\n float _479 = cos(_474);\n _470 = ((_473 * _479) + (cross(_478, _473) * sin(_474))) + ((_478 * dot(_478, _473)) * (1.0 - _479));\n }\n else\n {\n _470 = _473;\n }\n vec3 _495 = (globalParams.u_deformRotationCenter + _470) + (globalParams.u_deformScale * a_deformation);\n int _594 = globalParams.u_transformMapBase + a_atomId;\n int _602 = int(texelFetch(SPIRV_Cross_Combinedu_transformMapSPIRV_Cross_DummySampler, ivec2(_594 - globalParams.u_transformMapWidth * (_594 / globalParams.u_transformMapWidth), _594 / globalParams.u_transformMapWidth), 0).x);\n int _606 = (globalParams.u_transformLutBase + _602) * globalParams.u_transformLutStride;\n vec3 _496;\n vec3 _497;\n if (texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_606 - globalParams.u_transformLutWidth * (_606 / globalParams.u_transformLutWidth), _606 / globalParams.u_transformLutWidth), 0).x != 0u)\n {\n int _622 = ((globalParams.u_transformLutBase + _602) * globalParams.u_transformLutStride) + 1;\n int _634 = ((globalParams.u_transformLutBase + _602) * globalParams.u_transformLutStride) + 2;\n int _646 = ((globalParams.u_transformLutBase + _602) * globalParams.u_transformLutStride) + 3;\n int _664 = ((globalParams.u_transformLutBase + _602) * globalParams.u_transformLutStride) + 4;\n int _676 = ((globalParams.u_transformLutBase + _602) * globalParams.u_transformLutStride) + 5;\n int _688 = ((globalParams.u_transformLutBase + _602) * globalParams.u_transformLutStride) + 6;\n int _700 = ((globalParams.u_transformLutBase + _602) * globalParams.u_transformLutStride) + 7;\n vec4 _714 = vec4(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_664 - globalParams.u_transformLutWidth * (_664 / globalParams.u_transformLutWidth), _664 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_676 - globalParams.u_transformLutWidth * (_676 / globalParams.u_transformLutWidth), _676 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_688 - globalParams.u_transformLutWidth * (_688 / globalParams.u_transformLutWidth), _688 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_700 - globalParams.u_transformLutWidth * (_700 / globalParams.u_transformLutWidth), _700 / globalParams.u_transformLutWidth), 0).x));\n int _719 = ((globalParams.u_transformLutBase + _602) * globalParams.u_transformLutStride) + 8;\n int _731 = ((globalParams.u_transformLutBase + _602) * globalParams.u_transformLutStride) + 9;\n int _743 = ((globalParams.u_transformLutBase + _602) * globalParams.u_transformLutStride) + 10;\n vec3 _756 = vec3(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_719 - globalParams.u_transformLutWidth * (_719 / globalParams.u_transformLutWidth), _719 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_731 - globalParams.u_transformLutWidth * (_731 / globalParams.u_transformLutWidth), _731 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_743 - globalParams.u_transformLutWidth * (_743 / globalParams.u_transformLutWidth), _743 / globalParams.u_transformLutWidth), 0).x));\n vec3 _759 = _756 * _495;\n vec3 _764 = _714.xyz;\n vec3 _766 = cross(_764, _759) * 2.0;\n vec3 _774 = a_normal / _756;\n vec3 _779 = _714.xyz;\n vec3 _781 = cross(_779, _774) * 2.0;\n _496 = ((_759 + (_766 * _714.w)) + cross(_764, _766)) + vec3(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_622 - globalParams.u_transformLutWidth * (_622 / globalParams.u_transformLutWidth), _622 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_634 - globalParams.u_transformLutWidth * (_634 / globalParams.u_transformLutWidth), _634 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_646 - globalParams.u_transformLutWidth * (_646 / globalParams.u_transformLutWidth), _646 / globalParams.u_transformLutWidth), 0).x));\n _497 = normalize((_774 + (_781 * _714.w)) + cross(_779, _781));\n }\n else\n {\n _496 = _495;\n _497 = a_normal;\n }\n vec4 _575 = vec4(_496, 1.0);\n gl_Position = _575 * spvWorkaroundRowMajor(globalParams.u_mvpMatrix);\n v0 = _496;\n v1 = (_575 * spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)).xyz;\n v2 = _497 * 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 = a_uv;\n break;\n } while(false);\n}\n\n",
|
|
523
|
+
"sha256": "0144aa48d9c2ac1652b9c5f3b5cc1d0c8e69f237b1afa825771d9f10ab150a25"
|
|
473
524
|
},
|
|
474
525
|
"fragment": {
|
|
475
|
-
"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 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;\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 vec3 v1;\n\nvoid main()\n{\n bool _765 = false;\n do\n {\n _765 = false;\n bool _766;\n do\n {\n int _767 = 0;\n for (;;)\n {\n if (!(_767 < 6))\n {\n break;\n }\n if (_767 >= globalParams.u_clipPlaneCount)\n {\n break;\n }\n if ((dot(globalParams.u_clipPlanes.data[_767].xyz, v0) + globalParams.u_clipPlanes.data[_767].w) < 0.0)\n {\n _765 = true;\n _766 = false;\n break;\n }\n _767++;\n continue;\n }\n if (_765)\n {\n break;\n }\n _765 = true;\n _766 = true;\n break;\n } while(false);\n if (!_766)\n {\n discard;\n }\n highp vec4 _817 = texture(SPIRV_Cross_Combinedu_materialPackedMapu_materialSampler, v4);\n highp vec3 _1464 = globalParams.u_materialBaseColor * texture(SPIRV_Cross_Combinedu_materialBaseColorMapu_materialSampler, v4).xyz;\n highp float _1465 = globalParams.u_materialMetallic * _817.z;\n highp float _1466 = globalParams.u_materialRoughness * _817.y;\n highp float _1467 = globalParams.u_materialOcclusion * _817.x;\n highp vec3 _1468 = globalParams.u_materialEmissive * texture(SPIRV_Cross_Combinedu_materialEmissiveMapu_materialSampler, v4).xyz;\n highp float _1486 = globalParams.u_surfaceFinishScale;\n highp float _1487 = globalParams.u_surfaceFinishRoughness;\n highp float _1488 = globalParams.u_surfaceFinishColor;\n highp vec3 _1377;\n highp float _1378;\n highp float _1379;\n highp float _1380;\n highp vec3 _1381;\n do\n {\n if (_1486 <= 0.0)\n {\n _1377 = _1464;\n _1378 = _1465;\n _1379 = _1466;\n _1380 = _1467;\n _1381 = _1468;\n break;\n }\n highp vec3 _852 = v3 / vec3(_1486);\n highp vec3 _879 = floor(_852);\n highp vec3 _880 = _852 - _879;\n highp vec3 _885 = (_880 * _880) * (vec3(3.0) - (_880 * 2.0));\n ivec3 _886 = ivec3(_879);\n uint _925 = (((uint(_886.x) * 2376512323u) + (uint(_886.y) * 3625334849u)) + (uint(_886.z) * 3407524639u)) + 2654435769u;\n uint _928 = (_925 ^ (_925 >> uint(15))) * 739982445u;\n uint _931 = (_928 ^ (_928 >> uint(12))) * 695872825u;\n ivec3 _888 = _886 + ivec3(1, 0, 0);\n uint _950 = (((uint(_888.x) * 2376512323u) + (uint(_888.y) * 3625334849u)) + (uint(_888.z) * 3407524639u)) + 2654435769u;\n uint _953 = (_950 ^ (_950 >> uint(15))) * 739982445u;\n uint _956 = (_953 ^ (_953 >> uint(12))) * 695872825u;\n ivec3 _890 = _886 + ivec3(0, 1, 0);\n uint _975 = (((uint(_890.x) * 2376512323u) + (uint(_890.y) * 3625334849u)) + (uint(_890.z) * 3407524639u)) + 2654435769u;\n uint _978 = (_975 ^ (_975 >> uint(15))) * 739982445u;\n uint _981 = (_978 ^ (_978 >> uint(12))) * 695872825u;\n ivec3 _892 = _886 + ivec3(1, 1, 0);\n uint _1000 = (((uint(_892.x) * 2376512323u) + (uint(_892.y) * 3625334849u)) + (uint(_892.z) * 3407524639u)) + 2654435769u;\n uint _1003 = (_1000 ^ (_1000 >> uint(15))) * 739982445u;\n uint _1006 = (_1003 ^ (_1003 >> uint(12))) * 695872825u;\n ivec3 _894 = _886 + ivec3(0, 0, 1);\n uint _1025 = (((uint(_894.x) * 2376512323u) + (uint(_894.y) * 3625334849u)) + (uint(_894.z) * 3407524639u)) + 2654435769u;\n uint _1028 = (_1025 ^ (_1025 >> uint(15))) * 739982445u;\n uint _1031 = (_1028 ^ (_1028 >> uint(12))) * 695872825u;\n ivec3 _896 = _886 + ivec3(1, 0, 1);\n uint _1050 = (((uint(_896.x) * 2376512323u) + (uint(_896.y) * 3625334849u)) + (uint(_896.z) * 3407524639u)) + 2654435769u;\n uint _1053 = (_1050 ^ (_1050 >> uint(15))) * 739982445u;\n uint _1056 = (_1053 ^ (_1053 >> uint(12))) * 695872825u;\n ivec3 _898 = _886 + ivec3(0, 1, 1);\n uint _1075 = (((uint(_898.x) * 2376512323u) + (uint(_898.y) * 3625334849u)) + (uint(_898.z) * 3407524639u)) + 2654435769u;\n uint _1078 = (_1075 ^ (_1075 >> uint(15))) * 739982445u;\n uint _1081 = (_1078 ^ (_1078 >> uint(12))) * 695872825u;\n ivec3 _900 = _886 + ivec3(1);\n uint _1100 = (((uint(_900.x) * 2376512323u) + (uint(_900.y) * 3625334849u)) + (uint(_900.z) * 3407524639u)) + 2654435769u;\n uint _1103 = (_1100 ^ (_1100 >> uint(15))) * 739982445u;\n uint _1106 = (_1103 ^ (_1103 >> uint(12))) * 695872825u;\n highp float _902 = _885.x;\n highp float _907 = _885.y;\n highp float _855 = (mix(mix(mix(float((_931 ^ (_931 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_956 ^ (_956 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _902), mix(float((_981 ^ (_981 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1006 ^ (_1006 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _902), _907), mix(mix(float((_1031 ^ (_1031 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1056 ^ (_1056 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _902), mix(float((_1081 ^ (_1081 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1106 ^ (_1106 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _902), _907), _885.z) * 2.0) - 1.0;\n _1377 = clamp(_1464 * (1.0 + (_855 * _1488)), vec3(0.0), vec3(1.0));\n _1378 = _1465;\n _1379 = clamp(_1466 + (_855 * _1487), 0.0, 1.0);\n _1380 = _1467;\n _1381 = _1468;\n break;\n } while(false);\n if (globalParams.u_colorSource == 3)\n {\n entryPointParam_fragmentMain = vec4(_1377, globalParams.u_opacity);\n break;\n }\n highp vec3 _371 = normalize(v2);\n highp vec3 _1118 = normalize(globalParams.u_viewPosition - v1);\n highp vec3 _1499 = _1377;\n highp float _1500 = _1378;\n highp float _1501 = _1379;\n highp float _1502 = _1380;\n highp vec3 _1503 = _1381;\n highp vec3 _1509 = globalParams.u_environmentSky;\n highp vec3 _1510 = globalParams.u_environmentGround;\n highp vec3 _1511 = globalParams.u_environmentUp;\n int _1119 = 0;\n highp vec3 _1120 = vec3(0.0);\n highp vec3 _1161;\n highp vec3 _1162;\n highp vec3 _1163;\n highp float _1164;\n for (;;)\n {\n if (!(_1119 < 4))\n {\n break;\n }\n if (_1119 < globalParams.u_lightCount)\n {\n do\n {\n bool _1169 = globalParams.u_lightPositions.data[_1119].w == 0.0;\n if (_1169)\n {\n _1162 = globalParams.u_lightPositions.data[_1119].xyz;\n }\n else\n {\n _1162 = globalParams.u_lightPositions.data[_1119].xyz - v1;\n }\n highp float _1178 = dot(_1162, _1162);\n if (_1169)\n {\n _1163 = normalize(globalParams.u_lightPositions.data[_1119].xyz);\n }\n else\n {\n _1163 = _1162 * inversesqrt(_1178);\n }\n if (_1169)\n {\n _1164 = 1.0;\n }\n else\n {\n _1164 = 1.0 / _1178;\n }\n highp float _1194 = dot(_371, _1163);\n if (_1194 <= 0.0)\n {\n _1161 = vec3(0.0);\n break;\n }\n highp vec3 _1199 = _1118 + _1163;\n highp float _1200 = dot(_1199, _1199);\n if (_1200 <= 9.9999999600419720025001879548654e-13)\n {\n _1161 = vec3(0.0);\n break;\n }\n highp vec3 _1205 = _1199 * inversesqrt(_1200);\n highp float _1207 = max(dot(_371, _1118), 0.0);\n highp float _1209 = max(dot(_371, _1205), 0.0);\n highp float _1214 = max(_1501, 0.039999999105930328369140625);\n highp vec3 _1246 = mix(vec3(0.039999999105930328369140625), _1499, vec3(_1500));\n highp float _1249 = _1214 * _1214;\n highp float _1250 = _1249 * _1249;\n highp float _1254 = ((_1209 * _1209) * (_1250 - 1.0)) + 1.0;\n highp float _1265 = _1214 + 1.0;\n highp float _1267 = (_1265 * _1265) * 0.125;\n highp float _1274 = _1214 + 1.0;\n highp float _1276 = (_1274 * _1274) * 0.125;\n highp vec3 _1289 = _1246 + ((vec3(1.0) - _1246) * pow(clamp(1.0 - max(dot(_1205, _1118), 0.0), 0.0, 1.0), 5.0));\n _1161 = ((((clamp((vec3(1.0) - _1289) * (1.0 - _1500), vec3(0.0), vec3(1.0)) * _1499) * vec3(0.3183098733425140380859375)) + ((_1289 * ((_1250 / ((3.1415927410125732421875 * _1254) * _1254)) * ((_1207 / ((_1207 * (1.0 - _1267)) + _1267)) * (_1194 / ((_1194 * (1.0 - _1276)) + _1276))))) / vec3(((4.0 * _1207) * _1194) + 9.9999997473787516355514526367188e-05))) * (globalParams.u_lightColors.data[_1119] * _1164)) * _1194;\n break;\n } while(false);\n _1120 += _1161;\n }\n _1119++;\n continue;\n }\n highp vec3 _1325 = mix(vec3(0.039999999105930328369140625), _1499, vec3(_1500));\n highp vec3 _1336 = _1325 + ((max(vec3(1.0 - max(_1501, 0.039999999105930328369140625)), _1325) - _1325) * pow(clamp(1.0 - max(dot(_371, _1118), 0.0), 0.0, 1.0), 5.0));\n highp vec3 _1159 = (((((clamp((vec3(1.0) - _1336) * (1.0 - _1500), vec3(0.0), vec3(1.0)) * mix(_1510, _1509, vec3((dot(_371, _1511) * 0.5) + 0.5))) * _1499) + (mix(_1510, _1509, vec3((dot(reflect(-_1118, _371), _1511) * 0.5) + 0.5)) * _1336)) * _1502) + _1120) + _1503;\n entryPointParam_fragmentMain = vec4(pow(_1159 / (_1159 + vec3(1.0)), vec3(0.454545438289642333984375)), globalParams.u_opacity);\n break;\n } while(false);\n}\n\n",
|
|
476
|
-
"sha256": "
|
|
526
|
+
"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 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;\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 vec3 v1;\n\nvoid main()\n{\n bool _765 = false;\n do\n {\n _765 = false;\n bool _766;\n do\n {\n int _767 = 0;\n for (;;)\n {\n if (!(_767 < 6))\n {\n break;\n }\n if (_767 >= globalParams.u_clipPlaneCount)\n {\n break;\n }\n if ((dot(globalParams.u_clipPlanes.data[_767].xyz, v0) + globalParams.u_clipPlanes.data[_767].w) < 0.0)\n {\n _765 = true;\n _766 = false;\n break;\n }\n _767++;\n continue;\n }\n if (_765)\n {\n break;\n }\n _765 = true;\n _766 = true;\n break;\n } while(false);\n if (!_766)\n {\n discard;\n }\n highp vec4 _817 = texture(SPIRV_Cross_Combinedu_materialPackedMapu_materialSampler, v4);\n highp vec3 _1464 = globalParams.u_materialBaseColor * texture(SPIRV_Cross_Combinedu_materialBaseColorMapu_materialSampler, v4).xyz;\n highp float _1465 = globalParams.u_materialMetallic * _817.z;\n highp float _1466 = globalParams.u_materialRoughness * _817.y;\n highp float _1467 = globalParams.u_materialOcclusion * _817.x;\n highp vec3 _1468 = globalParams.u_materialEmissive * texture(SPIRV_Cross_Combinedu_materialEmissiveMapu_materialSampler, v4).xyz;\n highp float _1486 = globalParams.u_surfaceFinishScale;\n highp float _1487 = globalParams.u_surfaceFinishRoughness;\n highp float _1488 = globalParams.u_surfaceFinishColor;\n highp vec3 _1377;\n highp float _1378;\n highp float _1379;\n highp float _1380;\n highp vec3 _1381;\n do\n {\n if (_1486 <= 0.0)\n {\n _1377 = _1464;\n _1378 = _1465;\n _1379 = _1466;\n _1380 = _1467;\n _1381 = _1468;\n break;\n }\n highp vec3 _852 = v3 / vec3(_1486);\n highp vec3 _879 = floor(_852);\n highp vec3 _880 = _852 - _879;\n highp vec3 _885 = (_880 * _880) * (vec3(3.0) - (_880 * 2.0));\n ivec3 _886 = ivec3(_879);\n uint _925 = (((uint(_886.x) * 2376512323u) + (uint(_886.y) * 3625334849u)) + (uint(_886.z) * 3407524639u)) + 2654435769u;\n uint _928 = (_925 ^ (_925 >> uint(15))) * 739982445u;\n uint _931 = (_928 ^ (_928 >> uint(12))) * 695872825u;\n ivec3 _888 = _886 + ivec3(1, 0, 0);\n uint _950 = (((uint(_888.x) * 2376512323u) + (uint(_888.y) * 3625334849u)) + (uint(_888.z) * 3407524639u)) + 2654435769u;\n uint _953 = (_950 ^ (_950 >> uint(15))) * 739982445u;\n uint _956 = (_953 ^ (_953 >> uint(12))) * 695872825u;\n ivec3 _890 = _886 + ivec3(0, 1, 0);\n uint _975 = (((uint(_890.x) * 2376512323u) + (uint(_890.y) * 3625334849u)) + (uint(_890.z) * 3407524639u)) + 2654435769u;\n uint _978 = (_975 ^ (_975 >> uint(15))) * 739982445u;\n uint _981 = (_978 ^ (_978 >> uint(12))) * 695872825u;\n ivec3 _892 = _886 + ivec3(1, 1, 0);\n uint _1000 = (((uint(_892.x) * 2376512323u) + (uint(_892.y) * 3625334849u)) + (uint(_892.z) * 3407524639u)) + 2654435769u;\n uint _1003 = (_1000 ^ (_1000 >> uint(15))) * 739982445u;\n uint _1006 = (_1003 ^ (_1003 >> uint(12))) * 695872825u;\n ivec3 _894 = _886 + ivec3(0, 0, 1);\n uint _1025 = (((uint(_894.x) * 2376512323u) + (uint(_894.y) * 3625334849u)) + (uint(_894.z) * 3407524639u)) + 2654435769u;\n uint _1028 = (_1025 ^ (_1025 >> uint(15))) * 739982445u;\n uint _1031 = (_1028 ^ (_1028 >> uint(12))) * 695872825u;\n ivec3 _896 = _886 + ivec3(1, 0, 1);\n uint _1050 = (((uint(_896.x) * 2376512323u) + (uint(_896.y) * 3625334849u)) + (uint(_896.z) * 3407524639u)) + 2654435769u;\n uint _1053 = (_1050 ^ (_1050 >> uint(15))) * 739982445u;\n uint _1056 = (_1053 ^ (_1053 >> uint(12))) * 695872825u;\n ivec3 _898 = _886 + ivec3(0, 1, 1);\n uint _1075 = (((uint(_898.x) * 2376512323u) + (uint(_898.y) * 3625334849u)) + (uint(_898.z) * 3407524639u)) + 2654435769u;\n uint _1078 = (_1075 ^ (_1075 >> uint(15))) * 739982445u;\n uint _1081 = (_1078 ^ (_1078 >> uint(12))) * 695872825u;\n ivec3 _900 = _886 + ivec3(1);\n uint _1100 = (((uint(_900.x) * 2376512323u) + (uint(_900.y) * 3625334849u)) + (uint(_900.z) * 3407524639u)) + 2654435769u;\n uint _1103 = (_1100 ^ (_1100 >> uint(15))) * 739982445u;\n uint _1106 = (_1103 ^ (_1103 >> uint(12))) * 695872825u;\n highp float _902 = _885.x;\n highp float _907 = _885.y;\n highp float _855 = (mix(mix(mix(float((_931 ^ (_931 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_956 ^ (_956 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _902), mix(float((_981 ^ (_981 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1006 ^ (_1006 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _902), _907), mix(mix(float((_1031 ^ (_1031 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1056 ^ (_1056 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _902), mix(float((_1081 ^ (_1081 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1106 ^ (_1106 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _902), _907), _885.z) * 2.0) - 1.0;\n _1377 = clamp(_1464 * (1.0 + (_855 * _1488)), vec3(0.0), vec3(1.0));\n _1378 = _1465;\n _1379 = clamp(_1466 + (_855 * _1487), 0.0, 1.0);\n _1380 = _1467;\n _1381 = _1468;\n break;\n } while(false);\n if (globalParams.u_colorSource == 3)\n {\n entryPointParam_fragmentMain = vec4(_1377, globalParams.u_opacity);\n break;\n }\n highp vec3 _370 = normalize(v2);\n highp vec3 _1118 = normalize(globalParams.u_viewPosition - v1);\n highp vec3 _1499 = _1377;\n highp float _1500 = _1378;\n highp float _1501 = _1379;\n highp float _1502 = _1380;\n highp vec3 _1503 = _1381;\n highp vec3 _1509 = globalParams.u_environmentSky;\n highp vec3 _1510 = globalParams.u_environmentGround;\n highp vec3 _1511 = globalParams.u_environmentUp;\n int _1119 = 0;\n highp vec3 _1120 = vec3(0.0);\n highp vec3 _1161;\n highp vec3 _1162;\n highp vec3 _1163;\n highp float _1164;\n for (;;)\n {\n if (!(_1119 < 4))\n {\n break;\n }\n if (_1119 < globalParams.u_lightCount)\n {\n do\n {\n bool _1169 = globalParams.u_lightPositions.data[_1119].w == 0.0;\n if (_1169)\n {\n _1162 = globalParams.u_lightPositions.data[_1119].xyz;\n }\n else\n {\n _1162 = globalParams.u_lightPositions.data[_1119].xyz - v1;\n }\n highp float _1178 = dot(_1162, _1162);\n if (_1169)\n {\n _1163 = normalize(globalParams.u_lightPositions.data[_1119].xyz);\n }\n else\n {\n _1163 = _1162 * inversesqrt(_1178);\n }\n if (_1169)\n {\n _1164 = 1.0;\n }\n else\n {\n _1164 = 1.0 / _1178;\n }\n highp float _1194 = dot(_370, _1163);\n if (_1194 <= 0.0)\n {\n _1161 = vec3(0.0);\n break;\n }\n highp vec3 _1199 = _1118 + _1163;\n highp float _1200 = dot(_1199, _1199);\n if (_1200 <= 9.9999999600419720025001879548654e-13)\n {\n _1161 = vec3(0.0);\n break;\n }\n highp vec3 _1205 = _1199 * inversesqrt(_1200);\n highp float _1207 = max(dot(_370, _1118), 0.0);\n highp float _1209 = max(dot(_370, _1205), 0.0);\n highp float _1214 = max(_1501, 0.039999999105930328369140625);\n highp vec3 _1246 = mix(vec3(0.039999999105930328369140625), _1499, vec3(_1500));\n highp float _1249 = _1214 * _1214;\n highp float _1250 = _1249 * _1249;\n highp float _1254 = ((_1209 * _1209) * (_1250 - 1.0)) + 1.0;\n highp float _1265 = _1214 + 1.0;\n highp float _1267 = (_1265 * _1265) * 0.125;\n highp float _1274 = _1214 + 1.0;\n highp float _1276 = (_1274 * _1274) * 0.125;\n highp vec3 _1289 = _1246 + ((vec3(1.0) - _1246) * pow(clamp(1.0 - max(dot(_1205, _1118), 0.0), 0.0, 1.0), 5.0));\n _1161 = ((((clamp((vec3(1.0) - _1289) * (1.0 - _1500), vec3(0.0), vec3(1.0)) * _1499) * vec3(0.3183098733425140380859375)) + ((_1289 * ((_1250 / ((3.1415927410125732421875 * _1254) * _1254)) * ((_1207 / ((_1207 * (1.0 - _1267)) + _1267)) * (_1194 / ((_1194 * (1.0 - _1276)) + _1276))))) / vec3(((4.0 * _1207) * _1194) + 9.9999997473787516355514526367188e-05))) * (globalParams.u_lightColors.data[_1119] * _1164)) * _1194;\n break;\n } while(false);\n _1120 += _1161;\n }\n _1119++;\n continue;\n }\n highp vec3 _1325 = mix(vec3(0.039999999105930328369140625), _1499, vec3(_1500));\n highp vec3 _1336 = _1325 + ((max(vec3(1.0 - max(_1501, 0.039999999105930328369140625)), _1325) - _1325) * pow(clamp(1.0 - max(dot(_370, _1118), 0.0), 0.0, 1.0), 5.0));\n highp vec3 _1159 = (((((clamp((vec3(1.0) - _1336) * (1.0 - _1500), vec3(0.0), vec3(1.0)) * mix(_1510, _1509, vec3((dot(_370, _1511) * 0.5) + 0.5))) * _1499) + (mix(_1510, _1509, vec3((dot(reflect(-_1118, _370), _1511) * 0.5) + 0.5)) * _1336)) * _1502) + _1120) + _1503;\n entryPointParam_fragmentMain = vec4(pow(_1159 / (_1159 + vec3(1.0)), vec3(0.454545438289642333984375)), globalParams.u_opacity);\n break;\n } while(false);\n}\n\n",
|
|
527
|
+
"sha256": "be48ac10c5a2d2d4402f88e70aed9096f45d6d479e6bcec94dfe2d5844e6e603"
|
|
477
528
|
}
|
|
478
529
|
}
|
|
479
530
|
}
|