@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",
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"id": "deform6.surface.capped",
|
|
15
15
|
"capabilities": [
|
|
16
16
|
"deform6",
|
|
17
|
+
"material-map-r16ui",
|
|
17
18
|
"material",
|
|
18
19
|
"material-table",
|
|
19
20
|
"material-surface-finish",
|
|
@@ -22,6 +23,7 @@
|
|
|
22
23
|
"mask-lut-r8ui",
|
|
23
24
|
"transform",
|
|
24
25
|
"transform-lut-r32ui",
|
|
26
|
+
"transform-map-r16ui",
|
|
25
27
|
"clip"
|
|
26
28
|
],
|
|
27
29
|
"inputs": [
|
|
@@ -41,25 +43,15 @@
|
|
|
41
43
|
"semantic": "rotation"
|
|
42
44
|
},
|
|
43
45
|
{
|
|
44
|
-
"name": "
|
|
46
|
+
"name": "a_atomId",
|
|
45
47
|
"type": "int",
|
|
46
|
-
"semantic": "
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"name": "a_componentId",
|
|
50
|
-
"type": "int",
|
|
51
|
-
"semantic": "component-id"
|
|
48
|
+
"semantic": "atom-id"
|
|
52
49
|
},
|
|
53
50
|
{
|
|
54
51
|
"name": "a_normal",
|
|
55
52
|
"type": "vec3",
|
|
56
53
|
"semantic": "normal"
|
|
57
54
|
},
|
|
58
|
-
{
|
|
59
|
-
"name": "a_materialId",
|
|
60
|
-
"type": "int",
|
|
61
|
-
"semantic": "material-id"
|
|
62
|
-
},
|
|
63
55
|
{
|
|
64
56
|
"name": "a_capEnabled",
|
|
65
57
|
"type": "int",
|
|
@@ -87,6 +79,10 @@
|
|
|
87
79
|
"name": "u_maskLutWidth",
|
|
88
80
|
"type": "int"
|
|
89
81
|
},
|
|
82
|
+
{
|
|
83
|
+
"name": "u_maskLutBase",
|
|
84
|
+
"type": "int"
|
|
85
|
+
},
|
|
90
86
|
{
|
|
91
87
|
"name": "u_transformLutWidth",
|
|
92
88
|
"type": "int"
|
|
@@ -95,6 +91,18 @@
|
|
|
95
91
|
"name": "u_transformLutStride",
|
|
96
92
|
"type": "int"
|
|
97
93
|
},
|
|
94
|
+
{
|
|
95
|
+
"name": "u_transformLutBase",
|
|
96
|
+
"type": "int"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "u_transformMapWidth",
|
|
100
|
+
"type": "int"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "u_transformMapBase",
|
|
104
|
+
"type": "int"
|
|
105
|
+
},
|
|
98
106
|
{
|
|
99
107
|
"name": "u_clipPlanes",
|
|
100
108
|
"type": "vec4[6]"
|
|
@@ -103,6 +111,14 @@
|
|
|
103
111
|
"name": "u_clipPlaneCount",
|
|
104
112
|
"type": "int"
|
|
105
113
|
},
|
|
114
|
+
{
|
|
115
|
+
"name": "u_materialMapWidth",
|
|
116
|
+
"type": "int"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "u_materialMapBase",
|
|
120
|
+
"type": "int"
|
|
121
|
+
},
|
|
106
122
|
{
|
|
107
123
|
"name": "u_viewPosition",
|
|
108
124
|
"type": "vec3"
|
|
@@ -184,6 +200,18 @@
|
|
|
184
200
|
"format": "r32ui",
|
|
185
201
|
"semantic": "transform"
|
|
186
202
|
},
|
|
203
|
+
{
|
|
204
|
+
"name": "u_transformMap",
|
|
205
|
+
"type": "Texture2D<uint4>",
|
|
206
|
+
"format": "r16ui",
|
|
207
|
+
"semantic": "transform-map"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"name": "u_materialMap",
|
|
211
|
+
"type": "Texture2D<uint4>",
|
|
212
|
+
"format": "r16ui",
|
|
213
|
+
"semantic": "material-map"
|
|
214
|
+
},
|
|
187
215
|
{
|
|
188
216
|
"name": "u_materialTable",
|
|
189
217
|
"type": "Texture2D<float4>",
|
|
@@ -194,10 +222,10 @@
|
|
|
194
222
|
"textures": [],
|
|
195
223
|
"samplers": []
|
|
196
224
|
},
|
|
197
|
-
"contractSha256": "
|
|
225
|
+
"contractSha256": "50e6a0351582cfa346ef8025b1e7d7073b872f4861d9a5f32c92ace87d5af61c",
|
|
198
226
|
"languages": {
|
|
199
227
|
"glsl": {
|
|
200
|
-
"blockSize":
|
|
228
|
+
"blockSize": 560,
|
|
201
229
|
"layout": {
|
|
202
230
|
"u_mvpMatrix": {
|
|
203
231
|
"offset": 0,
|
|
@@ -231,110 +259,146 @@
|
|
|
231
259
|
"elementStride": 0,
|
|
232
260
|
"encoding": "int"
|
|
233
261
|
},
|
|
234
|
-
"
|
|
262
|
+
"u_maskLutBase": {
|
|
235
263
|
"offset": 160,
|
|
236
264
|
"size": 4,
|
|
237
265
|
"elementStride": 0,
|
|
238
266
|
"encoding": "int"
|
|
239
267
|
},
|
|
240
|
-
"
|
|
268
|
+
"u_transformLutWidth": {
|
|
241
269
|
"offset": 164,
|
|
242
270
|
"size": 4,
|
|
243
271
|
"elementStride": 0,
|
|
244
272
|
"encoding": "int"
|
|
245
273
|
},
|
|
246
|
-
"
|
|
274
|
+
"u_transformLutStride": {
|
|
275
|
+
"offset": 168,
|
|
276
|
+
"size": 4,
|
|
277
|
+
"elementStride": 0,
|
|
278
|
+
"encoding": "int"
|
|
279
|
+
},
|
|
280
|
+
"u_transformLutBase": {
|
|
281
|
+
"offset": 172,
|
|
282
|
+
"size": 4,
|
|
283
|
+
"elementStride": 0,
|
|
284
|
+
"encoding": "int"
|
|
285
|
+
},
|
|
286
|
+
"u_transformMapWidth": {
|
|
247
287
|
"offset": 176,
|
|
288
|
+
"size": 4,
|
|
289
|
+
"elementStride": 0,
|
|
290
|
+
"encoding": "int"
|
|
291
|
+
},
|
|
292
|
+
"u_transformMapBase": {
|
|
293
|
+
"offset": 180,
|
|
294
|
+
"size": 4,
|
|
295
|
+
"elementStride": 0,
|
|
296
|
+
"encoding": "int"
|
|
297
|
+
},
|
|
298
|
+
"u_clipPlanes": {
|
|
299
|
+
"offset": 192,
|
|
248
300
|
"size": 96,
|
|
249
301
|
"elementStride": 16,
|
|
250
302
|
"encoding": "vec4[]"
|
|
251
303
|
},
|
|
252
304
|
"u_clipPlaneCount": {
|
|
253
|
-
"offset":
|
|
305
|
+
"offset": 288,
|
|
306
|
+
"size": 4,
|
|
307
|
+
"elementStride": 0,
|
|
308
|
+
"encoding": "int"
|
|
309
|
+
},
|
|
310
|
+
"u_materialMapWidth": {
|
|
311
|
+
"offset": 292,
|
|
312
|
+
"size": 4,
|
|
313
|
+
"elementStride": 0,
|
|
314
|
+
"encoding": "int"
|
|
315
|
+
},
|
|
316
|
+
"u_materialMapBase": {
|
|
317
|
+
"offset": 296,
|
|
254
318
|
"size": 4,
|
|
255
319
|
"elementStride": 0,
|
|
256
320
|
"encoding": "int"
|
|
257
321
|
},
|
|
258
322
|
"u_viewPosition": {
|
|
259
|
-
"offset":
|
|
323
|
+
"offset": 304,
|
|
260
324
|
"size": 12,
|
|
261
325
|
"elementStride": 4,
|
|
262
326
|
"encoding": "vec3"
|
|
263
327
|
},
|
|
264
328
|
"u_environmentSky": {
|
|
265
|
-
"offset":
|
|
329
|
+
"offset": 320,
|
|
266
330
|
"size": 12,
|
|
267
331
|
"elementStride": 4,
|
|
268
332
|
"encoding": "vec3"
|
|
269
333
|
},
|
|
270
334
|
"u_environmentGround": {
|
|
271
|
-
"offset":
|
|
335
|
+
"offset": 336,
|
|
272
336
|
"size": 12,
|
|
273
337
|
"elementStride": 4,
|
|
274
338
|
"encoding": "vec3"
|
|
275
339
|
},
|
|
276
340
|
"u_environmentUp": {
|
|
277
|
-
"offset":
|
|
341
|
+
"offset": 352,
|
|
278
342
|
"size": 12,
|
|
279
343
|
"elementStride": 4,
|
|
280
344
|
"encoding": "vec3"
|
|
281
345
|
},
|
|
282
346
|
"u_lightPositions": {
|
|
283
|
-
"offset":
|
|
347
|
+
"offset": 368,
|
|
284
348
|
"size": 64,
|
|
285
349
|
"elementStride": 16,
|
|
286
350
|
"encoding": "vec4[]"
|
|
287
351
|
},
|
|
288
352
|
"u_lightColors": {
|
|
289
|
-
"offset":
|
|
353
|
+
"offset": 432,
|
|
290
354
|
"size": 64,
|
|
291
355
|
"elementStride": 16,
|
|
292
356
|
"encoding": "vec3[]"
|
|
293
357
|
},
|
|
294
358
|
"u_lightCount": {
|
|
295
|
-
"offset":
|
|
359
|
+
"offset": 496,
|
|
296
360
|
"size": 4,
|
|
297
361
|
"elementStride": 0,
|
|
298
362
|
"encoding": "int"
|
|
299
363
|
},
|
|
300
364
|
"u_surfaceFinishScale": {
|
|
301
|
-
"offset":
|
|
365
|
+
"offset": 500,
|
|
302
366
|
"size": 4,
|
|
303
367
|
"elementStride": 0,
|
|
304
368
|
"encoding": "float"
|
|
305
369
|
},
|
|
306
370
|
"u_surfaceFinishRoughness": {
|
|
307
|
-
"offset":
|
|
371
|
+
"offset": 504,
|
|
308
372
|
"size": 4,
|
|
309
373
|
"elementStride": 0,
|
|
310
374
|
"encoding": "float"
|
|
311
375
|
},
|
|
312
376
|
"u_surfaceFinishColor": {
|
|
313
|
-
"offset":
|
|
377
|
+
"offset": 508,
|
|
314
378
|
"size": 4,
|
|
315
379
|
"elementStride": 0,
|
|
316
380
|
"encoding": "float"
|
|
317
381
|
},
|
|
318
382
|
"u_colorSource": {
|
|
319
|
-
"offset":
|
|
383
|
+
"offset": 512,
|
|
320
384
|
"size": 4,
|
|
321
385
|
"elementStride": 0,
|
|
322
386
|
"encoding": "int"
|
|
323
387
|
},
|
|
324
388
|
"u_opacity": {
|
|
325
|
-
"offset":
|
|
389
|
+
"offset": 516,
|
|
326
390
|
"size": 4,
|
|
327
391
|
"elementStride": 0,
|
|
328
392
|
"encoding": "float"
|
|
329
393
|
},
|
|
330
394
|
"u_capTint": {
|
|
331
|
-
"offset":
|
|
395
|
+
"offset": 528,
|
|
332
396
|
"size": 16,
|
|
333
397
|
"elementStride": 4,
|
|
334
398
|
"encoding": "vec4"
|
|
335
399
|
},
|
|
336
400
|
"u_modelEyePosition": {
|
|
337
|
-
"offset":
|
|
401
|
+
"offset": 544,
|
|
338
402
|
"size": 12,
|
|
339
403
|
"elementStride": 4,
|
|
340
404
|
"encoding": "vec3"
|
|
@@ -350,6 +414,15 @@
|
|
|
350
414
|
"stage": "vertex",
|
|
351
415
|
"unit": 0
|
|
352
416
|
},
|
|
417
|
+
{
|
|
418
|
+
"semantic": "material-map",
|
|
419
|
+
"texture": "u_materialMap",
|
|
420
|
+
"sampler": null,
|
|
421
|
+
"uniform": "SPIRV_Cross_Combinedu_materialMapSPIRV_Cross_DummySampler",
|
|
422
|
+
"component": "uint",
|
|
423
|
+
"stage": "vertex",
|
|
424
|
+
"unit": 1
|
|
425
|
+
},
|
|
353
426
|
{
|
|
354
427
|
"semantic": "transform",
|
|
355
428
|
"texture": "u_transformLut",
|
|
@@ -357,7 +430,16 @@
|
|
|
357
430
|
"uniform": "SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler",
|
|
358
431
|
"component": "uint",
|
|
359
432
|
"stage": "vertex",
|
|
360
|
-
"unit":
|
|
433
|
+
"unit": 2
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"semantic": "transform-map",
|
|
437
|
+
"texture": "u_transformMap",
|
|
438
|
+
"sampler": null,
|
|
439
|
+
"uniform": "SPIRV_Cross_Combinedu_transformMapSPIRV_Cross_DummySampler",
|
|
440
|
+
"component": "uint",
|
|
441
|
+
"stage": "vertex",
|
|
442
|
+
"unit": 3
|
|
361
443
|
},
|
|
362
444
|
{
|
|
363
445
|
"semantic": "material",
|
|
@@ -366,17 +448,17 @@
|
|
|
366
448
|
"uniform": "SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler",
|
|
367
449
|
"component": "float",
|
|
368
450
|
"stage": "fragment",
|
|
369
|
-
"unit":
|
|
451
|
+
"unit": 4
|
|
370
452
|
}
|
|
371
453
|
],
|
|
372
454
|
"stages": {
|
|
373
455
|
"vertex": {
|
|
374
|
-
"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_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 vec4 u_capTint;\n vec3 u_modelEyePosition;\n} globalParams;\n\nuniform highp usampler2D SPIRV_Cross_Combinedu_maskLutSPIRV_Cross_DummySampler;\nuniform highp usampler2D SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler;\n\nlayout(location = 3) in int
|
|
375
|
-
"sha256": "
|
|
456
|
+
"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 int u_materialMapWidth;\n int u_materialMapBase;\n vec3 u_viewPosition;\n vec3 u_environmentSky;\n vec3 u_environmentGround;\n vec3 u_environmentUp;\n _Array_std140_vector_float_4_4 u_lightPositions;\n _Array_std140_vector_float_3_4 u_lightColors;\n int u_lightCount;\n float u_surfaceFinishScale;\n float u_surfaceFinishRoughness;\n float u_surfaceFinishColor;\n int u_colorSource;\n float u_opacity;\n vec4 u_capTint;\n vec3 u_modelEyePosition;\n} globalParams;\n\nuniform highp usampler2D SPIRV_Cross_Combinedu_maskLutSPIRV_Cross_DummySampler;\nuniform highp usampler2D SPIRV_Cross_Combinedu_transformMapSPIRV_Cross_DummySampler;\nuniform highp usampler2D SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler;\nuniform highp usampler2D SPIRV_Cross_Combinedu_materialMapSPIRV_Cross_DummySampler;\n\nlayout(location = 3) in int a_atomId;\nout vec3 v0;\nout vec3 v1;\nout vec3 v2;\nout vec3 v3;\nflat out int v4;\nflat out int v5;\nflat out int v6;\nlayout(location = 0) in vec3 a_position;\nlayout(location = 1) in vec3 a_deformation;\nlayout(location = 2) in vec3 a_rotation;\nlayout(location = 4) in vec3 a_normal;\nlayout(location = 5) in int a_capEnabled;\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 _499 = globalParams.u_maskLutBase + a_atomId;\n if (!(texelFetch(SPIRV_Cross_Combinedu_maskLutSPIRV_Cross_DummySampler, ivec2(_499 - globalParams.u_maskLutWidth * (_499 / globalParams.u_maskLutWidth), _499 / globalParams.u_maskLutWidth), 0).x != 0u))\n {\n gl_Position = vec4(2.0, 2.0, 2.0, 1.0);\n v0 = vec3(0.0);\n v1 = vec3(0.0);\n v2 = vec3(0.0);\n v3 = vec3(0.0);\n v4 = 0;\n v5 = 0;\n v6 = 0;\n break;\n }\n vec3 _529 = a_position - globalParams.u_deformRotationCenter;\n float _530 = length(a_rotation);\n vec3 _526;\n if (_530 > 9.9999999392252902907785028219223e-09)\n {\n vec3 _534 = a_rotation / vec3(_530);\n float _535 = cos(_530);\n _526 = ((_529 * _535) + (cross(_534, _529) * sin(_530))) + ((_534 * dot(_534, _529)) * (1.0 - _535));\n }\n else\n {\n _526 = _529;\n }\n vec3 _551 = (globalParams.u_deformRotationCenter + _526) + (globalParams.u_deformScale * a_deformation);\n int _667 = globalParams.u_transformMapBase + a_atomId;\n int _675 = int(texelFetch(SPIRV_Cross_Combinedu_transformMapSPIRV_Cross_DummySampler, ivec2(_667 - globalParams.u_transformMapWidth * (_667 / globalParams.u_transformMapWidth), _667 / globalParams.u_transformMapWidth), 0).x);\n int _679 = (globalParams.u_transformLutBase + _675) * globalParams.u_transformLutStride;\n int _552;\n vec3 _553;\n vec3 _554;\n if (texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_679 - globalParams.u_transformLutWidth * (_679 / globalParams.u_transformLutWidth), _679 / globalParams.u_transformLutWidth), 0).x != 0u)\n {\n int _695 = ((globalParams.u_transformLutBase + _675) * globalParams.u_transformLutStride) + 1;\n int _707 = ((globalParams.u_transformLutBase + _675) * globalParams.u_transformLutStride) + 2;\n int _719 = ((globalParams.u_transformLutBase + _675) * globalParams.u_transformLutStride) + 3;\n int _737 = ((globalParams.u_transformLutBase + _675) * globalParams.u_transformLutStride) + 4;\n int _749 = ((globalParams.u_transformLutBase + _675) * globalParams.u_transformLutStride) + 5;\n int _761 = ((globalParams.u_transformLutBase + _675) * globalParams.u_transformLutStride) + 6;\n int _773 = ((globalParams.u_transformLutBase + _675) * globalParams.u_transformLutStride) + 7;\n vec4 _787 = vec4(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_737 - globalParams.u_transformLutWidth * (_737 / globalParams.u_transformLutWidth), _737 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_749 - globalParams.u_transformLutWidth * (_749 / globalParams.u_transformLutWidth), _749 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_761 - globalParams.u_transformLutWidth * (_761 / globalParams.u_transformLutWidth), _761 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_773 - globalParams.u_transformLutWidth * (_773 / globalParams.u_transformLutWidth), _773 / globalParams.u_transformLutWidth), 0).x));\n int _792 = ((globalParams.u_transformLutBase + _675) * globalParams.u_transformLutStride) + 8;\n int _804 = ((globalParams.u_transformLutBase + _675) * globalParams.u_transformLutStride) + 9;\n int _816 = ((globalParams.u_transformLutBase + _675) * globalParams.u_transformLutStride) + 10;\n vec3 _829 = vec3(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_792 - globalParams.u_transformLutWidth * (_792 / globalParams.u_transformLutWidth), _792 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_804 - globalParams.u_transformLutWidth * (_804 / globalParams.u_transformLutWidth), _804 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_816 - globalParams.u_transformLutWidth * (_816 / globalParams.u_transformLutWidth), _816 / globalParams.u_transformLutWidth), 0).x));\n vec3 _832 = _829 * _551;\n vec3 _837 = _787.xyz;\n vec3 _839 = cross(_837, _832) * 2.0;\n vec3 _847 = a_normal / _829;\n vec3 _852 = _787.xyz;\n vec3 _854 = cross(_852, _847) * 2.0;\n if (((_829.x * _829.y) * _829.z) < 0.0)\n {\n _552 = 1;\n }\n else\n {\n _552 = 0;\n }\n _553 = ((_832 + (_839 * _787.w)) + cross(_837, _839)) + vec3(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_695 - globalParams.u_transformLutWidth * (_695 / globalParams.u_transformLutWidth), _695 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_707 - globalParams.u_transformLutWidth * (_707 / globalParams.u_transformLutWidth), _707 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_719 - globalParams.u_transformLutWidth * (_719 / globalParams.u_transformLutWidth), _719 / globalParams.u_transformLutWidth), 0).x));\n _554 = normalize((_847 + (_854 * _787.w)) + cross(_852, _854));\n }\n else\n {\n _553 = _551;\n _554 = a_normal;\n _552 = 0;\n }\n vec4 _641 = vec4(_553, 1.0);\n int _862 = globalParams.u_materialMapBase + a_atomId;\n gl_Position = _641 * spvWorkaroundRowMajor(globalParams.u_mvpMatrix);\n v0 = _553;\n v1 = (_641 * spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)).xyz;\n v2 = _554 * mat3(spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[0].xyz, spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[1].xyz, spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[2].xyz);\n v3 = a_position;\n v4 = int(texelFetch(SPIRV_Cross_Combinedu_materialMapSPIRV_Cross_DummySampler, ivec2(_862 - globalParams.u_materialMapWidth * (_862 / globalParams.u_materialMapWidth), _862 / globalParams.u_materialMapWidth), 0).x);\n v5 = a_capEnabled;\n v6 = _552;\n break;\n } while(false);\n}\n\n",
|
|
457
|
+
"sha256": "63f4cfbab02204169f5bd066570aab9f2d2344f87a44184824a844739fde83c1"
|
|
376
458
|
},
|
|
377
459
|
"fragment": {
|
|
378
|
-
"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_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 highp vec4 u_capTint;\n highp vec3 u_modelEyePosition;\n} globalParams;\n\nuniform highp sampler2D SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler;\n\nin highp vec3 v0;\nflat in int v6;\nflat in int v5;\nflat in int v4;\nin highp vec3 v3;\nlayout(location = 0) out highp vec4 entryPointParam_fragmentMain;\nin highp vec3 v2;\nin highp vec3 v1;\n\nhighp mat4 spvWorkaroundRowMajor(highp mat4 wrap) { return wrap; }\nmediump mat4 spvWorkaroundRowMajorMP(mediump mat4 wrap) { return wrap; }\n\nvoid main()\n{\n bool _977 = false;\n do\n {\n _977 = false;\n bool _978;\n do\n {\n int _979 = 0;\n for (;;)\n {\n if (!(_979 < 6))\n {\n break;\n }\n if (_979 >= globalParams.u_clipPlaneCount)\n {\n break;\n }\n if ((dot(globalParams.u_clipPlanes.data[_979].xyz, v0) + globalParams.u_clipPlanes.data[_979].w) < 0.0)\n {\n _977 = true;\n _978 = false;\n break;\n }\n _979++;\n continue;\n }\n if (_977)\n {\n break;\n }\n _977 = true;\n _978 = true;\n break;\n } while(false);\n if (!_978)\n {\n discard;\n }\n bool _1023 = gl_FrontFacing != (v6 != 0);\n bool _1024;\n if (!_1023)\n {\n _1024 = v5 == 0;\n }\n else\n {\n _1024 = false;\n }\n if (_1024)\n {\n discard;\n }\n highp vec3 _172 = v0 - globalParams.u_modelEyePosition;\n int _1033 = -1;\n highp float _1035 = 0.0;\n int _1034 = 0;\n bool _1036;\n int _1037;\n highp float _1038;\n for (;;)\n {\n bool _1044_ladder_break = false;\n do\n {\n if (!(_1034 < 6))\n {\n _1044_ladder_break = true;\n break;\n }\n if (_1034 >= globalParams.u_clipPlaneCount)\n {\n _1044_ladder_break = true;\n break;\n }\n highp float _1059 = dot(globalParams.u_clipPlanes.data[_1034].xyz, _172);\n if (_1059 <= 0.0)\n {\n break;\n }\n highp float _1065 = (-(dot(globalParams.u_clipPlanes.data[_1034].xyz, globalParams.u_modelEyePosition) + globalParams.u_clipPlanes.data[_1034].w)) / _1059;\n if (_1033 < 0)\n {\n _1036 = true;\n }\n else\n {\n _1036 = _1065 > _1035;\n }\n if (_1036)\n {\n _1037 = _1034;\n _1038 = _1065;\n }\n else\n {\n _1037 = _1033;\n _1038 = _1035;\n }\n _1033 = _1037;\n _1035 = _1038;\n break;\n } while(false);\n if (_1044_ladder_break)\n {\n break;\n }\n _1034++;\n continue;\n }\n bool _7;\n if (_1033 < 0)\n {\n bool _1095;\n if (!_1023)\n {\n _1095 = v5 != 0;\n }\n else\n {\n _1095 = false;\n }\n _7 = _1095;\n }\n else\n {\n _7 = false;\n }\n if (_7)\n {\n discard;\n }\n highp vec4 _1109 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 0), 0);\n highp vec4 _1113 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 1), 0);\n highp vec4 _1117 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 2), 0);\n highp vec3 _1120 = _1109.xyz;\n highp float _1122 = _1109.w;\n highp vec3 _1124 = _1113.xyz;\n highp float _1126 = _1113.w;\n highp float _1128 = _1117.x;\n highp vec3 _1786 = _1120;\n highp float _1787 = _1122;\n highp float _1788 = _1126;\n highp float _1789 = _1128;\n highp vec3 _1790 = _1124;\n highp vec3 _1814 = _1120;\n highp float _1815 = _1122;\n highp float _1816 = _1126;\n highp float _1817 = _1128;\n highp vec3 _1818 = _1124;\n highp float _1836 = globalParams.u_surfaceFinishScale;\n highp float _1837 = globalParams.u_surfaceFinishRoughness;\n highp float _1838 = globalParams.u_surfaceFinishColor;\n highp vec3 _1706;\n highp float _1707;\n highp float _1708;\n highp float _1709;\n highp vec3 _1710;\n do\n {\n if (_1836 <= 0.0)\n {\n _1706 = _1814;\n _1707 = _1815;\n _1708 = _1816;\n _1709 = _1817;\n _1710 = _1818;\n break;\n }\n highp vec3 _1143 = v3 / vec3(_1836);\n highp vec3 _1170 = floor(_1143);\n highp vec3 _1171 = _1143 - _1170;\n highp vec3 _1176 = (_1171 * _1171) * (vec3(3.0) - (_1171 * 2.0));\n ivec3 _1177 = ivec3(_1170);\n uint _1216 = (((uint(_1177.x) * 2376512323u) + (uint(_1177.y) * 3625334849u)) + (uint(_1177.z) * 3407524639u)) + 2654435769u;\n uint _1219 = (_1216 ^ (_1216 >> uint(15))) * 739982445u;\n uint _1222 = (_1219 ^ (_1219 >> uint(12))) * 695872825u;\n ivec3 _1179 = _1177 + ivec3(1, 0, 0);\n uint _1241 = (((uint(_1179.x) * 2376512323u) + (uint(_1179.y) * 3625334849u)) + (uint(_1179.z) * 3407524639u)) + 2654435769u;\n uint _1244 = (_1241 ^ (_1241 >> uint(15))) * 739982445u;\n uint _1247 = (_1244 ^ (_1244 >> uint(12))) * 695872825u;\n ivec3 _1181 = _1177 + ivec3(0, 1, 0);\n uint _1266 = (((uint(_1181.x) * 2376512323u) + (uint(_1181.y) * 3625334849u)) + (uint(_1181.z) * 3407524639u)) + 2654435769u;\n uint _1269 = (_1266 ^ (_1266 >> uint(15))) * 739982445u;\n uint _1272 = (_1269 ^ (_1269 >> uint(12))) * 695872825u;\n ivec3 _1183 = _1177 + ivec3(1, 1, 0);\n uint _1291 = (((uint(_1183.x) * 2376512323u) + (uint(_1183.y) * 3625334849u)) + (uint(_1183.z) * 3407524639u)) + 2654435769u;\n uint _1294 = (_1291 ^ (_1291 >> uint(15))) * 739982445u;\n uint _1297 = (_1294 ^ (_1294 >> uint(12))) * 695872825u;\n ivec3 _1185 = _1177 + ivec3(0, 0, 1);\n uint _1316 = (((uint(_1185.x) * 2376512323u) + (uint(_1185.y) * 3625334849u)) + (uint(_1185.z) * 3407524639u)) + 2654435769u;\n uint _1319 = (_1316 ^ (_1316 >> uint(15))) * 739982445u;\n uint _1322 = (_1319 ^ (_1319 >> uint(12))) * 695872825u;\n ivec3 _1187 = _1177 + ivec3(1, 0, 1);\n uint _1341 = (((uint(_1187.x) * 2376512323u) + (uint(_1187.y) * 3625334849u)) + (uint(_1187.z) * 3407524639u)) + 2654435769u;\n uint _1344 = (_1341 ^ (_1341 >> uint(15))) * 739982445u;\n uint _1347 = (_1344 ^ (_1344 >> uint(12))) * 695872825u;\n ivec3 _1189 = _1177 + ivec3(0, 1, 1);\n uint _1366 = (((uint(_1189.x) * 2376512323u) + (uint(_1189.y) * 3625334849u)) + (uint(_1189.z) * 3407524639u)) + 2654435769u;\n uint _1369 = (_1366 ^ (_1366 >> uint(15))) * 739982445u;\n uint _1372 = (_1369 ^ (_1369 >> uint(12))) * 695872825u;\n ivec3 _1191 = _1177 + ivec3(1);\n uint _1391 = (((uint(_1191.x) * 2376512323u) + (uint(_1191.y) * 3625334849u)) + (uint(_1191.z) * 3407524639u)) + 2654435769u;\n uint _1394 = (_1391 ^ (_1391 >> uint(15))) * 739982445u;\n uint _1397 = (_1394 ^ (_1394 >> uint(12))) * 695872825u;\n highp float _1193 = _1176.x;\n highp float _1198 = _1176.y;\n highp float _1146 = (mix(mix(mix(float((_1222 ^ (_1222 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1247 ^ (_1247 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1193), mix(float((_1272 ^ (_1272 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1297 ^ (_1297 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1193), _1198), mix(mix(float((_1322 ^ (_1322 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1347 ^ (_1347 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1193), mix(float((_1372 ^ (_1372 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1397 ^ (_1397 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1193), _1198), _1176.z) * 2.0) - 1.0;\n _1706 = clamp(_1814 * (1.0 + (_1146 * _1838)), vec3(0.0), vec3(1.0));\n _1707 = _1815;\n _1708 = clamp(_1816 + (_1146 * _1837), 0.0, 1.0);\n _1709 = _1817;\n _1710 = _1818;\n break;\n } while(false);\n _1786 = _1706;\n _1787 = _1707;\n _1788 = _1708;\n _1789 = _1709;\n _1790 = _1710;\n highp vec3 _1407;\n do\n {\n bool _1422;\n if (!_1023)\n {\n _1422 = v5 != 0;\n }\n else\n {\n _1422 = false;\n }\n if (_1422)\n {\n _1407 = (_1706 * (1.0 - globalParams.u_capTint.w)) + (globalParams.u_capTint.xyz * globalParams.u_capTint.w);\n break;\n }\n _1407 = _1706;\n break;\n } while(false);\n _1786 = _1407;\n if (globalParams.u_colorSource == 3)\n {\n entryPointParam_fragmentMain = vec4(_1786, globalParams.u_opacity);\n break;\n }\n bool _1431;\n if (!_1023)\n {\n _1431 = v5 != 0;\n }\n else\n {\n _1431 = false;\n }\n highp vec3 N;\n if (_1431)\n {\n N = normalize((-globalParams.u_clipPlanes.data[max(_1033, 0)].xyz) * mat3(spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[0].xyz, spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[1].xyz, spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[2].xyz));\n }\n else\n {\n N = normalize(v2);\n }\n highp vec3 _1447 = normalize(globalParams.u_viewPosition - v1);\n highp vec3 _1849 = _1786;\n highp float _1850 = _1787;\n highp float _1851 = _1788;\n highp float _1852 = _1789;\n highp vec3 _1853 = _1790;\n highp vec3 _1859 = globalParams.u_environmentSky;\n highp vec3 _1860 = globalParams.u_environmentGround;\n highp vec3 _1861 = globalParams.u_environmentUp;\n int _1448 = 0;\n highp vec3 _1449 = vec3(0.0);\n highp vec3 _1490;\n highp vec3 _1491;\n highp vec3 _1492;\n highp float _1493;\n for (;;)\n {\n if (!(_1448 < 4))\n {\n break;\n }\n if (_1448 < globalParams.u_lightCount)\n {\n do\n {\n bool _1498 = globalParams.u_lightPositions.data[_1448].w == 0.0;\n if (_1498)\n {\n _1491 = globalParams.u_lightPositions.data[_1448].xyz;\n }\n else\n {\n _1491 = globalParams.u_lightPositions.data[_1448].xyz - v1;\n }\n highp float _1507 = dot(_1491, _1491);\n if (_1498)\n {\n _1492 = normalize(globalParams.u_lightPositions.data[_1448].xyz);\n }\n else\n {\n _1492 = _1491 * inversesqrt(_1507);\n }\n if (_1498)\n {\n _1493 = 1.0;\n }\n else\n {\n _1493 = 1.0 / _1507;\n }\n highp float _1523 = dot(N, _1492);\n if (_1523 <= 0.0)\n {\n _1490 = vec3(0.0);\n break;\n }\n highp vec3 _1528 = _1447 + _1492;\n highp float _1529 = dot(_1528, _1528);\n if (_1529 <= 9.9999999600419720025001879548654e-13)\n {\n _1490 = vec3(0.0);\n break;\n }\n highp vec3 _1534 = _1528 * inversesqrt(_1529);\n highp float _1536 = max(dot(N, _1447), 0.0);\n highp float _1538 = max(dot(N, _1534), 0.0);\n highp float _1543 = max(_1851, 0.039999999105930328369140625);\n highp vec3 _1575 = mix(vec3(0.039999999105930328369140625), _1849, vec3(_1850));\n highp float _1578 = _1543 * _1543;\n highp float _1579 = _1578 * _1578;\n highp float _1583 = ((_1538 * _1538) * (_1579 - 1.0)) + 1.0;\n highp float _1594 = _1543 + 1.0;\n highp float _1596 = (_1594 * _1594) * 0.125;\n highp float _1603 = _1543 + 1.0;\n highp float _1605 = (_1603 * _1603) * 0.125;\n highp vec3 _1618 = _1575 + ((vec3(1.0) - _1575) * pow(clamp(1.0 - max(dot(_1534, _1447), 0.0), 0.0, 1.0), 5.0));\n _1490 = ((((clamp((vec3(1.0) - _1618) * (1.0 - _1850), vec3(0.0), vec3(1.0)) * _1849) * vec3(0.3183098733425140380859375)) + ((_1618 * ((_1579 / ((3.1415927410125732421875 * _1583) * _1583)) * ((_1536 / ((_1536 * (1.0 - _1596)) + _1596)) * (_1523 / ((_1523 * (1.0 - _1605)) + _1605))))) / vec3(((4.0 * _1536) * _1523) + 9.9999997473787516355514526367188e-05))) * (globalParams.u_lightColors.data[_1448] * _1493)) * _1523;\n break;\n } while(false);\n _1449 += _1490;\n }\n _1448++;\n continue;\n }\n highp vec3 _1654 = mix(vec3(0.039999999105930328369140625), _1849, vec3(_1850));\n highp vec3 _1665 = _1654 + ((max(vec3(1.0 - max(_1851, 0.039999999105930328369140625)), _1654) - _1654) * pow(clamp(1.0 - max(dot(N, _1447), 0.0), 0.0, 1.0), 5.0));\n highp vec3 _1488 = (((((clamp((vec3(1.0) - _1665) * (1.0 - _1850), vec3(0.0), vec3(1.0)) * mix(_1860, _1859, vec3((dot(N, _1861) * 0.5) + 0.5))) * _1849) + (mix(_1860, _1859, vec3((dot(reflect(-_1447, N), _1861) * 0.5) + 0.5)) * _1665)) * _1852) + _1449) + _1853;\n entryPointParam_fragmentMain = vec4(pow(_1488 / (_1488 + vec3(1.0)), vec3(0.454545438289642333984375)), globalParams.u_opacity);\n break;\n } while(false);\n}\n\n",
|
|
379
|
-
"sha256": "
|
|
460
|
+
"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 int u_materialMapWidth;\n int u_materialMapBase;\n highp vec3 u_viewPosition;\n highp vec3 u_environmentSky;\n highp vec3 u_environmentGround;\n highp vec3 u_environmentUp;\n _Array_std140_vector_float_4_4 u_lightPositions;\n _Array_std140_vector_float_3_4 u_lightColors;\n int u_lightCount;\n highp float u_surfaceFinishScale;\n highp float u_surfaceFinishRoughness;\n highp float u_surfaceFinishColor;\n int u_colorSource;\n highp float u_opacity;\n highp vec4 u_capTint;\n highp vec3 u_modelEyePosition;\n} globalParams;\n\nuniform highp sampler2D SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler;\n\nin highp vec3 v0;\nflat in int v6;\nflat in int v5;\nflat in int v4;\nin highp vec3 v3;\nlayout(location = 0) out highp vec4 entryPointParam_fragmentMain;\nin highp vec3 v2;\nin highp vec3 v1;\n\nhighp mat4 spvWorkaroundRowMajor(highp mat4 wrap) { return wrap; }\nmediump mat4 spvWorkaroundRowMajorMP(mediump mat4 wrap) { return wrap; }\n\nvoid main()\n{\n bool _977 = false;\n do\n {\n _977 = false;\n bool _978;\n do\n {\n int _979 = 0;\n for (;;)\n {\n if (!(_979 < 6))\n {\n break;\n }\n if (_979 >= globalParams.u_clipPlaneCount)\n {\n break;\n }\n if ((dot(globalParams.u_clipPlanes.data[_979].xyz, v0) + globalParams.u_clipPlanes.data[_979].w) < 0.0)\n {\n _977 = true;\n _978 = false;\n break;\n }\n _979++;\n continue;\n }\n if (_977)\n {\n break;\n }\n _977 = true;\n _978 = true;\n break;\n } while(false);\n if (!_978)\n {\n discard;\n }\n bool _1023 = gl_FrontFacing != (v6 != 0);\n bool _1024;\n if (!_1023)\n {\n _1024 = v5 == 0;\n }\n else\n {\n _1024 = false;\n }\n if (_1024)\n {\n discard;\n }\n highp vec3 _172 = v0 - globalParams.u_modelEyePosition;\n int _1033 = -1;\n highp float _1035 = 0.0;\n int _1034 = 0;\n bool _1036;\n int _1037;\n highp float _1038;\n for (;;)\n {\n bool _1044_ladder_break = false;\n do\n {\n if (!(_1034 < 6))\n {\n _1044_ladder_break = true;\n break;\n }\n if (_1034 >= globalParams.u_clipPlaneCount)\n {\n _1044_ladder_break = true;\n break;\n }\n highp float _1059 = dot(globalParams.u_clipPlanes.data[_1034].xyz, _172);\n if (_1059 <= 0.0)\n {\n break;\n }\n highp float _1065 = (-(dot(globalParams.u_clipPlanes.data[_1034].xyz, globalParams.u_modelEyePosition) + globalParams.u_clipPlanes.data[_1034].w)) / _1059;\n if (_1033 < 0)\n {\n _1036 = true;\n }\n else\n {\n _1036 = _1065 > _1035;\n }\n if (_1036)\n {\n _1037 = _1034;\n _1038 = _1065;\n }\n else\n {\n _1037 = _1033;\n _1038 = _1035;\n }\n _1033 = _1037;\n _1035 = _1038;\n break;\n } while(false);\n if (_1044_ladder_break)\n {\n break;\n }\n _1034++;\n continue;\n }\n bool _7;\n if (_1033 < 0)\n {\n bool _1095;\n if (!_1023)\n {\n _1095 = v5 != 0;\n }\n else\n {\n _1095 = false;\n }\n _7 = _1095;\n }\n else\n {\n _7 = false;\n }\n if (_7)\n {\n discard;\n }\n highp vec4 _1109 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 0), 0);\n highp vec4 _1113 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 1), 0);\n highp vec4 _1117 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 2), 0);\n highp vec3 _1120 = _1109.xyz;\n highp float _1122 = _1109.w;\n highp vec3 _1124 = _1113.xyz;\n highp float _1126 = _1113.w;\n highp float _1128 = _1117.x;\n highp vec3 _1786 = _1120;\n highp float _1787 = _1122;\n highp float _1788 = _1126;\n highp float _1789 = _1128;\n highp vec3 _1790 = _1124;\n highp vec3 _1814 = _1120;\n highp float _1815 = _1122;\n highp float _1816 = _1126;\n highp float _1817 = _1128;\n highp vec3 _1818 = _1124;\n highp float _1836 = globalParams.u_surfaceFinishScale;\n highp float _1837 = globalParams.u_surfaceFinishRoughness;\n highp float _1838 = globalParams.u_surfaceFinishColor;\n highp vec3 _1706;\n highp float _1707;\n highp float _1708;\n highp float _1709;\n highp vec3 _1710;\n do\n {\n if (_1836 <= 0.0)\n {\n _1706 = _1814;\n _1707 = _1815;\n _1708 = _1816;\n _1709 = _1817;\n _1710 = _1818;\n break;\n }\n highp vec3 _1143 = v3 / vec3(_1836);\n highp vec3 _1170 = floor(_1143);\n highp vec3 _1171 = _1143 - _1170;\n highp vec3 _1176 = (_1171 * _1171) * (vec3(3.0) - (_1171 * 2.0));\n ivec3 _1177 = ivec3(_1170);\n uint _1216 = (((uint(_1177.x) * 2376512323u) + (uint(_1177.y) * 3625334849u)) + (uint(_1177.z) * 3407524639u)) + 2654435769u;\n uint _1219 = (_1216 ^ (_1216 >> uint(15))) * 739982445u;\n uint _1222 = (_1219 ^ (_1219 >> uint(12))) * 695872825u;\n ivec3 _1179 = _1177 + ivec3(1, 0, 0);\n uint _1241 = (((uint(_1179.x) * 2376512323u) + (uint(_1179.y) * 3625334849u)) + (uint(_1179.z) * 3407524639u)) + 2654435769u;\n uint _1244 = (_1241 ^ (_1241 >> uint(15))) * 739982445u;\n uint _1247 = (_1244 ^ (_1244 >> uint(12))) * 695872825u;\n ivec3 _1181 = _1177 + ivec3(0, 1, 0);\n uint _1266 = (((uint(_1181.x) * 2376512323u) + (uint(_1181.y) * 3625334849u)) + (uint(_1181.z) * 3407524639u)) + 2654435769u;\n uint _1269 = (_1266 ^ (_1266 >> uint(15))) * 739982445u;\n uint _1272 = (_1269 ^ (_1269 >> uint(12))) * 695872825u;\n ivec3 _1183 = _1177 + ivec3(1, 1, 0);\n uint _1291 = (((uint(_1183.x) * 2376512323u) + (uint(_1183.y) * 3625334849u)) + (uint(_1183.z) * 3407524639u)) + 2654435769u;\n uint _1294 = (_1291 ^ (_1291 >> uint(15))) * 739982445u;\n uint _1297 = (_1294 ^ (_1294 >> uint(12))) * 695872825u;\n ivec3 _1185 = _1177 + ivec3(0, 0, 1);\n uint _1316 = (((uint(_1185.x) * 2376512323u) + (uint(_1185.y) * 3625334849u)) + (uint(_1185.z) * 3407524639u)) + 2654435769u;\n uint _1319 = (_1316 ^ (_1316 >> uint(15))) * 739982445u;\n uint _1322 = (_1319 ^ (_1319 >> uint(12))) * 695872825u;\n ivec3 _1187 = _1177 + ivec3(1, 0, 1);\n uint _1341 = (((uint(_1187.x) * 2376512323u) + (uint(_1187.y) * 3625334849u)) + (uint(_1187.z) * 3407524639u)) + 2654435769u;\n uint _1344 = (_1341 ^ (_1341 >> uint(15))) * 739982445u;\n uint _1347 = (_1344 ^ (_1344 >> uint(12))) * 695872825u;\n ivec3 _1189 = _1177 + ivec3(0, 1, 1);\n uint _1366 = (((uint(_1189.x) * 2376512323u) + (uint(_1189.y) * 3625334849u)) + (uint(_1189.z) * 3407524639u)) + 2654435769u;\n uint _1369 = (_1366 ^ (_1366 >> uint(15))) * 739982445u;\n uint _1372 = (_1369 ^ (_1369 >> uint(12))) * 695872825u;\n ivec3 _1191 = _1177 + ivec3(1);\n uint _1391 = (((uint(_1191.x) * 2376512323u) + (uint(_1191.y) * 3625334849u)) + (uint(_1191.z) * 3407524639u)) + 2654435769u;\n uint _1394 = (_1391 ^ (_1391 >> uint(15))) * 739982445u;\n uint _1397 = (_1394 ^ (_1394 >> uint(12))) * 695872825u;\n highp float _1193 = _1176.x;\n highp float _1198 = _1176.y;\n highp float _1146 = (mix(mix(mix(float((_1222 ^ (_1222 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1247 ^ (_1247 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1193), mix(float((_1272 ^ (_1272 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1297 ^ (_1297 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1193), _1198), mix(mix(float((_1322 ^ (_1322 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1347 ^ (_1347 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1193), mix(float((_1372 ^ (_1372 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1397 ^ (_1397 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1193), _1198), _1176.z) * 2.0) - 1.0;\n _1706 = clamp(_1814 * (1.0 + (_1146 * _1838)), vec3(0.0), vec3(1.0));\n _1707 = _1815;\n _1708 = clamp(_1816 + (_1146 * _1837), 0.0, 1.0);\n _1709 = _1817;\n _1710 = _1818;\n break;\n } while(false);\n _1786 = _1706;\n _1787 = _1707;\n _1788 = _1708;\n _1789 = _1709;\n _1790 = _1710;\n highp vec3 _1407;\n do\n {\n bool _1422;\n if (!_1023)\n {\n _1422 = v5 != 0;\n }\n else\n {\n _1422 = false;\n }\n if (_1422)\n {\n _1407 = (_1706 * (1.0 - globalParams.u_capTint.w)) + (globalParams.u_capTint.xyz * globalParams.u_capTint.w);\n break;\n }\n _1407 = _1706;\n break;\n } while(false);\n _1786 = _1407;\n if (globalParams.u_colorSource == 3)\n {\n entryPointParam_fragmentMain = vec4(_1786, globalParams.u_opacity);\n break;\n }\n bool _1431;\n if (!_1023)\n {\n _1431 = v5 != 0;\n }\n else\n {\n _1431 = false;\n }\n highp vec3 N;\n if (_1431)\n {\n N = normalize((-globalParams.u_clipPlanes.data[max(_1033, 0)].xyz) * mat3(spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[0].xyz, spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[1].xyz, spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[2].xyz));\n }\n else\n {\n N = normalize(v2);\n }\n highp vec3 _1447 = normalize(globalParams.u_viewPosition - v1);\n highp vec3 _1849 = _1786;\n highp float _1850 = _1787;\n highp float _1851 = _1788;\n highp float _1852 = _1789;\n highp vec3 _1853 = _1790;\n highp vec3 _1859 = globalParams.u_environmentSky;\n highp vec3 _1860 = globalParams.u_environmentGround;\n highp vec3 _1861 = globalParams.u_environmentUp;\n int _1448 = 0;\n highp vec3 _1449 = vec3(0.0);\n highp vec3 _1490;\n highp vec3 _1491;\n highp vec3 _1492;\n highp float _1493;\n for (;;)\n {\n if (!(_1448 < 4))\n {\n break;\n }\n if (_1448 < globalParams.u_lightCount)\n {\n do\n {\n bool _1498 = globalParams.u_lightPositions.data[_1448].w == 0.0;\n if (_1498)\n {\n _1491 = globalParams.u_lightPositions.data[_1448].xyz;\n }\n else\n {\n _1491 = globalParams.u_lightPositions.data[_1448].xyz - v1;\n }\n highp float _1507 = dot(_1491, _1491);\n if (_1498)\n {\n _1492 = normalize(globalParams.u_lightPositions.data[_1448].xyz);\n }\n else\n {\n _1492 = _1491 * inversesqrt(_1507);\n }\n if (_1498)\n {\n _1493 = 1.0;\n }\n else\n {\n _1493 = 1.0 / _1507;\n }\n highp float _1523 = dot(N, _1492);\n if (_1523 <= 0.0)\n {\n _1490 = vec3(0.0);\n break;\n }\n highp vec3 _1528 = _1447 + _1492;\n highp float _1529 = dot(_1528, _1528);\n if (_1529 <= 9.9999999600419720025001879548654e-13)\n {\n _1490 = vec3(0.0);\n break;\n }\n highp vec3 _1534 = _1528 * inversesqrt(_1529);\n highp float _1536 = max(dot(N, _1447), 0.0);\n highp float _1538 = max(dot(N, _1534), 0.0);\n highp float _1543 = max(_1851, 0.039999999105930328369140625);\n highp vec3 _1575 = mix(vec3(0.039999999105930328369140625), _1849, vec3(_1850));\n highp float _1578 = _1543 * _1543;\n highp float _1579 = _1578 * _1578;\n highp float _1583 = ((_1538 * _1538) * (_1579 - 1.0)) + 1.0;\n highp float _1594 = _1543 + 1.0;\n highp float _1596 = (_1594 * _1594) * 0.125;\n highp float _1603 = _1543 + 1.0;\n highp float _1605 = (_1603 * _1603) * 0.125;\n highp vec3 _1618 = _1575 + ((vec3(1.0) - _1575) * pow(clamp(1.0 - max(dot(_1534, _1447), 0.0), 0.0, 1.0), 5.0));\n _1490 = ((((clamp((vec3(1.0) - _1618) * (1.0 - _1850), vec3(0.0), vec3(1.0)) * _1849) * vec3(0.3183098733425140380859375)) + ((_1618 * ((_1579 / ((3.1415927410125732421875 * _1583) * _1583)) * ((_1536 / ((_1536 * (1.0 - _1596)) + _1596)) * (_1523 / ((_1523 * (1.0 - _1605)) + _1605))))) / vec3(((4.0 * _1536) * _1523) + 9.9999997473787516355514526367188e-05))) * (globalParams.u_lightColors.data[_1448] * _1493)) * _1523;\n break;\n } while(false);\n _1449 += _1490;\n }\n _1448++;\n continue;\n }\n highp vec3 _1654 = mix(vec3(0.039999999105930328369140625), _1849, vec3(_1850));\n highp vec3 _1665 = _1654 + ((max(vec3(1.0 - max(_1851, 0.039999999105930328369140625)), _1654) - _1654) * pow(clamp(1.0 - max(dot(N, _1447), 0.0), 0.0, 1.0), 5.0));\n highp vec3 _1488 = (((((clamp((vec3(1.0) - _1665) * (1.0 - _1850), vec3(0.0), vec3(1.0)) * mix(_1860, _1859, vec3((dot(N, _1861) * 0.5) + 0.5))) * _1849) + (mix(_1860, _1859, vec3((dot(reflect(-_1447, N), _1861) * 0.5) + 0.5)) * _1665)) * _1852) + _1449) + _1853;\n entryPointParam_fragmentMain = vec4(pow(_1488 / (_1488 + vec3(1.0)), vec3(0.454545438289642333984375)), globalParams.u_opacity);\n break;\n } while(false);\n}\n\n",
|
|
461
|
+
"sha256": "2d06f767d14ef58e15c853e6c0d9c342418025cc0c2509238e080182217e3f67"
|
|
380
462
|
}
|
|
381
463
|
}
|
|
382
464
|
}
|