@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",
|
|
@@ -72,6 +68,10 @@
|
|
|
72
68
|
"name": "u_maskLutWidth",
|
|
73
69
|
"type": "int"
|
|
74
70
|
},
|
|
71
|
+
{
|
|
72
|
+
"name": "u_maskLutBase",
|
|
73
|
+
"type": "int"
|
|
74
|
+
},
|
|
75
75
|
{
|
|
76
76
|
"name": "u_transformLutWidth",
|
|
77
77
|
"type": "int"
|
|
@@ -80,6 +80,18 @@
|
|
|
80
80
|
"name": "u_transformLutStride",
|
|
81
81
|
"type": "int"
|
|
82
82
|
},
|
|
83
|
+
{
|
|
84
|
+
"name": "u_transformLutBase",
|
|
85
|
+
"type": "int"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "u_transformMapWidth",
|
|
89
|
+
"type": "int"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "u_transformMapBase",
|
|
93
|
+
"type": "int"
|
|
94
|
+
},
|
|
83
95
|
{
|
|
84
96
|
"name": "u_clipPlanes",
|
|
85
97
|
"type": "vec4[6]"
|
|
@@ -180,6 +192,12 @@
|
|
|
180
192
|
"type": "Texture2D<uint4>",
|
|
181
193
|
"format": "r32ui",
|
|
182
194
|
"semantic": "transform"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"name": "u_transformMap",
|
|
198
|
+
"type": "Texture2D<uint4>",
|
|
199
|
+
"format": "r16ui",
|
|
200
|
+
"semantic": "transform-map"
|
|
183
201
|
}
|
|
184
202
|
],
|
|
185
203
|
"textures": [
|
|
@@ -246,10 +264,10 @@
|
|
|
246
264
|
}
|
|
247
265
|
]
|
|
248
266
|
},
|
|
249
|
-
"contractSha256": "
|
|
267
|
+
"contractSha256": "d5189b4c767ca1039739e7b90d3cb4899e0fcb816d026663e6b86d111a66d61c",
|
|
250
268
|
"languages": {
|
|
251
269
|
"glsl": {
|
|
252
|
-
"blockSize":
|
|
270
|
+
"blockSize": 576,
|
|
253
271
|
"layout": {
|
|
254
272
|
"u_mvpMatrix": {
|
|
255
273
|
"offset": 0,
|
|
@@ -283,128 +301,152 @@
|
|
|
283
301
|
"elementStride": 0,
|
|
284
302
|
"encoding": "int"
|
|
285
303
|
},
|
|
286
|
-
"
|
|
304
|
+
"u_maskLutBase": {
|
|
287
305
|
"offset": 160,
|
|
288
306
|
"size": 4,
|
|
289
307
|
"elementStride": 0,
|
|
290
308
|
"encoding": "int"
|
|
291
309
|
},
|
|
292
|
-
"
|
|
310
|
+
"u_transformLutWidth": {
|
|
293
311
|
"offset": 164,
|
|
294
312
|
"size": 4,
|
|
295
313
|
"elementStride": 0,
|
|
296
314
|
"encoding": "int"
|
|
297
315
|
},
|
|
298
|
-
"
|
|
316
|
+
"u_transformLutStride": {
|
|
317
|
+
"offset": 168,
|
|
318
|
+
"size": 4,
|
|
319
|
+
"elementStride": 0,
|
|
320
|
+
"encoding": "int"
|
|
321
|
+
},
|
|
322
|
+
"u_transformLutBase": {
|
|
323
|
+
"offset": 172,
|
|
324
|
+
"size": 4,
|
|
325
|
+
"elementStride": 0,
|
|
326
|
+
"encoding": "int"
|
|
327
|
+
},
|
|
328
|
+
"u_transformMapWidth": {
|
|
299
329
|
"offset": 176,
|
|
330
|
+
"size": 4,
|
|
331
|
+
"elementStride": 0,
|
|
332
|
+
"encoding": "int"
|
|
333
|
+
},
|
|
334
|
+
"u_transformMapBase": {
|
|
335
|
+
"offset": 180,
|
|
336
|
+
"size": 4,
|
|
337
|
+
"elementStride": 0,
|
|
338
|
+
"encoding": "int"
|
|
339
|
+
},
|
|
340
|
+
"u_clipPlanes": {
|
|
341
|
+
"offset": 192,
|
|
300
342
|
"size": 96,
|
|
301
343
|
"elementStride": 16,
|
|
302
344
|
"encoding": "vec4[]"
|
|
303
345
|
},
|
|
304
346
|
"u_clipPlaneCount": {
|
|
305
|
-
"offset":
|
|
347
|
+
"offset": 288,
|
|
306
348
|
"size": 4,
|
|
307
349
|
"elementStride": 0,
|
|
308
350
|
"encoding": "int"
|
|
309
351
|
},
|
|
310
352
|
"u_materialBaseColor": {
|
|
311
|
-
"offset":
|
|
353
|
+
"offset": 304,
|
|
312
354
|
"size": 12,
|
|
313
355
|
"elementStride": 4,
|
|
314
356
|
"encoding": "vec3"
|
|
315
357
|
},
|
|
316
358
|
"u_materialMetallic": {
|
|
317
|
-
"offset":
|
|
359
|
+
"offset": 316,
|
|
318
360
|
"size": 4,
|
|
319
361
|
"elementStride": 0,
|
|
320
362
|
"encoding": "float"
|
|
321
363
|
},
|
|
322
364
|
"u_materialRoughness": {
|
|
323
|
-
"offset":
|
|
365
|
+
"offset": 320,
|
|
324
366
|
"size": 4,
|
|
325
367
|
"elementStride": 0,
|
|
326
368
|
"encoding": "float"
|
|
327
369
|
},
|
|
328
370
|
"u_materialOcclusion": {
|
|
329
|
-
"offset":
|
|
371
|
+
"offset": 324,
|
|
330
372
|
"size": 4,
|
|
331
373
|
"elementStride": 0,
|
|
332
374
|
"encoding": "float"
|
|
333
375
|
},
|
|
334
376
|
"u_materialEmissive": {
|
|
335
|
-
"offset":
|
|
377
|
+
"offset": 336,
|
|
336
378
|
"size": 12,
|
|
337
379
|
"elementStride": 4,
|
|
338
380
|
"encoding": "vec3"
|
|
339
381
|
},
|
|
340
382
|
"u_viewPosition": {
|
|
341
|
-
"offset":
|
|
383
|
+
"offset": 352,
|
|
342
384
|
"size": 12,
|
|
343
385
|
"elementStride": 4,
|
|
344
386
|
"encoding": "vec3"
|
|
345
387
|
},
|
|
346
388
|
"u_environmentSky": {
|
|
347
|
-
"offset":
|
|
389
|
+
"offset": 368,
|
|
348
390
|
"size": 12,
|
|
349
391
|
"elementStride": 4,
|
|
350
392
|
"encoding": "vec3"
|
|
351
393
|
},
|
|
352
394
|
"u_environmentGround": {
|
|
353
|
-
"offset":
|
|
395
|
+
"offset": 384,
|
|
354
396
|
"size": 12,
|
|
355
397
|
"elementStride": 4,
|
|
356
398
|
"encoding": "vec3"
|
|
357
399
|
},
|
|
358
400
|
"u_environmentUp": {
|
|
359
|
-
"offset":
|
|
401
|
+
"offset": 400,
|
|
360
402
|
"size": 12,
|
|
361
403
|
"elementStride": 4,
|
|
362
404
|
"encoding": "vec3"
|
|
363
405
|
},
|
|
364
406
|
"u_lightPositions": {
|
|
365
|
-
"offset":
|
|
407
|
+
"offset": 416,
|
|
366
408
|
"size": 64,
|
|
367
409
|
"elementStride": 16,
|
|
368
410
|
"encoding": "vec4[]"
|
|
369
411
|
},
|
|
370
412
|
"u_lightColors": {
|
|
371
|
-
"offset":
|
|
413
|
+
"offset": 480,
|
|
372
414
|
"size": 64,
|
|
373
415
|
"elementStride": 16,
|
|
374
416
|
"encoding": "vec3[]"
|
|
375
417
|
},
|
|
376
418
|
"u_lightCount": {
|
|
377
|
-
"offset":
|
|
419
|
+
"offset": 544,
|
|
378
420
|
"size": 4,
|
|
379
421
|
"elementStride": 0,
|
|
380
422
|
"encoding": "int"
|
|
381
423
|
},
|
|
382
424
|
"u_surfaceFinishScale": {
|
|
383
|
-
"offset":
|
|
425
|
+
"offset": 548,
|
|
384
426
|
"size": 4,
|
|
385
427
|
"elementStride": 0,
|
|
386
428
|
"encoding": "float"
|
|
387
429
|
},
|
|
388
430
|
"u_surfaceFinishRoughness": {
|
|
389
|
-
"offset":
|
|
431
|
+
"offset": 552,
|
|
390
432
|
"size": 4,
|
|
391
433
|
"elementStride": 0,
|
|
392
434
|
"encoding": "float"
|
|
393
435
|
},
|
|
394
436
|
"u_surfaceFinishColor": {
|
|
395
|
-
"offset":
|
|
437
|
+
"offset": 556,
|
|
396
438
|
"size": 4,
|
|
397
439
|
"elementStride": 0,
|
|
398
440
|
"encoding": "float"
|
|
399
441
|
},
|
|
400
442
|
"u_colorSource": {
|
|
401
|
-
"offset":
|
|
443
|
+
"offset": 560,
|
|
402
444
|
"size": 4,
|
|
403
445
|
"elementStride": 0,
|
|
404
446
|
"encoding": "int"
|
|
405
447
|
},
|
|
406
448
|
"u_opacity": {
|
|
407
|
-
"offset":
|
|
449
|
+
"offset": 564,
|
|
408
450
|
"size": 4,
|
|
409
451
|
"elementStride": 0,
|
|
410
452
|
"encoding": "float"
|
|
@@ -429,6 +471,15 @@
|
|
|
429
471
|
"stage": "vertex",
|
|
430
472
|
"unit": 1
|
|
431
473
|
},
|
|
474
|
+
{
|
|
475
|
+
"semantic": "transform-map",
|
|
476
|
+
"texture": "u_transformMap",
|
|
477
|
+
"sampler": null,
|
|
478
|
+
"uniform": "SPIRV_Cross_Combinedu_transformMapSPIRV_Cross_DummySampler",
|
|
479
|
+
"component": "uint",
|
|
480
|
+
"stage": "vertex",
|
|
481
|
+
"unit": 2
|
|
482
|
+
},
|
|
432
483
|
{
|
|
433
484
|
"semantic": "base-color",
|
|
434
485
|
"texture": "u_materialBaseColorMap",
|
|
@@ -436,7 +487,7 @@
|
|
|
436
487
|
"uniform": "SPIRV_Cross_Combinedu_materialBaseColorMapu_materialSampler",
|
|
437
488
|
"component": "float",
|
|
438
489
|
"stage": "fragment",
|
|
439
|
-
"unit":
|
|
490
|
+
"unit": 3
|
|
440
491
|
},
|
|
441
492
|
{
|
|
442
493
|
"semantic": "emissive",
|
|
@@ -445,7 +496,7 @@
|
|
|
445
496
|
"uniform": "SPIRV_Cross_Combinedu_materialEmissiveMapu_materialSampler",
|
|
446
497
|
"component": "float",
|
|
447
498
|
"stage": "fragment",
|
|
448
|
-
"unit":
|
|
499
|
+
"unit": 4
|
|
449
500
|
},
|
|
450
501
|
{
|
|
451
502
|
"semantic": "occlusion-roughness-metallic",
|
|
@@ -454,17 +505,17 @@
|
|
|
454
505
|
"uniform": "SPIRV_Cross_Combinedu_materialPackedMapu_materialSampler",
|
|
455
506
|
"component": "float",
|
|
456
507
|
"stage": "fragment",
|
|
457
|
-
"unit":
|
|
508
|
+
"unit": 5
|
|
458
509
|
}
|
|
459
510
|
],
|
|
460
511
|
"stages": {
|
|
461
512
|
"vertex": {
|
|
462
|
-
"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 = 2) in int
|
|
463
|
-
"sha256": "
|
|
513
|
+
"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 = 2) 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 = 3) in vec3 a_normal;\nlayout(location = 4) 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 _410 = globalParams.u_maskLutBase + a_atomId;\n if (!(texelFetch(SPIRV_Cross_Combinedu_maskLutSPIRV_Cross_DummySampler, ivec2(_410 - globalParams.u_maskLutWidth * (_410 / globalParams.u_maskLutWidth), _410 / 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 _439 = a_position + (globalParams.u_deformScale * a_deformation);\n int _538 = globalParams.u_transformMapBase + a_atomId;\n int _546 = int(texelFetch(SPIRV_Cross_Combinedu_transformMapSPIRV_Cross_DummySampler, ivec2(_538 - globalParams.u_transformMapWidth * (_538 / globalParams.u_transformMapWidth), _538 / globalParams.u_transformMapWidth), 0).x);\n int _550 = (globalParams.u_transformLutBase + _546) * globalParams.u_transformLutStride;\n vec3 _440;\n vec3 _441;\n if (texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_550 - globalParams.u_transformLutWidth * (_550 / globalParams.u_transformLutWidth), _550 / globalParams.u_transformLutWidth), 0).x != 0u)\n {\n int _566 = ((globalParams.u_transformLutBase + _546) * globalParams.u_transformLutStride) + 1;\n int _578 = ((globalParams.u_transformLutBase + _546) * globalParams.u_transformLutStride) + 2;\n int _590 = ((globalParams.u_transformLutBase + _546) * globalParams.u_transformLutStride) + 3;\n int _608 = ((globalParams.u_transformLutBase + _546) * globalParams.u_transformLutStride) + 4;\n int _620 = ((globalParams.u_transformLutBase + _546) * globalParams.u_transformLutStride) + 5;\n int _632 = ((globalParams.u_transformLutBase + _546) * globalParams.u_transformLutStride) + 6;\n int _644 = ((globalParams.u_transformLutBase + _546) * globalParams.u_transformLutStride) + 7;\n vec4 _658 = vec4(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_608 - globalParams.u_transformLutWidth * (_608 / globalParams.u_transformLutWidth), _608 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_620 - globalParams.u_transformLutWidth * (_620 / globalParams.u_transformLutWidth), _620 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_632 - globalParams.u_transformLutWidth * (_632 / globalParams.u_transformLutWidth), _632 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_644 - globalParams.u_transformLutWidth * (_644 / globalParams.u_transformLutWidth), _644 / globalParams.u_transformLutWidth), 0).x));\n int _663 = ((globalParams.u_transformLutBase + _546) * globalParams.u_transformLutStride) + 8;\n int _675 = ((globalParams.u_transformLutBase + _546) * globalParams.u_transformLutStride) + 9;\n int _687 = ((globalParams.u_transformLutBase + _546) * globalParams.u_transformLutStride) + 10;\n vec3 _700 = vec3(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_663 - globalParams.u_transformLutWidth * (_663 / globalParams.u_transformLutWidth), _663 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_675 - globalParams.u_transformLutWidth * (_675 / globalParams.u_transformLutWidth), _675 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_687 - globalParams.u_transformLutWidth * (_687 / globalParams.u_transformLutWidth), _687 / globalParams.u_transformLutWidth), 0).x));\n vec3 _703 = _700 * _439;\n vec3 _708 = _658.xyz;\n vec3 _710 = cross(_708, _703) * 2.0;\n vec3 _718 = a_normal / _700;\n vec3 _723 = _658.xyz;\n vec3 _725 = cross(_723, _718) * 2.0;\n _440 = ((_703 + (_710 * _658.w)) + cross(_708, _710)) + vec3(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_566 - globalParams.u_transformLutWidth * (_566 / globalParams.u_transformLutWidth), _566 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_578 - globalParams.u_transformLutWidth * (_578 / globalParams.u_transformLutWidth), _578 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_590 - globalParams.u_transformLutWidth * (_590 / globalParams.u_transformLutWidth), _590 / globalParams.u_transformLutWidth), 0).x));\n _441 = normalize((_718 + (_725 * _658.w)) + cross(_723, _725));\n }\n else\n {\n _440 = _439;\n _441 = a_normal;\n }\n vec4 _519 = vec4(_440, 1.0);\n gl_Position = _519 * spvWorkaroundRowMajor(globalParams.u_mvpMatrix);\n v0 = _440;\n v1 = (_519 * spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)).xyz;\n v2 = _441 * 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",
|
|
514
|
+
"sha256": "f4619a4323bd855bd711e231ea35a5f1f677673564c77f12a24407e1cb5f362f"
|
|
464
515
|
},
|
|
465
516
|
"fragment": {
|
|
466
|
-
"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",
|
|
467
|
-
"sha256": "
|
|
517
|
+
"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",
|
|
518
|
+
"sha256": "be48ac10c5a2d2d4402f88e70aed9096f45d6d479e6bcec94dfe2d5844e6e603"
|
|
468
519
|
}
|
|
469
520
|
}
|
|
470
521
|
}
|