@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",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"mask-lut-r8ui",
|
|
21
21
|
"transform",
|
|
22
22
|
"transform-lut-r32ui",
|
|
23
|
+
"transform-map-r16ui",
|
|
23
24
|
"clip"
|
|
24
25
|
],
|
|
25
26
|
"inputs": [
|
|
@@ -29,14 +30,9 @@
|
|
|
29
30
|
"semantic": "coordinates"
|
|
30
31
|
},
|
|
31
32
|
{
|
|
32
|
-
"name": "
|
|
33
|
+
"name": "a_atomId",
|
|
33
34
|
"type": "int",
|
|
34
|
-
"semantic": "
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"name": "a_componentId",
|
|
38
|
-
"type": "int",
|
|
39
|
-
"semantic": "component-id"
|
|
35
|
+
"semantic": "atom-id"
|
|
40
36
|
},
|
|
41
37
|
{
|
|
42
38
|
"name": "a_normal",
|
|
@@ -62,6 +58,10 @@
|
|
|
62
58
|
"name": "u_maskLutWidth",
|
|
63
59
|
"type": "int"
|
|
64
60
|
},
|
|
61
|
+
{
|
|
62
|
+
"name": "u_maskLutBase",
|
|
63
|
+
"type": "int"
|
|
64
|
+
},
|
|
65
65
|
{
|
|
66
66
|
"name": "u_transformLutWidth",
|
|
67
67
|
"type": "int"
|
|
@@ -70,6 +70,18 @@
|
|
|
70
70
|
"name": "u_transformLutStride",
|
|
71
71
|
"type": "int"
|
|
72
72
|
},
|
|
73
|
+
{
|
|
74
|
+
"name": "u_transformLutBase",
|
|
75
|
+
"type": "int"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "u_transformMapWidth",
|
|
79
|
+
"type": "int"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "u_transformMapBase",
|
|
83
|
+
"type": "int"
|
|
84
|
+
},
|
|
73
85
|
{
|
|
74
86
|
"name": "u_clipPlanes",
|
|
75
87
|
"type": "vec4[6]"
|
|
@@ -170,6 +182,12 @@
|
|
|
170
182
|
"type": "Texture2D<uint4>",
|
|
171
183
|
"format": "r32ui",
|
|
172
184
|
"semantic": "transform"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"name": "u_transformMap",
|
|
188
|
+
"type": "Texture2D<uint4>",
|
|
189
|
+
"format": "r16ui",
|
|
190
|
+
"semantic": "transform-map"
|
|
173
191
|
}
|
|
174
192
|
],
|
|
175
193
|
"textures": [
|
|
@@ -236,10 +254,10 @@
|
|
|
236
254
|
}
|
|
237
255
|
]
|
|
238
256
|
},
|
|
239
|
-
"contractSha256": "
|
|
257
|
+
"contractSha256": "ddce6c3cca5f405a8a0e71348a254c11885457453a429214872b107eab8b7b4e",
|
|
240
258
|
"languages": {
|
|
241
259
|
"glsl": {
|
|
242
|
-
"blockSize":
|
|
260
|
+
"blockSize": 576,
|
|
243
261
|
"layout": {
|
|
244
262
|
"u_mvpMatrix": {
|
|
245
263
|
"offset": 0,
|
|
@@ -273,128 +291,152 @@
|
|
|
273
291
|
"elementStride": 0,
|
|
274
292
|
"encoding": "int"
|
|
275
293
|
},
|
|
276
|
-
"
|
|
294
|
+
"u_maskLutBase": {
|
|
277
295
|
"offset": 160,
|
|
278
296
|
"size": 4,
|
|
279
297
|
"elementStride": 0,
|
|
280
298
|
"encoding": "int"
|
|
281
299
|
},
|
|
282
|
-
"
|
|
300
|
+
"u_transformLutWidth": {
|
|
283
301
|
"offset": 164,
|
|
284
302
|
"size": 4,
|
|
285
303
|
"elementStride": 0,
|
|
286
304
|
"encoding": "int"
|
|
287
305
|
},
|
|
288
|
-
"
|
|
306
|
+
"u_transformLutStride": {
|
|
307
|
+
"offset": 168,
|
|
308
|
+
"size": 4,
|
|
309
|
+
"elementStride": 0,
|
|
310
|
+
"encoding": "int"
|
|
311
|
+
},
|
|
312
|
+
"u_transformLutBase": {
|
|
313
|
+
"offset": 172,
|
|
314
|
+
"size": 4,
|
|
315
|
+
"elementStride": 0,
|
|
316
|
+
"encoding": "int"
|
|
317
|
+
},
|
|
318
|
+
"u_transformMapWidth": {
|
|
289
319
|
"offset": 176,
|
|
320
|
+
"size": 4,
|
|
321
|
+
"elementStride": 0,
|
|
322
|
+
"encoding": "int"
|
|
323
|
+
},
|
|
324
|
+
"u_transformMapBase": {
|
|
325
|
+
"offset": 180,
|
|
326
|
+
"size": 4,
|
|
327
|
+
"elementStride": 0,
|
|
328
|
+
"encoding": "int"
|
|
329
|
+
},
|
|
330
|
+
"u_clipPlanes": {
|
|
331
|
+
"offset": 192,
|
|
290
332
|
"size": 96,
|
|
291
333
|
"elementStride": 16,
|
|
292
334
|
"encoding": "vec4[]"
|
|
293
335
|
},
|
|
294
336
|
"u_clipPlaneCount": {
|
|
295
|
-
"offset":
|
|
337
|
+
"offset": 288,
|
|
296
338
|
"size": 4,
|
|
297
339
|
"elementStride": 0,
|
|
298
340
|
"encoding": "int"
|
|
299
341
|
},
|
|
300
342
|
"u_materialBaseColor": {
|
|
301
|
-
"offset":
|
|
343
|
+
"offset": 304,
|
|
302
344
|
"size": 12,
|
|
303
345
|
"elementStride": 4,
|
|
304
346
|
"encoding": "vec3"
|
|
305
347
|
},
|
|
306
348
|
"u_materialMetallic": {
|
|
307
|
-
"offset":
|
|
349
|
+
"offset": 316,
|
|
308
350
|
"size": 4,
|
|
309
351
|
"elementStride": 0,
|
|
310
352
|
"encoding": "float"
|
|
311
353
|
},
|
|
312
354
|
"u_materialRoughness": {
|
|
313
|
-
"offset":
|
|
355
|
+
"offset": 320,
|
|
314
356
|
"size": 4,
|
|
315
357
|
"elementStride": 0,
|
|
316
358
|
"encoding": "float"
|
|
317
359
|
},
|
|
318
360
|
"u_materialOcclusion": {
|
|
319
|
-
"offset":
|
|
361
|
+
"offset": 324,
|
|
320
362
|
"size": 4,
|
|
321
363
|
"elementStride": 0,
|
|
322
364
|
"encoding": "float"
|
|
323
365
|
},
|
|
324
366
|
"u_materialEmissive": {
|
|
325
|
-
"offset":
|
|
367
|
+
"offset": 336,
|
|
326
368
|
"size": 12,
|
|
327
369
|
"elementStride": 4,
|
|
328
370
|
"encoding": "vec3"
|
|
329
371
|
},
|
|
330
372
|
"u_viewPosition": {
|
|
331
|
-
"offset":
|
|
373
|
+
"offset": 352,
|
|
332
374
|
"size": 12,
|
|
333
375
|
"elementStride": 4,
|
|
334
376
|
"encoding": "vec3"
|
|
335
377
|
},
|
|
336
378
|
"u_environmentSky": {
|
|
337
|
-
"offset":
|
|
379
|
+
"offset": 368,
|
|
338
380
|
"size": 12,
|
|
339
381
|
"elementStride": 4,
|
|
340
382
|
"encoding": "vec3"
|
|
341
383
|
},
|
|
342
384
|
"u_environmentGround": {
|
|
343
|
-
"offset":
|
|
385
|
+
"offset": 384,
|
|
344
386
|
"size": 12,
|
|
345
387
|
"elementStride": 4,
|
|
346
388
|
"encoding": "vec3"
|
|
347
389
|
},
|
|
348
390
|
"u_environmentUp": {
|
|
349
|
-
"offset":
|
|
391
|
+
"offset": 400,
|
|
350
392
|
"size": 12,
|
|
351
393
|
"elementStride": 4,
|
|
352
394
|
"encoding": "vec3"
|
|
353
395
|
},
|
|
354
396
|
"u_lightPositions": {
|
|
355
|
-
"offset":
|
|
397
|
+
"offset": 416,
|
|
356
398
|
"size": 64,
|
|
357
399
|
"elementStride": 16,
|
|
358
400
|
"encoding": "vec4[]"
|
|
359
401
|
},
|
|
360
402
|
"u_lightColors": {
|
|
361
|
-
"offset":
|
|
403
|
+
"offset": 480,
|
|
362
404
|
"size": 64,
|
|
363
405
|
"elementStride": 16,
|
|
364
406
|
"encoding": "vec3[]"
|
|
365
407
|
},
|
|
366
408
|
"u_lightCount": {
|
|
367
|
-
"offset":
|
|
409
|
+
"offset": 544,
|
|
368
410
|
"size": 4,
|
|
369
411
|
"elementStride": 0,
|
|
370
412
|
"encoding": "int"
|
|
371
413
|
},
|
|
372
414
|
"u_surfaceFinishScale": {
|
|
373
|
-
"offset":
|
|
415
|
+
"offset": 548,
|
|
374
416
|
"size": 4,
|
|
375
417
|
"elementStride": 0,
|
|
376
418
|
"encoding": "float"
|
|
377
419
|
},
|
|
378
420
|
"u_surfaceFinishRoughness": {
|
|
379
|
-
"offset":
|
|
421
|
+
"offset": 552,
|
|
380
422
|
"size": 4,
|
|
381
423
|
"elementStride": 0,
|
|
382
424
|
"encoding": "float"
|
|
383
425
|
},
|
|
384
426
|
"u_surfaceFinishColor": {
|
|
385
|
-
"offset":
|
|
427
|
+
"offset": 556,
|
|
386
428
|
"size": 4,
|
|
387
429
|
"elementStride": 0,
|
|
388
430
|
"encoding": "float"
|
|
389
431
|
},
|
|
390
432
|
"u_colorSource": {
|
|
391
|
-
"offset":
|
|
433
|
+
"offset": 560,
|
|
392
434
|
"size": 4,
|
|
393
435
|
"elementStride": 0,
|
|
394
436
|
"encoding": "int"
|
|
395
437
|
},
|
|
396
438
|
"u_opacity": {
|
|
397
|
-
"offset":
|
|
439
|
+
"offset": 564,
|
|
398
440
|
"size": 4,
|
|
399
441
|
"elementStride": 0,
|
|
400
442
|
"encoding": "float"
|
|
@@ -419,6 +461,15 @@
|
|
|
419
461
|
"stage": "vertex",
|
|
420
462
|
"unit": 1
|
|
421
463
|
},
|
|
464
|
+
{
|
|
465
|
+
"semantic": "transform-map",
|
|
466
|
+
"texture": "u_transformMap",
|
|
467
|
+
"sampler": null,
|
|
468
|
+
"uniform": "SPIRV_Cross_Combinedu_transformMapSPIRV_Cross_DummySampler",
|
|
469
|
+
"component": "uint",
|
|
470
|
+
"stage": "vertex",
|
|
471
|
+
"unit": 2
|
|
472
|
+
},
|
|
422
473
|
{
|
|
423
474
|
"semantic": "base-color",
|
|
424
475
|
"texture": "u_materialBaseColorMap",
|
|
@@ -426,7 +477,7 @@
|
|
|
426
477
|
"uniform": "SPIRV_Cross_Combinedu_materialBaseColorMapu_materialSampler",
|
|
427
478
|
"component": "float",
|
|
428
479
|
"stage": "fragment",
|
|
429
|
-
"unit":
|
|
480
|
+
"unit": 3
|
|
430
481
|
},
|
|
431
482
|
{
|
|
432
483
|
"semantic": "emissive",
|
|
@@ -435,7 +486,7 @@
|
|
|
435
486
|
"uniform": "SPIRV_Cross_Combinedu_materialEmissiveMapu_materialSampler",
|
|
436
487
|
"component": "float",
|
|
437
488
|
"stage": "fragment",
|
|
438
|
-
"unit":
|
|
489
|
+
"unit": 4
|
|
439
490
|
},
|
|
440
491
|
{
|
|
441
492
|
"semantic": "occlusion-roughness-metallic",
|
|
@@ -444,17 +495,17 @@
|
|
|
444
495
|
"uniform": "SPIRV_Cross_Combinedu_materialPackedMapu_materialSampler",
|
|
445
496
|
"component": "float",
|
|
446
497
|
"stage": "fragment",
|
|
447
|
-
"unit":
|
|
498
|
+
"unit": 5
|
|
448
499
|
}
|
|
449
500
|
],
|
|
450
501
|
"stages": {
|
|
451
502
|
"vertex": {
|
|
452
|
-
"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 = 1) in int
|
|
453
|
-
"sha256": "
|
|
503
|
+
"source": "#version 300 es\nprecision highp float;\nprecision highp int;\n\nstruct _Array_std140_vector_float_4_6\n{\n vec4 data[6];\n};\n\nstruct _Array_std140_vector_float_4_4\n{\n vec4 data[4];\n};\n\nstruct _Array_std140_vector_float_3_4\n{\n vec3 data[4];\n};\n\nlayout(std140) uniform GlobalParams_std140\n{\n layout(row_major) mat4 u_mvpMatrix;\n layout(row_major) mat4 u_modelViewMatrix;\n vec3 u_deformScale;\n vec3 u_deformRotationCenter;\n int u_maskLutWidth;\n int u_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 = 1) 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 = 2) in vec3 a_normal;\nlayout(location = 3) 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 _395 = globalParams.u_maskLutBase + a_atomId;\n if (!(texelFetch(SPIRV_Cross_Combinedu_maskLutSPIRV_Cross_DummySampler, ivec2(_395 - globalParams.u_maskLutWidth * (_395 / globalParams.u_maskLutWidth), _395 / 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 int _519 = globalParams.u_transformMapBase + a_atomId;\n int _527 = int(texelFetch(SPIRV_Cross_Combinedu_transformMapSPIRV_Cross_DummySampler, ivec2(_519 - globalParams.u_transformMapWidth * (_519 / globalParams.u_transformMapWidth), _519 / globalParams.u_transformMapWidth), 0).x);\n int _531 = (globalParams.u_transformLutBase + _527) * globalParams.u_transformLutStride;\n vec3 _421;\n vec3 _422;\n if (texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_531 - globalParams.u_transformLutWidth * (_531 / globalParams.u_transformLutWidth), _531 / globalParams.u_transformLutWidth), 0).x != 0u)\n {\n int _547 = ((globalParams.u_transformLutBase + _527) * globalParams.u_transformLutStride) + 1;\n int _559 = ((globalParams.u_transformLutBase + _527) * globalParams.u_transformLutStride) + 2;\n int _571 = ((globalParams.u_transformLutBase + _527) * globalParams.u_transformLutStride) + 3;\n int _589 = ((globalParams.u_transformLutBase + _527) * globalParams.u_transformLutStride) + 4;\n int _601 = ((globalParams.u_transformLutBase + _527) * globalParams.u_transformLutStride) + 5;\n int _613 = ((globalParams.u_transformLutBase + _527) * globalParams.u_transformLutStride) + 6;\n int _625 = ((globalParams.u_transformLutBase + _527) * globalParams.u_transformLutStride) + 7;\n vec4 _639 = vec4(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_589 - globalParams.u_transformLutWidth * (_589 / globalParams.u_transformLutWidth), _589 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_601 - globalParams.u_transformLutWidth * (_601 / globalParams.u_transformLutWidth), _601 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_613 - globalParams.u_transformLutWidth * (_613 / globalParams.u_transformLutWidth), _613 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_625 - globalParams.u_transformLutWidth * (_625 / globalParams.u_transformLutWidth), _625 / globalParams.u_transformLutWidth), 0).x));\n int _644 = ((globalParams.u_transformLutBase + _527) * globalParams.u_transformLutStride) + 8;\n int _656 = ((globalParams.u_transformLutBase + _527) * globalParams.u_transformLutStride) + 9;\n int _668 = ((globalParams.u_transformLutBase + _527) * globalParams.u_transformLutStride) + 10;\n vec3 _681 = vec3(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_644 - globalParams.u_transformLutWidth * (_644 / globalParams.u_transformLutWidth), _644 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_656 - globalParams.u_transformLutWidth * (_656 / globalParams.u_transformLutWidth), _656 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_668 - globalParams.u_transformLutWidth * (_668 / globalParams.u_transformLutWidth), _668 / globalParams.u_transformLutWidth), 0).x));\n vec3 _684 = _681 * a_position;\n vec3 _689 = _639.xyz;\n vec3 _691 = cross(_689, _684) * 2.0;\n vec3 _699 = a_normal / _681;\n vec3 _704 = _639.xyz;\n vec3 _706 = cross(_704, _699) * 2.0;\n _421 = ((_684 + (_691 * _639.w)) + cross(_689, _691)) + vec3(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_547 - globalParams.u_transformLutWidth * (_547 / globalParams.u_transformLutWidth), _547 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_559 - globalParams.u_transformLutWidth * (_559 / globalParams.u_transformLutWidth), _559 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_571 - globalParams.u_transformLutWidth * (_571 / globalParams.u_transformLutWidth), _571 / globalParams.u_transformLutWidth), 0).x));\n _422 = normalize((_699 + (_706 * _639.w)) + cross(_704, _706));\n }\n else\n {\n _421 = a_position;\n _422 = a_normal;\n }\n vec4 _500 = vec4(_421, 1.0);\n gl_Position = _500 * spvWorkaroundRowMajor(globalParams.u_mvpMatrix);\n v0 = _421;\n v1 = (_500 * spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)).xyz;\n v2 = _422 * 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",
|
|
504
|
+
"sha256": "40bb6fa3f983b3fc00053af7b01e83f3928fe07084994bdeb378222fba97a823"
|
|
454
505
|
},
|
|
455
506
|
"fragment": {
|
|
456
|
-
"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",
|
|
457
|
-
"sha256": "
|
|
507
|
+
"source": "#version 300 es\nprecision highp float;\nprecision highp int;\n\nstruct _Array_std140_vector_float_4_6\n{\n highp vec4 data[6];\n};\n\nstruct _Array_std140_vector_float_4_4\n{\n highp vec4 data[4];\n};\n\nstruct _Array_std140_vector_float_3_4\n{\n highp vec3 data[4];\n};\n\nlayout(std140) uniform GlobalParams_std140\n{\n layout(row_major) highp mat4 u_mvpMatrix;\n layout(row_major) highp mat4 u_modelViewMatrix;\n highp vec3 u_deformScale;\n highp vec3 u_deformRotationCenter;\n int u_maskLutWidth;\n int u_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",
|
|
508
|
+
"sha256": "be48ac10c5a2d2d4402f88e70aed9096f45d6d479e6bcec94dfe2d5844e6e603"
|
|
458
509
|
}
|
|
459
510
|
}
|
|
460
511
|
}
|