@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": "category",
|
|
15
15
|
"capabilities": [
|
|
16
16
|
"fringe-int",
|
|
17
|
+
"material-map-r16ui",
|
|
17
18
|
"material",
|
|
18
19
|
"material-table",
|
|
19
20
|
"material-surface-finish",
|
|
@@ -21,6 +22,7 @@
|
|
|
21
22
|
"mask-lut-r8ui",
|
|
22
23
|
"transform",
|
|
23
24
|
"transform-lut-r32ui",
|
|
25
|
+
"transform-map-r16ui",
|
|
24
26
|
"clip"
|
|
25
27
|
],
|
|
26
28
|
"inputs": [
|
|
@@ -30,25 +32,15 @@
|
|
|
30
32
|
"semantic": "coordinates"
|
|
31
33
|
},
|
|
32
34
|
{
|
|
33
|
-
"name": "
|
|
35
|
+
"name": "a_atomId",
|
|
34
36
|
"type": "int",
|
|
35
|
-
"semantic": "
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"name": "a_componentId",
|
|
39
|
-
"type": "int",
|
|
40
|
-
"semantic": "component-id"
|
|
37
|
+
"semantic": "atom-id"
|
|
41
38
|
},
|
|
42
39
|
{
|
|
43
40
|
"name": "a_normal",
|
|
44
41
|
"type": "vec3",
|
|
45
42
|
"semantic": "normal"
|
|
46
43
|
},
|
|
47
|
-
{
|
|
48
|
-
"name": "a_materialId",
|
|
49
|
-
"type": "int",
|
|
50
|
-
"semantic": "material-id"
|
|
51
|
-
},
|
|
52
44
|
{
|
|
53
45
|
"name": "a_category",
|
|
54
46
|
"type": "int",
|
|
@@ -68,6 +60,10 @@
|
|
|
68
60
|
"name": "u_maskLutWidth",
|
|
69
61
|
"type": "int"
|
|
70
62
|
},
|
|
63
|
+
{
|
|
64
|
+
"name": "u_maskLutBase",
|
|
65
|
+
"type": "int"
|
|
66
|
+
},
|
|
71
67
|
{
|
|
72
68
|
"name": "u_transformLutWidth",
|
|
73
69
|
"type": "int"
|
|
@@ -76,6 +72,18 @@
|
|
|
76
72
|
"name": "u_transformLutStride",
|
|
77
73
|
"type": "int"
|
|
78
74
|
},
|
|
75
|
+
{
|
|
76
|
+
"name": "u_transformLutBase",
|
|
77
|
+
"type": "int"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "u_transformMapWidth",
|
|
81
|
+
"type": "int"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "u_transformMapBase",
|
|
85
|
+
"type": "int"
|
|
86
|
+
},
|
|
79
87
|
{
|
|
80
88
|
"name": "u_clipPlanes",
|
|
81
89
|
"type": "vec4[6]"
|
|
@@ -100,6 +108,14 @@
|
|
|
100
108
|
"name": "u_uncoveredColor",
|
|
101
109
|
"type": "vec4"
|
|
102
110
|
},
|
|
111
|
+
{
|
|
112
|
+
"name": "u_materialMapWidth",
|
|
113
|
+
"type": "int"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "u_materialMapBase",
|
|
117
|
+
"type": "int"
|
|
118
|
+
},
|
|
103
119
|
{
|
|
104
120
|
"name": "u_viewPosition",
|
|
105
121
|
"type": "vec3"
|
|
@@ -175,6 +191,18 @@
|
|
|
175
191
|
"format": "r32ui",
|
|
176
192
|
"semantic": "transform"
|
|
177
193
|
},
|
|
194
|
+
{
|
|
195
|
+
"name": "u_transformMap",
|
|
196
|
+
"type": "Texture2D<uint4>",
|
|
197
|
+
"format": "r16ui",
|
|
198
|
+
"semantic": "transform-map"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"name": "u_materialMap",
|
|
202
|
+
"type": "Texture2D<uint4>",
|
|
203
|
+
"format": "r16ui",
|
|
204
|
+
"semantic": "material-map"
|
|
205
|
+
},
|
|
178
206
|
{
|
|
179
207
|
"name": "u_materialTable",
|
|
180
208
|
"type": "Texture2D<float4>",
|
|
@@ -185,10 +213,10 @@
|
|
|
185
213
|
"textures": [],
|
|
186
214
|
"samplers": []
|
|
187
215
|
},
|
|
188
|
-
"contractSha256": "
|
|
216
|
+
"contractSha256": "b938cbe28cd906480ed680f5034912fec56a5e347149f182a3de921050e686a7",
|
|
189
217
|
"languages": {
|
|
190
218
|
"glsl": {
|
|
191
|
-
"blockSize":
|
|
219
|
+
"blockSize": 2880,
|
|
192
220
|
"layout": {
|
|
193
221
|
"u_mvpMatrix": {
|
|
194
222
|
"offset": 0,
|
|
@@ -222,122 +250,158 @@
|
|
|
222
250
|
"elementStride": 0,
|
|
223
251
|
"encoding": "int"
|
|
224
252
|
},
|
|
225
|
-
"
|
|
253
|
+
"u_maskLutBase": {
|
|
226
254
|
"offset": 160,
|
|
227
255
|
"size": 4,
|
|
228
256
|
"elementStride": 0,
|
|
229
257
|
"encoding": "int"
|
|
230
258
|
},
|
|
231
|
-
"
|
|
259
|
+
"u_transformLutWidth": {
|
|
232
260
|
"offset": 164,
|
|
233
261
|
"size": 4,
|
|
234
262
|
"elementStride": 0,
|
|
235
263
|
"encoding": "int"
|
|
236
264
|
},
|
|
237
|
-
"
|
|
265
|
+
"u_transformLutStride": {
|
|
266
|
+
"offset": 168,
|
|
267
|
+
"size": 4,
|
|
268
|
+
"elementStride": 0,
|
|
269
|
+
"encoding": "int"
|
|
270
|
+
},
|
|
271
|
+
"u_transformLutBase": {
|
|
272
|
+
"offset": 172,
|
|
273
|
+
"size": 4,
|
|
274
|
+
"elementStride": 0,
|
|
275
|
+
"encoding": "int"
|
|
276
|
+
},
|
|
277
|
+
"u_transformMapWidth": {
|
|
238
278
|
"offset": 176,
|
|
279
|
+
"size": 4,
|
|
280
|
+
"elementStride": 0,
|
|
281
|
+
"encoding": "int"
|
|
282
|
+
},
|
|
283
|
+
"u_transformMapBase": {
|
|
284
|
+
"offset": 180,
|
|
285
|
+
"size": 4,
|
|
286
|
+
"elementStride": 0,
|
|
287
|
+
"encoding": "int"
|
|
288
|
+
},
|
|
289
|
+
"u_clipPlanes": {
|
|
290
|
+
"offset": 192,
|
|
239
291
|
"size": 96,
|
|
240
292
|
"elementStride": 16,
|
|
241
293
|
"encoding": "vec4[]"
|
|
242
294
|
},
|
|
243
295
|
"u_clipPlaneCount": {
|
|
244
|
-
"offset":
|
|
296
|
+
"offset": 288,
|
|
245
297
|
"size": 4,
|
|
246
298
|
"elementStride": 0,
|
|
247
299
|
"encoding": "int"
|
|
248
300
|
},
|
|
249
301
|
"u_bandBounds": {
|
|
250
|
-
"offset":
|
|
302
|
+
"offset": 304,
|
|
251
303
|
"size": 1152,
|
|
252
304
|
"elementStride": 16,
|
|
253
305
|
"encoding": "ivec2[]"
|
|
254
306
|
},
|
|
255
307
|
"u_numBands": {
|
|
256
|
-
"offset":
|
|
308
|
+
"offset": 1456,
|
|
257
309
|
"size": 4,
|
|
258
310
|
"elementStride": 0,
|
|
259
311
|
"encoding": "int"
|
|
260
312
|
},
|
|
261
313
|
"u_bandColors": {
|
|
262
|
-
"offset":
|
|
314
|
+
"offset": 1472,
|
|
263
315
|
"size": 1152,
|
|
264
316
|
"elementStride": 16,
|
|
265
317
|
"encoding": "vec4[]"
|
|
266
318
|
},
|
|
267
319
|
"u_uncoveredColor": {
|
|
268
|
-
"offset":
|
|
320
|
+
"offset": 2624,
|
|
269
321
|
"size": 16,
|
|
270
322
|
"elementStride": 4,
|
|
271
323
|
"encoding": "vec4"
|
|
272
324
|
},
|
|
325
|
+
"u_materialMapWidth": {
|
|
326
|
+
"offset": 2640,
|
|
327
|
+
"size": 4,
|
|
328
|
+
"elementStride": 0,
|
|
329
|
+
"encoding": "int"
|
|
330
|
+
},
|
|
331
|
+
"u_materialMapBase": {
|
|
332
|
+
"offset": 2644,
|
|
333
|
+
"size": 4,
|
|
334
|
+
"elementStride": 0,
|
|
335
|
+
"encoding": "int"
|
|
336
|
+
},
|
|
273
337
|
"u_viewPosition": {
|
|
274
|
-
"offset":
|
|
338
|
+
"offset": 2656,
|
|
275
339
|
"size": 12,
|
|
276
340
|
"elementStride": 4,
|
|
277
341
|
"encoding": "vec3"
|
|
278
342
|
},
|
|
279
343
|
"u_environmentSky": {
|
|
280
|
-
"offset":
|
|
344
|
+
"offset": 2672,
|
|
281
345
|
"size": 12,
|
|
282
346
|
"elementStride": 4,
|
|
283
347
|
"encoding": "vec3"
|
|
284
348
|
},
|
|
285
349
|
"u_environmentGround": {
|
|
286
|
-
"offset":
|
|
350
|
+
"offset": 2688,
|
|
287
351
|
"size": 12,
|
|
288
352
|
"elementStride": 4,
|
|
289
353
|
"encoding": "vec3"
|
|
290
354
|
},
|
|
291
355
|
"u_environmentUp": {
|
|
292
|
-
"offset":
|
|
356
|
+
"offset": 2704,
|
|
293
357
|
"size": 12,
|
|
294
358
|
"elementStride": 4,
|
|
295
359
|
"encoding": "vec3"
|
|
296
360
|
},
|
|
297
361
|
"u_lightPositions": {
|
|
298
|
-
"offset":
|
|
362
|
+
"offset": 2720,
|
|
299
363
|
"size": 64,
|
|
300
364
|
"elementStride": 16,
|
|
301
365
|
"encoding": "vec4[]"
|
|
302
366
|
},
|
|
303
367
|
"u_lightColors": {
|
|
304
|
-
"offset":
|
|
368
|
+
"offset": 2784,
|
|
305
369
|
"size": 64,
|
|
306
370
|
"elementStride": 16,
|
|
307
371
|
"encoding": "vec3[]"
|
|
308
372
|
},
|
|
309
373
|
"u_lightCount": {
|
|
310
|
-
"offset":
|
|
374
|
+
"offset": 2848,
|
|
311
375
|
"size": 4,
|
|
312
376
|
"elementStride": 0,
|
|
313
377
|
"encoding": "int"
|
|
314
378
|
},
|
|
315
379
|
"u_surfaceFinishScale": {
|
|
316
|
-
"offset":
|
|
380
|
+
"offset": 2852,
|
|
317
381
|
"size": 4,
|
|
318
382
|
"elementStride": 0,
|
|
319
383
|
"encoding": "float"
|
|
320
384
|
},
|
|
321
385
|
"u_surfaceFinishRoughness": {
|
|
322
|
-
"offset":
|
|
386
|
+
"offset": 2856,
|
|
323
387
|
"size": 4,
|
|
324
388
|
"elementStride": 0,
|
|
325
389
|
"encoding": "float"
|
|
326
390
|
},
|
|
327
391
|
"u_surfaceFinishColor": {
|
|
328
|
-
"offset":
|
|
392
|
+
"offset": 2860,
|
|
329
393
|
"size": 4,
|
|
330
394
|
"elementStride": 0,
|
|
331
395
|
"encoding": "float"
|
|
332
396
|
},
|
|
333
397
|
"u_colorSource": {
|
|
334
|
-
"offset":
|
|
398
|
+
"offset": 2864,
|
|
335
399
|
"size": 4,
|
|
336
400
|
"elementStride": 0,
|
|
337
401
|
"encoding": "int"
|
|
338
402
|
},
|
|
339
403
|
"u_opacity": {
|
|
340
|
-
"offset":
|
|
404
|
+
"offset": 2868,
|
|
341
405
|
"size": 4,
|
|
342
406
|
"elementStride": 0,
|
|
343
407
|
"encoding": "float"
|
|
@@ -353,6 +417,15 @@
|
|
|
353
417
|
"stage": "vertex",
|
|
354
418
|
"unit": 0
|
|
355
419
|
},
|
|
420
|
+
{
|
|
421
|
+
"semantic": "material-map",
|
|
422
|
+
"texture": "u_materialMap",
|
|
423
|
+
"sampler": null,
|
|
424
|
+
"uniform": "SPIRV_Cross_Combinedu_materialMapSPIRV_Cross_DummySampler",
|
|
425
|
+
"component": "uint",
|
|
426
|
+
"stage": "vertex",
|
|
427
|
+
"unit": 1
|
|
428
|
+
},
|
|
356
429
|
{
|
|
357
430
|
"semantic": "transform",
|
|
358
431
|
"texture": "u_transformLut",
|
|
@@ -360,7 +433,16 @@
|
|
|
360
433
|
"uniform": "SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler",
|
|
361
434
|
"component": "uint",
|
|
362
435
|
"stage": "vertex",
|
|
363
|
-
"unit":
|
|
436
|
+
"unit": 2
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"semantic": "transform-map",
|
|
440
|
+
"texture": "u_transformMap",
|
|
441
|
+
"sampler": null,
|
|
442
|
+
"uniform": "SPIRV_Cross_Combinedu_transformMapSPIRV_Cross_DummySampler",
|
|
443
|
+
"component": "uint",
|
|
444
|
+
"stage": "vertex",
|
|
445
|
+
"unit": 3
|
|
364
446
|
},
|
|
365
447
|
{
|
|
366
448
|
"semantic": "material",
|
|
@@ -369,17 +451,17 @@
|
|
|
369
451
|
"uniform": "SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler",
|
|
370
452
|
"component": "float",
|
|
371
453
|
"stage": "fragment",
|
|
372
|
-
"unit":
|
|
454
|
+
"unit": 4
|
|
373
455
|
}
|
|
374
456
|
],
|
|
375
457
|
"stages": {
|
|
376
458
|
"vertex": {
|
|
377
|
-
"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_int_2_72\n{\n ivec2 data[72];\n};\n\nstruct _Array_std140_vector_float_4_72\n{\n vec4 data[72];\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 _Array_std140_vector_int_2_72 u_bandBounds;\n int u_numBands;\n _Array_std140_vector_float_4_72 u_bandColors;\n vec4 u_uncoveredColor;\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
|
|
378
|
-
"sha256": "
|
|
459
|
+
"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_int_2_72\n{\n ivec2 data[72];\n};\n\nstruct _Array_std140_vector_float_4_72\n{\n vec4 data[72];\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 _Array_std140_vector_int_2_72 u_bandBounds;\n int u_numBands;\n _Array_std140_vector_float_4_72 u_bandColors;\n vec4 u_uncoveredColor;\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} 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 = 1) in int a_atomId;\nout vec3 v0;\nout vec3 v1;\nout vec3 v2;\nout vec3 v3;\nflat out int v4;\nflat out int v5;\nlayout(location = 0) in vec3 a_position;\nlayout(location = 2) in vec3 a_normal;\nlayout(location = 3) in int a_category;\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 _428 = globalParams.u_maskLutBase + a_atomId;\n if (!(texelFetch(SPIRV_Cross_Combinedu_maskLutSPIRV_Cross_DummySampler, ivec2(_428 - globalParams.u_maskLutWidth * (_428 / globalParams.u_maskLutWidth), _428 / 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 break;\n }\n int _557 = globalParams.u_transformMapBase + a_atomId;\n int _565 = int(texelFetch(SPIRV_Cross_Combinedu_transformMapSPIRV_Cross_DummySampler, ivec2(_557 - globalParams.u_transformMapWidth * (_557 / globalParams.u_transformMapWidth), _557 / globalParams.u_transformMapWidth), 0).x);\n int _569 = (globalParams.u_transformLutBase + _565) * globalParams.u_transformLutStride;\n vec3 _454;\n vec3 _455;\n if (texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_569 - globalParams.u_transformLutWidth * (_569 / globalParams.u_transformLutWidth), _569 / globalParams.u_transformLutWidth), 0).x != 0u)\n {\n int _585 = ((globalParams.u_transformLutBase + _565) * globalParams.u_transformLutStride) + 1;\n int _597 = ((globalParams.u_transformLutBase + _565) * globalParams.u_transformLutStride) + 2;\n int _609 = ((globalParams.u_transformLutBase + _565) * globalParams.u_transformLutStride) + 3;\n int _627 = ((globalParams.u_transformLutBase + _565) * globalParams.u_transformLutStride) + 4;\n int _639 = ((globalParams.u_transformLutBase + _565) * globalParams.u_transformLutStride) + 5;\n int _651 = ((globalParams.u_transformLutBase + _565) * globalParams.u_transformLutStride) + 6;\n int _663 = ((globalParams.u_transformLutBase + _565) * globalParams.u_transformLutStride) + 7;\n vec4 _677 = vec4(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_627 - globalParams.u_transformLutWidth * (_627 / globalParams.u_transformLutWidth), _627 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_639 - globalParams.u_transformLutWidth * (_639 / globalParams.u_transformLutWidth), _639 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_651 - globalParams.u_transformLutWidth * (_651 / globalParams.u_transformLutWidth), _651 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_663 - globalParams.u_transformLutWidth * (_663 / globalParams.u_transformLutWidth), _663 / globalParams.u_transformLutWidth), 0).x));\n int _682 = ((globalParams.u_transformLutBase + _565) * globalParams.u_transformLutStride) + 8;\n int _694 = ((globalParams.u_transformLutBase + _565) * globalParams.u_transformLutStride) + 9;\n int _706 = ((globalParams.u_transformLutBase + _565) * globalParams.u_transformLutStride) + 10;\n vec3 _719 = vec3(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_682 - globalParams.u_transformLutWidth * (_682 / globalParams.u_transformLutWidth), _682 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_694 - globalParams.u_transformLutWidth * (_694 / globalParams.u_transformLutWidth), _694 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_706 - globalParams.u_transformLutWidth * (_706 / globalParams.u_transformLutWidth), _706 / globalParams.u_transformLutWidth), 0).x));\n vec3 _722 = _719 * a_position;\n vec3 _727 = _677.xyz;\n vec3 _729 = cross(_727, _722) * 2.0;\n vec3 _737 = a_normal / _719;\n vec3 _742 = _677.xyz;\n vec3 _744 = cross(_742, _737) * 2.0;\n _454 = ((_722 + (_729 * _677.w)) + cross(_727, _729)) + vec3(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_585 - globalParams.u_transformLutWidth * (_585 / globalParams.u_transformLutWidth), _585 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_597 - globalParams.u_transformLutWidth * (_597 / globalParams.u_transformLutWidth), _597 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_609 - globalParams.u_transformLutWidth * (_609 / globalParams.u_transformLutWidth), _609 / globalParams.u_transformLutWidth), 0).x));\n _455 = normalize((_737 + (_744 * _677.w)) + cross(_742, _744));\n }\n else\n {\n _454 = a_position;\n _455 = a_normal;\n }\n vec4 _533 = vec4(_454, 1.0);\n int _752 = globalParams.u_materialMapBase + a_atomId;\n gl_Position = _533 * spvWorkaroundRowMajor(globalParams.u_mvpMatrix);\n v0 = _454;\n v1 = (_533 * spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)).xyz;\n v2 = _455 * 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(_752 - globalParams.u_materialMapWidth * (_752 / globalParams.u_materialMapWidth), _752 / globalParams.u_materialMapWidth), 0).x);\n v5 = a_category;\n break;\n } while(false);\n}\n\n",
|
|
460
|
+
"sha256": "e26b2a256974693c2c04aef3b9ea9a320b86e64520fcd4ea50a060aca921320e"
|
|
379
461
|
},
|
|
380
462
|
"fragment": {
|
|
381
|
-
"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_int_2_72\n{\n ivec2 data[72];\n};\n\nstruct _Array_std140_vector_float_4_72\n{\n highp vec4 data[72];\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 _Array_std140_vector_int_2_72 u_bandBounds;\n int u_numBands;\n _Array_std140_vector_float_4_72 u_bandColors;\n highp vec4 u_uncoveredColor;\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_materialTableSPIRV_Cross_DummySampler;\n\nin highp vec3 v0;\nflat in int v4;\nin highp vec3 v3;\nflat in int v5;\nlayout(location = 0) out highp vec4 entryPointParam_fragmentMain;\nin highp vec3 v2;\nin highp vec3 v1;\n\nvoid main()\n{\n bool _1211 = false;\n bool _866 = false;\n do\n {\n _866 = false;\n bool _867;\n do\n {\n int _868 = 0;\n for (;;)\n {\n if (!(_868 < 6))\n {\n break;\n }\n if (_868 >= globalParams.u_clipPlaneCount)\n {\n break;\n }\n if ((dot(globalParams.u_clipPlanes.data[_868].xyz, v0) + globalParams.u_clipPlanes.data[_868].w) < 0.0)\n {\n _866 = true;\n _867 = false;\n break;\n }\n _868++;\n continue;\n }\n if (_866)\n {\n break;\n }\n _866 = true;\n _867 = true;\n break;\n } while(false);\n if (!_867)\n {\n discard;\n }\n highp vec4 _914 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 0), 0);\n highp vec4 _918 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 1), 0);\n highp vec4 _922 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 2), 0);\n highp vec3 _925 = _914.xyz;\n highp float _927 = _914.w;\n highp vec3 _929 = _918.xyz;\n highp float _931 = _918.w;\n highp float _933 = _922.x;\n highp vec3 _1609 = _925;\n highp float _1610 = _927;\n highp float _1611 = _931;\n highp float _1612 = _933;\n highp vec3 _1613 = _929;\n highp vec3 _1637 = _925;\n highp float _1638 = _927;\n highp float _1639 = _931;\n highp float _1640 = _933;\n highp vec3 _1641 = _929;\n highp float _1659 = globalParams.u_surfaceFinishScale;\n highp float _1660 = globalParams.u_surfaceFinishRoughness;\n highp float _1661 = globalParams.u_surfaceFinishColor;\n highp vec3 _1529;\n highp float _1530;\n highp float _1531;\n highp float _1532;\n highp vec3 _1533;\n do\n {\n if (_1659 <= 0.0)\n {\n _1529 = _1637;\n _1530 = _1638;\n _1531 = _1639;\n _1532 = _1640;\n _1533 = _1641;\n break;\n }\n highp vec3 _948 = v3 / vec3(_1659);\n highp vec3 _975 = floor(_948);\n highp vec3 _976 = _948 - _975;\n highp vec3 _981 = (_976 * _976) * (vec3(3.0) - (_976 * 2.0));\n ivec3 _982 = ivec3(_975);\n uint _1021 = (((uint(_982.x) * 2376512323u) + (uint(_982.y) * 3625334849u)) + (uint(_982.z) * 3407524639u)) + 2654435769u;\n uint _1024 = (_1021 ^ (_1021 >> uint(15))) * 739982445u;\n uint _1027 = (_1024 ^ (_1024 >> uint(12))) * 695872825u;\n ivec3 _984 = _982 + ivec3(1, 0, 0);\n uint _1046 = (((uint(_984.x) * 2376512323u) + (uint(_984.y) * 3625334849u)) + (uint(_984.z) * 3407524639u)) + 2654435769u;\n uint _1049 = (_1046 ^ (_1046 >> uint(15))) * 739982445u;\n uint _1052 = (_1049 ^ (_1049 >> uint(12))) * 695872825u;\n ivec3 _986 = _982 + ivec3(0, 1, 0);\n uint _1071 = (((uint(_986.x) * 2376512323u) + (uint(_986.y) * 3625334849u)) + (uint(_986.z) * 3407524639u)) + 2654435769u;\n uint _1074 = (_1071 ^ (_1071 >> uint(15))) * 739982445u;\n uint _1077 = (_1074 ^ (_1074 >> uint(12))) * 695872825u;\n ivec3 _988 = _982 + ivec3(1, 1, 0);\n uint _1096 = (((uint(_988.x) * 2376512323u) + (uint(_988.y) * 3625334849u)) + (uint(_988.z) * 3407524639u)) + 2654435769u;\n uint _1099 = (_1096 ^ (_1096 >> uint(15))) * 739982445u;\n uint _1102 = (_1099 ^ (_1099 >> uint(12))) * 695872825u;\n ivec3 _990 = _982 + ivec3(0, 0, 1);\n uint _1121 = (((uint(_990.x) * 2376512323u) + (uint(_990.y) * 3625334849u)) + (uint(_990.z) * 3407524639u)) + 2654435769u;\n uint _1124 = (_1121 ^ (_1121 >> uint(15))) * 739982445u;\n uint _1127 = (_1124 ^ (_1124 >> uint(12))) * 695872825u;\n ivec3 _992 = _982 + ivec3(1, 0, 1);\n uint _1146 = (((uint(_992.x) * 2376512323u) + (uint(_992.y) * 3625334849u)) + (uint(_992.z) * 3407524639u)) + 2654435769u;\n uint _1149 = (_1146 ^ (_1146 >> uint(15))) * 739982445u;\n uint _1152 = (_1149 ^ (_1149 >> uint(12))) * 695872825u;\n ivec3 _994 = _982 + ivec3(0, 1, 1);\n uint _1171 = (((uint(_994.x) * 2376512323u) + (uint(_994.y) * 3625334849u)) + (uint(_994.z) * 3407524639u)) + 2654435769u;\n uint _1174 = (_1171 ^ (_1171 >> uint(15))) * 739982445u;\n uint _1177 = (_1174 ^ (_1174 >> uint(12))) * 695872825u;\n ivec3 _996 = _982 + ivec3(1);\n uint _1196 = (((uint(_996.x) * 2376512323u) + (uint(_996.y) * 3625334849u)) + (uint(_996.z) * 3407524639u)) + 2654435769u;\n uint _1199 = (_1196 ^ (_1196 >> uint(15))) * 739982445u;\n uint _1202 = (_1199 ^ (_1199 >> uint(12))) * 695872825u;\n highp float _998 = _981.x;\n highp float _1003 = _981.y;\n highp float _951 = (mix(mix(mix(float((_1027 ^ (_1027 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1052 ^ (_1052 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _998), mix(float((_1077 ^ (_1077 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1102 ^ (_1102 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _998), _1003), mix(mix(float((_1127 ^ (_1127 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1152 ^ (_1152 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _998), mix(float((_1177 ^ (_1177 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1202 ^ (_1202 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _998), _1003), _981.z) * 2.0) - 1.0;\n _1529 = clamp(_1637 * (1.0 + (_951 * _1661)), vec3(0.0), vec3(1.0));\n _1530 = _1638;\n _1531 = clamp(_1639 + (_951 * _1660), 0.0, 1.0);\n _1532 = _1640;\n _1533 = _1641;\n break;\n } while(false);\n _1609 = _1529;\n _1610 = _1530;\n _1611 = _1531;\n _1612 = _1532;\n _1613 = _1533;\n _1211 = false;\n highp vec4 _1212;\n do\n {\n int _1213 = 0;\n bool _1214;\n for (;;)\n {\n if (!(_1213 < globalParams.u_numBands))\n {\n break;\n }\n if (v5 >= globalParams.u_bandBounds.data[_1213].x)\n {\n _1214 = v5 < globalParams.u_bandBounds.data[_1213].y;\n }\n else\n {\n _1214 = false;\n }\n if (_1214)\n {\n _1211 = true;\n _1212 = globalParams.u_bandColors.data[_1213];\n break;\n }\n _1213++;\n continue;\n }\n if (_1211)\n {\n break;\n }\n _1211 = true;\n _1212 = globalParams.u_uncoveredColor;\n break;\n } while(false);\n if (globalParams.u_colorSource == 1)\n {\n entryPointParam_fragmentMain = vec4(_1212.xyz, _1212.w * globalParams.u_opacity);\n break;\n }\n if (globalParams.u_colorSource == 2)\n {\n _1609 = mix(_1212.xyz * vec3(0.077399380505084991455078125), pow((_1212.xyz + vec3(0.054999999701976776123046875)) * vec3(0.947867333889007568359375), vec3(2.400000095367431640625)), step(vec3(0.040449999272823333740234375), _1212.xyz));\n }\n if (globalParams.u_colorSource == 3)\n {\n entryPointParam_fragmentMain = vec4(_1609, globalParams.u_opacity);\n break;\n }\n highp vec3 _463 = normalize(v2);\n highp vec3 _1270 = normalize(globalParams.u_viewPosition - v1);\n highp vec3 _1672 = _1609;\n highp float _1673 = _1610;\n highp float _1674 = _1611;\n highp float _1675 = _1612;\n highp vec3 _1676 = _1613;\n highp vec3 _1682 = globalParams.u_environmentSky;\n highp vec3 _1683 = globalParams.u_environmentGround;\n highp vec3 _1684 = globalParams.u_environmentUp;\n int _1271 = 0;\n highp vec3 _1272 = vec3(0.0);\n highp vec3 _1313;\n highp vec3 _1314;\n highp vec3 _1315;\n highp float _1316;\n for (;;)\n {\n if (!(_1271 < 4))\n {\n break;\n }\n if (_1271 < globalParams.u_lightCount)\n {\n do\n {\n bool _1321 = globalParams.u_lightPositions.data[_1271].w == 0.0;\n if (_1321)\n {\n _1314 = globalParams.u_lightPositions.data[_1271].xyz;\n }\n else\n {\n _1314 = globalParams.u_lightPositions.data[_1271].xyz - v1;\n }\n highp float _1330 = dot(_1314, _1314);\n if (_1321)\n {\n _1315 = normalize(globalParams.u_lightPositions.data[_1271].xyz);\n }\n else\n {\n _1315 = _1314 * inversesqrt(_1330);\n }\n if (_1321)\n {\n _1316 = 1.0;\n }\n else\n {\n _1316 = 1.0 / _1330;\n }\n highp float _1346 = dot(_463, _1315);\n if (_1346 <= 0.0)\n {\n _1313 = vec3(0.0);\n break;\n }\n highp vec3 _1351 = _1270 + _1315;\n highp float _1352 = dot(_1351, _1351);\n if (_1352 <= 9.9999999600419720025001879548654e-13)\n {\n _1313 = vec3(0.0);\n break;\n }\n highp vec3 _1357 = _1351 * inversesqrt(_1352);\n highp float _1359 = max(dot(_463, _1270), 0.0);\n highp float _1361 = max(dot(_463, _1357), 0.0);\n highp float _1366 = max(_1674, 0.039999999105930328369140625);\n highp vec3 _1398 = mix(vec3(0.039999999105930328369140625), _1672, vec3(_1673));\n highp float _1401 = _1366 * _1366;\n highp float _1402 = _1401 * _1401;\n highp float _1406 = ((_1361 * _1361) * (_1402 - 1.0)) + 1.0;\n highp float _1417 = _1366 + 1.0;\n highp float _1419 = (_1417 * _1417) * 0.125;\n highp float _1426 = _1366 + 1.0;\n highp float _1428 = (_1426 * _1426) * 0.125;\n highp vec3 _1441 = _1398 + ((vec3(1.0) - _1398) * pow(clamp(1.0 - max(dot(_1357, _1270), 0.0), 0.0, 1.0), 5.0));\n _1313 = ((((clamp((vec3(1.0) - _1441) * (1.0 - _1673), vec3(0.0), vec3(1.0)) * _1672) * vec3(0.3183098733425140380859375)) + ((_1441 * ((_1402 / ((3.1415927410125732421875 * _1406) * _1406)) * ((_1359 / ((_1359 * (1.0 - _1419)) + _1419)) * (_1346 / ((_1346 * (1.0 - _1428)) + _1428))))) / vec3(((4.0 * _1359) * _1346) + 9.9999997473787516355514526367188e-05))) * (globalParams.u_lightColors.data[_1271] * _1316)) * _1346;\n break;\n } while(false);\n _1272 += _1313;\n }\n _1271++;\n continue;\n }\n highp vec3 _1477 = mix(vec3(0.039999999105930328369140625), _1672, vec3(_1673));\n highp vec3 _1488 = _1477 + ((max(vec3(1.0 - max(_1674, 0.039999999105930328369140625)), _1477) - _1477) * pow(clamp(1.0 - max(dot(_463, _1270), 0.0), 0.0, 1.0), 5.0));\n highp vec3 _1311 = (((((clamp((vec3(1.0) - _1488) * (1.0 - _1673), vec3(0.0), vec3(1.0)) * mix(_1683, _1682, vec3((dot(_463, _1684) * 0.5) + 0.5))) * _1672) + (mix(_1683, _1682, vec3((dot(reflect(-_1270, _463), _1684) * 0.5) + 0.5)) * _1488)) * _1675) + _1272) + _1676;\n entryPointParam_fragmentMain = vec4(pow(_1311 / (_1311 + vec3(1.0)), vec3(0.454545438289642333984375)), globalParams.u_opacity);\n break;\n } while(false);\n}\n\n",
|
|
382
|
-
"sha256": "
|
|
463
|
+
"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_int_2_72\n{\n ivec2 data[72];\n};\n\nstruct _Array_std140_vector_float_4_72\n{\n highp vec4 data[72];\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 _Array_std140_vector_int_2_72 u_bandBounds;\n int u_numBands;\n _Array_std140_vector_float_4_72 u_bandColors;\n highp vec4 u_uncoveredColor;\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} globalParams;\n\nuniform highp sampler2D SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler;\n\nin highp vec3 v0;\nflat in int v4;\nin highp vec3 v3;\nflat in int v5;\nlayout(location = 0) out highp vec4 entryPointParam_fragmentMain;\nin highp vec3 v2;\nin highp vec3 v1;\n\nvoid main()\n{\n bool _1211 = false;\n bool _866 = false;\n do\n {\n _866 = false;\n bool _867;\n do\n {\n int _868 = 0;\n for (;;)\n {\n if (!(_868 < 6))\n {\n break;\n }\n if (_868 >= globalParams.u_clipPlaneCount)\n {\n break;\n }\n if ((dot(globalParams.u_clipPlanes.data[_868].xyz, v0) + globalParams.u_clipPlanes.data[_868].w) < 0.0)\n {\n _866 = true;\n _867 = false;\n break;\n }\n _868++;\n continue;\n }\n if (_866)\n {\n break;\n }\n _866 = true;\n _867 = true;\n break;\n } while(false);\n if (!_867)\n {\n discard;\n }\n highp vec4 _914 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 0), 0);\n highp vec4 _918 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 1), 0);\n highp vec4 _922 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 2), 0);\n highp vec3 _925 = _914.xyz;\n highp float _927 = _914.w;\n highp vec3 _929 = _918.xyz;\n highp float _931 = _918.w;\n highp float _933 = _922.x;\n highp vec3 _1609 = _925;\n highp float _1610 = _927;\n highp float _1611 = _931;\n highp float _1612 = _933;\n highp vec3 _1613 = _929;\n highp vec3 _1637 = _925;\n highp float _1638 = _927;\n highp float _1639 = _931;\n highp float _1640 = _933;\n highp vec3 _1641 = _929;\n highp float _1659 = globalParams.u_surfaceFinishScale;\n highp float _1660 = globalParams.u_surfaceFinishRoughness;\n highp float _1661 = globalParams.u_surfaceFinishColor;\n highp vec3 _1529;\n highp float _1530;\n highp float _1531;\n highp float _1532;\n highp vec3 _1533;\n do\n {\n if (_1659 <= 0.0)\n {\n _1529 = _1637;\n _1530 = _1638;\n _1531 = _1639;\n _1532 = _1640;\n _1533 = _1641;\n break;\n }\n highp vec3 _948 = v3 / vec3(_1659);\n highp vec3 _975 = floor(_948);\n highp vec3 _976 = _948 - _975;\n highp vec3 _981 = (_976 * _976) * (vec3(3.0) - (_976 * 2.0));\n ivec3 _982 = ivec3(_975);\n uint _1021 = (((uint(_982.x) * 2376512323u) + (uint(_982.y) * 3625334849u)) + (uint(_982.z) * 3407524639u)) + 2654435769u;\n uint _1024 = (_1021 ^ (_1021 >> uint(15))) * 739982445u;\n uint _1027 = (_1024 ^ (_1024 >> uint(12))) * 695872825u;\n ivec3 _984 = _982 + ivec3(1, 0, 0);\n uint _1046 = (((uint(_984.x) * 2376512323u) + (uint(_984.y) * 3625334849u)) + (uint(_984.z) * 3407524639u)) + 2654435769u;\n uint _1049 = (_1046 ^ (_1046 >> uint(15))) * 739982445u;\n uint _1052 = (_1049 ^ (_1049 >> uint(12))) * 695872825u;\n ivec3 _986 = _982 + ivec3(0, 1, 0);\n uint _1071 = (((uint(_986.x) * 2376512323u) + (uint(_986.y) * 3625334849u)) + (uint(_986.z) * 3407524639u)) + 2654435769u;\n uint _1074 = (_1071 ^ (_1071 >> uint(15))) * 739982445u;\n uint _1077 = (_1074 ^ (_1074 >> uint(12))) * 695872825u;\n ivec3 _988 = _982 + ivec3(1, 1, 0);\n uint _1096 = (((uint(_988.x) * 2376512323u) + (uint(_988.y) * 3625334849u)) + (uint(_988.z) * 3407524639u)) + 2654435769u;\n uint _1099 = (_1096 ^ (_1096 >> uint(15))) * 739982445u;\n uint _1102 = (_1099 ^ (_1099 >> uint(12))) * 695872825u;\n ivec3 _990 = _982 + ivec3(0, 0, 1);\n uint _1121 = (((uint(_990.x) * 2376512323u) + (uint(_990.y) * 3625334849u)) + (uint(_990.z) * 3407524639u)) + 2654435769u;\n uint _1124 = (_1121 ^ (_1121 >> uint(15))) * 739982445u;\n uint _1127 = (_1124 ^ (_1124 >> uint(12))) * 695872825u;\n ivec3 _992 = _982 + ivec3(1, 0, 1);\n uint _1146 = (((uint(_992.x) * 2376512323u) + (uint(_992.y) * 3625334849u)) + (uint(_992.z) * 3407524639u)) + 2654435769u;\n uint _1149 = (_1146 ^ (_1146 >> uint(15))) * 739982445u;\n uint _1152 = (_1149 ^ (_1149 >> uint(12))) * 695872825u;\n ivec3 _994 = _982 + ivec3(0, 1, 1);\n uint _1171 = (((uint(_994.x) * 2376512323u) + (uint(_994.y) * 3625334849u)) + (uint(_994.z) * 3407524639u)) + 2654435769u;\n uint _1174 = (_1171 ^ (_1171 >> uint(15))) * 739982445u;\n uint _1177 = (_1174 ^ (_1174 >> uint(12))) * 695872825u;\n ivec3 _996 = _982 + ivec3(1);\n uint _1196 = (((uint(_996.x) * 2376512323u) + (uint(_996.y) * 3625334849u)) + (uint(_996.z) * 3407524639u)) + 2654435769u;\n uint _1199 = (_1196 ^ (_1196 >> uint(15))) * 739982445u;\n uint _1202 = (_1199 ^ (_1199 >> uint(12))) * 695872825u;\n highp float _998 = _981.x;\n highp float _1003 = _981.y;\n highp float _951 = (mix(mix(mix(float((_1027 ^ (_1027 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1052 ^ (_1052 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _998), mix(float((_1077 ^ (_1077 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1102 ^ (_1102 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _998), _1003), mix(mix(float((_1127 ^ (_1127 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1152 ^ (_1152 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _998), mix(float((_1177 ^ (_1177 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1202 ^ (_1202 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _998), _1003), _981.z) * 2.0) - 1.0;\n _1529 = clamp(_1637 * (1.0 + (_951 * _1661)), vec3(0.0), vec3(1.0));\n _1530 = _1638;\n _1531 = clamp(_1639 + (_951 * _1660), 0.0, 1.0);\n _1532 = _1640;\n _1533 = _1641;\n break;\n } while(false);\n _1609 = _1529;\n _1610 = _1530;\n _1611 = _1531;\n _1612 = _1532;\n _1613 = _1533;\n _1211 = false;\n highp vec4 _1212;\n do\n {\n int _1213 = 0;\n bool _1214;\n for (;;)\n {\n if (!(_1213 < globalParams.u_numBands))\n {\n break;\n }\n if (v5 >= globalParams.u_bandBounds.data[_1213].x)\n {\n _1214 = v5 < globalParams.u_bandBounds.data[_1213].y;\n }\n else\n {\n _1214 = false;\n }\n if (_1214)\n {\n _1211 = true;\n _1212 = globalParams.u_bandColors.data[_1213];\n break;\n }\n _1213++;\n continue;\n }\n if (_1211)\n {\n break;\n }\n _1211 = true;\n _1212 = globalParams.u_uncoveredColor;\n break;\n } while(false);\n if (globalParams.u_colorSource == 1)\n {\n entryPointParam_fragmentMain = vec4(_1212.xyz, _1212.w * globalParams.u_opacity);\n break;\n }\n if (globalParams.u_colorSource == 2)\n {\n _1609 = mix(_1212.xyz * vec3(0.077399380505084991455078125), pow((_1212.xyz + vec3(0.054999999701976776123046875)) * vec3(0.947867333889007568359375), vec3(2.400000095367431640625)), step(vec3(0.040449999272823333740234375), _1212.xyz));\n }\n if (globalParams.u_colorSource == 3)\n {\n entryPointParam_fragmentMain = vec4(_1609, globalParams.u_opacity);\n break;\n }\n highp vec3 _462 = normalize(v2);\n highp vec3 _1270 = normalize(globalParams.u_viewPosition - v1);\n highp vec3 _1672 = _1609;\n highp float _1673 = _1610;\n highp float _1674 = _1611;\n highp float _1675 = _1612;\n highp vec3 _1676 = _1613;\n highp vec3 _1682 = globalParams.u_environmentSky;\n highp vec3 _1683 = globalParams.u_environmentGround;\n highp vec3 _1684 = globalParams.u_environmentUp;\n int _1271 = 0;\n highp vec3 _1272 = vec3(0.0);\n highp vec3 _1313;\n highp vec3 _1314;\n highp vec3 _1315;\n highp float _1316;\n for (;;)\n {\n if (!(_1271 < 4))\n {\n break;\n }\n if (_1271 < globalParams.u_lightCount)\n {\n do\n {\n bool _1321 = globalParams.u_lightPositions.data[_1271].w == 0.0;\n if (_1321)\n {\n _1314 = globalParams.u_lightPositions.data[_1271].xyz;\n }\n else\n {\n _1314 = globalParams.u_lightPositions.data[_1271].xyz - v1;\n }\n highp float _1330 = dot(_1314, _1314);\n if (_1321)\n {\n _1315 = normalize(globalParams.u_lightPositions.data[_1271].xyz);\n }\n else\n {\n _1315 = _1314 * inversesqrt(_1330);\n }\n if (_1321)\n {\n _1316 = 1.0;\n }\n else\n {\n _1316 = 1.0 / _1330;\n }\n highp float _1346 = dot(_462, _1315);\n if (_1346 <= 0.0)\n {\n _1313 = vec3(0.0);\n break;\n }\n highp vec3 _1351 = _1270 + _1315;\n highp float _1352 = dot(_1351, _1351);\n if (_1352 <= 9.9999999600419720025001879548654e-13)\n {\n _1313 = vec3(0.0);\n break;\n }\n highp vec3 _1357 = _1351 * inversesqrt(_1352);\n highp float _1359 = max(dot(_462, _1270), 0.0);\n highp float _1361 = max(dot(_462, _1357), 0.0);\n highp float _1366 = max(_1674, 0.039999999105930328369140625);\n highp vec3 _1398 = mix(vec3(0.039999999105930328369140625), _1672, vec3(_1673));\n highp float _1401 = _1366 * _1366;\n highp float _1402 = _1401 * _1401;\n highp float _1406 = ((_1361 * _1361) * (_1402 - 1.0)) + 1.0;\n highp float _1417 = _1366 + 1.0;\n highp float _1419 = (_1417 * _1417) * 0.125;\n highp float _1426 = _1366 + 1.0;\n highp float _1428 = (_1426 * _1426) * 0.125;\n highp vec3 _1441 = _1398 + ((vec3(1.0) - _1398) * pow(clamp(1.0 - max(dot(_1357, _1270), 0.0), 0.0, 1.0), 5.0));\n _1313 = ((((clamp((vec3(1.0) - _1441) * (1.0 - _1673), vec3(0.0), vec3(1.0)) * _1672) * vec3(0.3183098733425140380859375)) + ((_1441 * ((_1402 / ((3.1415927410125732421875 * _1406) * _1406)) * ((_1359 / ((_1359 * (1.0 - _1419)) + _1419)) * (_1346 / ((_1346 * (1.0 - _1428)) + _1428))))) / vec3(((4.0 * _1359) * _1346) + 9.9999997473787516355514526367188e-05))) * (globalParams.u_lightColors.data[_1271] * _1316)) * _1346;\n break;\n } while(false);\n _1272 += _1313;\n }\n _1271++;\n continue;\n }\n highp vec3 _1477 = mix(vec3(0.039999999105930328369140625), _1672, vec3(_1673));\n highp vec3 _1488 = _1477 + ((max(vec3(1.0 - max(_1674, 0.039999999105930328369140625)), _1477) - _1477) * pow(clamp(1.0 - max(dot(_462, _1270), 0.0), 0.0, 1.0), 5.0));\n highp vec3 _1311 = (((((clamp((vec3(1.0) - _1488) * (1.0 - _1673), vec3(0.0), vec3(1.0)) * mix(_1683, _1682, vec3((dot(_462, _1684) * 0.5) + 0.5))) * _1672) + (mix(_1683, _1682, vec3((dot(reflect(-_1270, _462), _1684) * 0.5) + 0.5)) * _1488)) * _1675) + _1272) + _1676;\n entryPointParam_fragmentMain = vec4(pow(_1311 / (_1311 + vec3(1.0)), vec3(0.454545438289642333984375)), globalParams.u_opacity);\n break;\n } while(false);\n}\n\n",
|
|
464
|
+
"sha256": "32be8186e18c414ce07a9181603f28247b945861c599198b9e5517ae387b34cd"
|
|
383
465
|
}
|
|
384
466
|
}
|
|
385
467
|
}
|