@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",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"capabilities": [
|
|
16
16
|
"deform6",
|
|
17
17
|
"fringe-int",
|
|
18
|
+
"material-map-r16ui",
|
|
18
19
|
"material",
|
|
19
20
|
"material-table",
|
|
20
21
|
"material-surface-finish",
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
"mask-lut-r8ui",
|
|
24
25
|
"transform",
|
|
25
26
|
"transform-lut-r32ui",
|
|
27
|
+
"transform-map-r16ui",
|
|
26
28
|
"clip"
|
|
27
29
|
],
|
|
28
30
|
"inputs": [
|
|
@@ -42,25 +44,15 @@
|
|
|
42
44
|
"semantic": "rotation"
|
|
43
45
|
},
|
|
44
46
|
{
|
|
45
|
-
"name": "
|
|
47
|
+
"name": "a_atomId",
|
|
46
48
|
"type": "int",
|
|
47
|
-
"semantic": "
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"name": "a_componentId",
|
|
51
|
-
"type": "int",
|
|
52
|
-
"semantic": "component-id"
|
|
49
|
+
"semantic": "atom-id"
|
|
53
50
|
},
|
|
54
51
|
{
|
|
55
52
|
"name": "a_normal",
|
|
56
53
|
"type": "vec3",
|
|
57
54
|
"semantic": "normal"
|
|
58
55
|
},
|
|
59
|
-
{
|
|
60
|
-
"name": "a_materialId",
|
|
61
|
-
"type": "int",
|
|
62
|
-
"semantic": "material-id"
|
|
63
|
-
},
|
|
64
56
|
{
|
|
65
57
|
"name": "a_category",
|
|
66
58
|
"type": "int",
|
|
@@ -93,6 +85,10 @@
|
|
|
93
85
|
"name": "u_maskLutWidth",
|
|
94
86
|
"type": "int"
|
|
95
87
|
},
|
|
88
|
+
{
|
|
89
|
+
"name": "u_maskLutBase",
|
|
90
|
+
"type": "int"
|
|
91
|
+
},
|
|
96
92
|
{
|
|
97
93
|
"name": "u_transformLutWidth",
|
|
98
94
|
"type": "int"
|
|
@@ -101,6 +97,18 @@
|
|
|
101
97
|
"name": "u_transformLutStride",
|
|
102
98
|
"type": "int"
|
|
103
99
|
},
|
|
100
|
+
{
|
|
101
|
+
"name": "u_transformLutBase",
|
|
102
|
+
"type": "int"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "u_transformMapWidth",
|
|
106
|
+
"type": "int"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "u_transformMapBase",
|
|
110
|
+
"type": "int"
|
|
111
|
+
},
|
|
104
112
|
{
|
|
105
113
|
"name": "u_clipPlanes",
|
|
106
114
|
"type": "vec4[6]"
|
|
@@ -125,6 +133,14 @@
|
|
|
125
133
|
"name": "u_uncoveredColor",
|
|
126
134
|
"type": "vec4"
|
|
127
135
|
},
|
|
136
|
+
{
|
|
137
|
+
"name": "u_materialMapWidth",
|
|
138
|
+
"type": "int"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "u_materialMapBase",
|
|
142
|
+
"type": "int"
|
|
143
|
+
},
|
|
128
144
|
{
|
|
129
145
|
"name": "u_viewPosition",
|
|
130
146
|
"type": "vec3"
|
|
@@ -208,6 +224,18 @@
|
|
|
208
224
|
"format": "r32ui",
|
|
209
225
|
"semantic": "transform"
|
|
210
226
|
},
|
|
227
|
+
{
|
|
228
|
+
"name": "u_transformMap",
|
|
229
|
+
"type": "Texture2D<uint4>",
|
|
230
|
+
"format": "r16ui",
|
|
231
|
+
"semantic": "transform-map"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"name": "u_materialMap",
|
|
235
|
+
"type": "Texture2D<uint4>",
|
|
236
|
+
"format": "r16ui",
|
|
237
|
+
"semantic": "material-map"
|
|
238
|
+
},
|
|
211
239
|
{
|
|
212
240
|
"name": "u_materialTable",
|
|
213
241
|
"type": "Texture2D<float4>",
|
|
@@ -218,10 +246,10 @@
|
|
|
218
246
|
"textures": [],
|
|
219
247
|
"samplers": []
|
|
220
248
|
},
|
|
221
|
-
"contractSha256": "
|
|
249
|
+
"contractSha256": "156f67830d4ff34ce66326f5dc01e2fd382b5c72d455c3ba75a5e857c017bdad",
|
|
222
250
|
"languages": {
|
|
223
251
|
"glsl": {
|
|
224
|
-
"blockSize":
|
|
252
|
+
"blockSize": 2912,
|
|
225
253
|
"layout": {
|
|
226
254
|
"u_mvpMatrix": {
|
|
227
255
|
"offset": 0,
|
|
@@ -255,134 +283,170 @@
|
|
|
255
283
|
"elementStride": 0,
|
|
256
284
|
"encoding": "int"
|
|
257
285
|
},
|
|
258
|
-
"
|
|
286
|
+
"u_maskLutBase": {
|
|
259
287
|
"offset": 160,
|
|
260
288
|
"size": 4,
|
|
261
289
|
"elementStride": 0,
|
|
262
290
|
"encoding": "int"
|
|
263
291
|
},
|
|
264
|
-
"
|
|
292
|
+
"u_transformLutWidth": {
|
|
265
293
|
"offset": 164,
|
|
266
294
|
"size": 4,
|
|
267
295
|
"elementStride": 0,
|
|
268
296
|
"encoding": "int"
|
|
269
297
|
},
|
|
270
|
-
"
|
|
298
|
+
"u_transformLutStride": {
|
|
299
|
+
"offset": 168,
|
|
300
|
+
"size": 4,
|
|
301
|
+
"elementStride": 0,
|
|
302
|
+
"encoding": "int"
|
|
303
|
+
},
|
|
304
|
+
"u_transformLutBase": {
|
|
305
|
+
"offset": 172,
|
|
306
|
+
"size": 4,
|
|
307
|
+
"elementStride": 0,
|
|
308
|
+
"encoding": "int"
|
|
309
|
+
},
|
|
310
|
+
"u_transformMapWidth": {
|
|
271
311
|
"offset": 176,
|
|
312
|
+
"size": 4,
|
|
313
|
+
"elementStride": 0,
|
|
314
|
+
"encoding": "int"
|
|
315
|
+
},
|
|
316
|
+
"u_transformMapBase": {
|
|
317
|
+
"offset": 180,
|
|
318
|
+
"size": 4,
|
|
319
|
+
"elementStride": 0,
|
|
320
|
+
"encoding": "int"
|
|
321
|
+
},
|
|
322
|
+
"u_clipPlanes": {
|
|
323
|
+
"offset": 192,
|
|
272
324
|
"size": 96,
|
|
273
325
|
"elementStride": 16,
|
|
274
326
|
"encoding": "vec4[]"
|
|
275
327
|
},
|
|
276
328
|
"u_clipPlaneCount": {
|
|
277
|
-
"offset":
|
|
329
|
+
"offset": 288,
|
|
278
330
|
"size": 4,
|
|
279
331
|
"elementStride": 0,
|
|
280
332
|
"encoding": "int"
|
|
281
333
|
},
|
|
282
334
|
"u_bandBounds": {
|
|
283
|
-
"offset":
|
|
335
|
+
"offset": 304,
|
|
284
336
|
"size": 1152,
|
|
285
337
|
"elementStride": 16,
|
|
286
338
|
"encoding": "ivec2[]"
|
|
287
339
|
},
|
|
288
340
|
"u_numBands": {
|
|
289
|
-
"offset":
|
|
341
|
+
"offset": 1456,
|
|
290
342
|
"size": 4,
|
|
291
343
|
"elementStride": 0,
|
|
292
344
|
"encoding": "int"
|
|
293
345
|
},
|
|
294
346
|
"u_bandColors": {
|
|
295
|
-
"offset":
|
|
347
|
+
"offset": 1472,
|
|
296
348
|
"size": 1152,
|
|
297
349
|
"elementStride": 16,
|
|
298
350
|
"encoding": "vec4[]"
|
|
299
351
|
},
|
|
300
352
|
"u_uncoveredColor": {
|
|
301
|
-
"offset":
|
|
353
|
+
"offset": 2624,
|
|
302
354
|
"size": 16,
|
|
303
355
|
"elementStride": 4,
|
|
304
356
|
"encoding": "vec4"
|
|
305
357
|
},
|
|
358
|
+
"u_materialMapWidth": {
|
|
359
|
+
"offset": 2640,
|
|
360
|
+
"size": 4,
|
|
361
|
+
"elementStride": 0,
|
|
362
|
+
"encoding": "int"
|
|
363
|
+
},
|
|
364
|
+
"u_materialMapBase": {
|
|
365
|
+
"offset": 2644,
|
|
366
|
+
"size": 4,
|
|
367
|
+
"elementStride": 0,
|
|
368
|
+
"encoding": "int"
|
|
369
|
+
},
|
|
306
370
|
"u_viewPosition": {
|
|
307
|
-
"offset":
|
|
371
|
+
"offset": 2656,
|
|
308
372
|
"size": 12,
|
|
309
373
|
"elementStride": 4,
|
|
310
374
|
"encoding": "vec3"
|
|
311
375
|
},
|
|
312
376
|
"u_environmentSky": {
|
|
313
|
-
"offset":
|
|
377
|
+
"offset": 2672,
|
|
314
378
|
"size": 12,
|
|
315
379
|
"elementStride": 4,
|
|
316
380
|
"encoding": "vec3"
|
|
317
381
|
},
|
|
318
382
|
"u_environmentGround": {
|
|
319
|
-
"offset":
|
|
383
|
+
"offset": 2688,
|
|
320
384
|
"size": 12,
|
|
321
385
|
"elementStride": 4,
|
|
322
386
|
"encoding": "vec3"
|
|
323
387
|
},
|
|
324
388
|
"u_environmentUp": {
|
|
325
|
-
"offset":
|
|
389
|
+
"offset": 2704,
|
|
326
390
|
"size": 12,
|
|
327
391
|
"elementStride": 4,
|
|
328
392
|
"encoding": "vec3"
|
|
329
393
|
},
|
|
330
394
|
"u_lightPositions": {
|
|
331
|
-
"offset":
|
|
395
|
+
"offset": 2720,
|
|
332
396
|
"size": 64,
|
|
333
397
|
"elementStride": 16,
|
|
334
398
|
"encoding": "vec4[]"
|
|
335
399
|
},
|
|
336
400
|
"u_lightColors": {
|
|
337
|
-
"offset":
|
|
401
|
+
"offset": 2784,
|
|
338
402
|
"size": 64,
|
|
339
403
|
"elementStride": 16,
|
|
340
404
|
"encoding": "vec3[]"
|
|
341
405
|
},
|
|
342
406
|
"u_lightCount": {
|
|
343
|
-
"offset":
|
|
407
|
+
"offset": 2848,
|
|
344
408
|
"size": 4,
|
|
345
409
|
"elementStride": 0,
|
|
346
410
|
"encoding": "int"
|
|
347
411
|
},
|
|
348
412
|
"u_surfaceFinishScale": {
|
|
349
|
-
"offset":
|
|
413
|
+
"offset": 2852,
|
|
350
414
|
"size": 4,
|
|
351
415
|
"elementStride": 0,
|
|
352
416
|
"encoding": "float"
|
|
353
417
|
},
|
|
354
418
|
"u_surfaceFinishRoughness": {
|
|
355
|
-
"offset":
|
|
419
|
+
"offset": 2856,
|
|
356
420
|
"size": 4,
|
|
357
421
|
"elementStride": 0,
|
|
358
422
|
"encoding": "float"
|
|
359
423
|
},
|
|
360
424
|
"u_surfaceFinishColor": {
|
|
361
|
-
"offset":
|
|
425
|
+
"offset": 2860,
|
|
362
426
|
"size": 4,
|
|
363
427
|
"elementStride": 0,
|
|
364
428
|
"encoding": "float"
|
|
365
429
|
},
|
|
366
430
|
"u_colorSource": {
|
|
367
|
-
"offset":
|
|
431
|
+
"offset": 2864,
|
|
368
432
|
"size": 4,
|
|
369
433
|
"elementStride": 0,
|
|
370
434
|
"encoding": "int"
|
|
371
435
|
},
|
|
372
436
|
"u_opacity": {
|
|
373
|
-
"offset":
|
|
437
|
+
"offset": 2868,
|
|
374
438
|
"size": 4,
|
|
375
439
|
"elementStride": 0,
|
|
376
440
|
"encoding": "float"
|
|
377
441
|
},
|
|
378
442
|
"u_capTint": {
|
|
379
|
-
"offset":
|
|
443
|
+
"offset": 2880,
|
|
380
444
|
"size": 16,
|
|
381
445
|
"elementStride": 4,
|
|
382
446
|
"encoding": "vec4"
|
|
383
447
|
},
|
|
384
448
|
"u_modelEyePosition": {
|
|
385
|
-
"offset":
|
|
449
|
+
"offset": 2896,
|
|
386
450
|
"size": 12,
|
|
387
451
|
"elementStride": 4,
|
|
388
452
|
"encoding": "vec3"
|
|
@@ -398,6 +462,15 @@
|
|
|
398
462
|
"stage": "vertex",
|
|
399
463
|
"unit": 0
|
|
400
464
|
},
|
|
465
|
+
{
|
|
466
|
+
"semantic": "material-map",
|
|
467
|
+
"texture": "u_materialMap",
|
|
468
|
+
"sampler": null,
|
|
469
|
+
"uniform": "SPIRV_Cross_Combinedu_materialMapSPIRV_Cross_DummySampler",
|
|
470
|
+
"component": "uint",
|
|
471
|
+
"stage": "vertex",
|
|
472
|
+
"unit": 1
|
|
473
|
+
},
|
|
401
474
|
{
|
|
402
475
|
"semantic": "transform",
|
|
403
476
|
"texture": "u_transformLut",
|
|
@@ -405,7 +478,16 @@
|
|
|
405
478
|
"uniform": "SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler",
|
|
406
479
|
"component": "uint",
|
|
407
480
|
"stage": "vertex",
|
|
408
|
-
"unit":
|
|
481
|
+
"unit": 2
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"semantic": "transform-map",
|
|
485
|
+
"texture": "u_transformMap",
|
|
486
|
+
"sampler": null,
|
|
487
|
+
"uniform": "SPIRV_Cross_Combinedu_transformMapSPIRV_Cross_DummySampler",
|
|
488
|
+
"component": "uint",
|
|
489
|
+
"stage": "vertex",
|
|
490
|
+
"unit": 3
|
|
409
491
|
},
|
|
410
492
|
{
|
|
411
493
|
"semantic": "material",
|
|
@@ -414,17 +496,17 @@
|
|
|
414
496
|
"uniform": "SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler",
|
|
415
497
|
"component": "float",
|
|
416
498
|
"stage": "fragment",
|
|
417
|
-
"unit":
|
|
499
|
+
"unit": 4
|
|
418
500
|
}
|
|
419
501
|
],
|
|
420
502
|
"stages": {
|
|
421
503
|
"vertex": {
|
|
422
|
-
"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 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
|
|
423
|
-
"sha256": "
|
|
504
|
+
"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 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;\nflat out int v7;\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_category;\nlayout(location = 6) 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 _516 = globalParams.u_maskLutBase + a_atomId;\n if (!(texelFetch(SPIRV_Cross_Combinedu_maskLutSPIRV_Cross_DummySampler, ivec2(_516 - globalParams.u_maskLutWidth * (_516 / globalParams.u_maskLutWidth), _516 / 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 v7 = 0;\n break;\n }\n vec3 _547 = a_position - globalParams.u_deformRotationCenter;\n float _548 = length(a_rotation);\n vec3 _544;\n if (_548 > 9.9999999392252902907785028219223e-09)\n {\n vec3 _552 = a_rotation / vec3(_548);\n float _553 = cos(_548);\n _544 = ((_547 * _553) + (cross(_552, _547) * sin(_548))) + ((_552 * dot(_552, _547)) * (1.0 - _553));\n }\n else\n {\n _544 = _547;\n }\n vec3 _569 = (globalParams.u_deformRotationCenter + _544) + (globalParams.u_deformScale * a_deformation);\n int _686 = globalParams.u_transformMapBase + a_atomId;\n int _694 = int(texelFetch(SPIRV_Cross_Combinedu_transformMapSPIRV_Cross_DummySampler, ivec2(_686 - globalParams.u_transformMapWidth * (_686 / globalParams.u_transformMapWidth), _686 / globalParams.u_transformMapWidth), 0).x);\n int _698 = (globalParams.u_transformLutBase + _694) * globalParams.u_transformLutStride;\n int _570;\n vec3 _571;\n vec3 _572;\n if (texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_698 - globalParams.u_transformLutWidth * (_698 / globalParams.u_transformLutWidth), _698 / globalParams.u_transformLutWidth), 0).x != 0u)\n {\n int _714 = ((globalParams.u_transformLutBase + _694) * globalParams.u_transformLutStride) + 1;\n int _726 = ((globalParams.u_transformLutBase + _694) * globalParams.u_transformLutStride) + 2;\n int _738 = ((globalParams.u_transformLutBase + _694) * globalParams.u_transformLutStride) + 3;\n int _756 = ((globalParams.u_transformLutBase + _694) * globalParams.u_transformLutStride) + 4;\n int _768 = ((globalParams.u_transformLutBase + _694) * globalParams.u_transformLutStride) + 5;\n int _780 = ((globalParams.u_transformLutBase + _694) * globalParams.u_transformLutStride) + 6;\n int _792 = ((globalParams.u_transformLutBase + _694) * globalParams.u_transformLutStride) + 7;\n vec4 _806 = vec4(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_756 - globalParams.u_transformLutWidth * (_756 / globalParams.u_transformLutWidth), _756 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_768 - globalParams.u_transformLutWidth * (_768 / globalParams.u_transformLutWidth), _768 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_780 - globalParams.u_transformLutWidth * (_780 / globalParams.u_transformLutWidth), _780 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_792 - globalParams.u_transformLutWidth * (_792 / globalParams.u_transformLutWidth), _792 / globalParams.u_transformLutWidth), 0).x));\n int _811 = ((globalParams.u_transformLutBase + _694) * globalParams.u_transformLutStride) + 8;\n int _823 = ((globalParams.u_transformLutBase + _694) * globalParams.u_transformLutStride) + 9;\n int _835 = ((globalParams.u_transformLutBase + _694) * globalParams.u_transformLutStride) + 10;\n vec3 _848 = vec3(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_811 - globalParams.u_transformLutWidth * (_811 / globalParams.u_transformLutWidth), _811 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_823 - globalParams.u_transformLutWidth * (_823 / globalParams.u_transformLutWidth), _823 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_835 - globalParams.u_transformLutWidth * (_835 / globalParams.u_transformLutWidth), _835 / globalParams.u_transformLutWidth), 0).x));\n vec3 _851 = _848 * _569;\n vec3 _856 = _806.xyz;\n vec3 _858 = cross(_856, _851) * 2.0;\n vec3 _866 = a_normal / _848;\n vec3 _871 = _806.xyz;\n vec3 _873 = cross(_871, _866) * 2.0;\n if (((_848.x * _848.y) * _848.z) < 0.0)\n {\n _570 = 1;\n }\n else\n {\n _570 = 0;\n }\n _571 = ((_851 + (_858 * _806.w)) + cross(_856, _858)) + vec3(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_714 - globalParams.u_transformLutWidth * (_714 / globalParams.u_transformLutWidth), _714 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_726 - globalParams.u_transformLutWidth * (_726 / globalParams.u_transformLutWidth), _726 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_738 - globalParams.u_transformLutWidth * (_738 / globalParams.u_transformLutWidth), _738 / globalParams.u_transformLutWidth), 0).x));\n _572 = normalize((_866 + (_873 * _806.w)) + cross(_871, _873));\n }\n else\n {\n _571 = _569;\n _572 = a_normal;\n _570 = 0;\n }\n vec4 _659 = vec4(_571, 1.0);\n int _881 = globalParams.u_materialMapBase + a_atomId;\n gl_Position = _659 * spvWorkaroundRowMajor(globalParams.u_mvpMatrix);\n v0 = _571;\n v1 = (_659 * spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)).xyz;\n v2 = _572 * 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(_881 - globalParams.u_materialMapWidth * (_881 / globalParams.u_materialMapWidth), _881 / globalParams.u_materialMapWidth), 0).x);\n v5 = a_category;\n v6 = a_capEnabled;\n v7 = _570;\n break;\n } while(false);\n}\n\n",
|
|
505
|
+
"sha256": "233cac8ca817be2bf286ae1f42b6ac3de91731f23523afd7a773b9fb4c32e37b"
|
|
424
506
|
},
|
|
425
507
|
"fragment": {
|
|
426
|
-
"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 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 v7;\nflat in int v6;\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\nhighp mat4 spvWorkaroundRowMajor(highp mat4 wrap) { return wrap; }\nmediump mat4 spvWorkaroundRowMajorMP(mediump mat4 wrap) { return wrap; }\n\nvoid main()\n{\n bool _1539 = false;\n bool _1110 = false;\n do\n {\n _1110 = false;\n bool _1111;\n do\n {\n int _1112 = 0;\n for (;;)\n {\n if (!(_1112 < 6))\n {\n break;\n }\n if (_1112 >= globalParams.u_clipPlaneCount)\n {\n break;\n }\n if ((dot(globalParams.u_clipPlanes.data[_1112].xyz, v0) + globalParams.u_clipPlanes.data[_1112].w) < 0.0)\n {\n _1110 = true;\n _1111 = false;\n break;\n }\n _1112++;\n continue;\n }\n if (_1110)\n {\n break;\n }\n _1110 = true;\n _1111 = true;\n break;\n } while(false);\n if (!_1111)\n {\n discard;\n }\n bool _1156 = gl_FrontFacing != (v7 != 0);\n bool _1157;\n if (!_1156)\n {\n _1157 = v6 == 0;\n }\n else\n {\n _1157 = false;\n }\n if (_1157)\n {\n discard;\n }\n highp vec3 _182 = v0 - globalParams.u_modelEyePosition;\n int _1166 = -1;\n highp float _1168 = 0.0;\n int _1167 = 0;\n bool _1169;\n int _1170;\n highp float _1171;\n for (;;)\n {\n bool _1177_ladder_break = false;\n do\n {\n if (!(_1167 < 6))\n {\n _1177_ladder_break = true;\n break;\n }\n if (_1167 >= globalParams.u_clipPlaneCount)\n {\n _1177_ladder_break = true;\n break;\n }\n highp float _1192 = dot(globalParams.u_clipPlanes.data[_1167].xyz, _182);\n if (_1192 <= 0.0)\n {\n break;\n }\n highp float _1198 = (-(dot(globalParams.u_clipPlanes.data[_1167].xyz, globalParams.u_modelEyePosition) + globalParams.u_clipPlanes.data[_1167].w)) / _1192;\n if (_1166 < 0)\n {\n _1169 = true;\n }\n else\n {\n _1169 = _1198 > _1168;\n }\n if (_1169)\n {\n _1170 = _1167;\n _1171 = _1198;\n }\n else\n {\n _1170 = _1166;\n _1171 = _1168;\n }\n _1166 = _1170;\n _1168 = _1171;\n break;\n } while(false);\n if (_1177_ladder_break)\n {\n break;\n }\n _1167++;\n continue;\n }\n bool _7;\n if (_1166 < 0)\n {\n bool _1228;\n if (!_1156)\n {\n _1228 = v6 != 0;\n }\n else\n {\n _1228 = false;\n }\n _7 = _1228;\n }\n else\n {\n _7 = false;\n }\n if (_7)\n {\n discard;\n }\n highp vec4 _1242 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 0), 0);\n highp vec4 _1246 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 1), 0);\n highp vec4 _1250 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 2), 0);\n highp vec3 _1253 = _1242.xyz;\n highp float _1255 = _1242.w;\n highp vec3 _1257 = _1246.xyz;\n highp float _1259 = _1246.w;\n highp float _1261 = _1250.x;\n highp vec3 _2000 = _1253;\n highp float _2001 = _1255;\n highp float _2002 = _1259;\n highp float _2003 = _1261;\n highp vec3 _2004 = _1257;\n highp vec3 _2028 = _1253;\n highp float _2029 = _1255;\n highp float _2030 = _1259;\n highp float _2031 = _1261;\n highp vec3 _2032 = _1257;\n highp float _2050 = globalParams.u_surfaceFinishScale;\n highp float _2051 = globalParams.u_surfaceFinishRoughness;\n highp float _2052 = globalParams.u_surfaceFinishColor;\n highp vec3 _1920;\n highp float _1921;\n highp float _1922;\n highp float _1923;\n highp vec3 _1924;\n do\n {\n if (_2050 <= 0.0)\n {\n _1920 = _2028;\n _1921 = _2029;\n _1922 = _2030;\n _1923 = _2031;\n _1924 = _2032;\n break;\n }\n highp vec3 _1276 = v3 / vec3(_2050);\n highp vec3 _1303 = floor(_1276);\n highp vec3 _1304 = _1276 - _1303;\n highp vec3 _1309 = (_1304 * _1304) * (vec3(3.0) - (_1304 * 2.0));\n ivec3 _1310 = ivec3(_1303);\n uint _1349 = (((uint(_1310.x) * 2376512323u) + (uint(_1310.y) * 3625334849u)) + (uint(_1310.z) * 3407524639u)) + 2654435769u;\n uint _1352 = (_1349 ^ (_1349 >> uint(15))) * 739982445u;\n uint _1355 = (_1352 ^ (_1352 >> uint(12))) * 695872825u;\n ivec3 _1312 = _1310 + ivec3(1, 0, 0);\n uint _1374 = (((uint(_1312.x) * 2376512323u) + (uint(_1312.y) * 3625334849u)) + (uint(_1312.z) * 3407524639u)) + 2654435769u;\n uint _1377 = (_1374 ^ (_1374 >> uint(15))) * 739982445u;\n uint _1380 = (_1377 ^ (_1377 >> uint(12))) * 695872825u;\n ivec3 _1314 = _1310 + ivec3(0, 1, 0);\n uint _1399 = (((uint(_1314.x) * 2376512323u) + (uint(_1314.y) * 3625334849u)) + (uint(_1314.z) * 3407524639u)) + 2654435769u;\n uint _1402 = (_1399 ^ (_1399 >> uint(15))) * 739982445u;\n uint _1405 = (_1402 ^ (_1402 >> uint(12))) * 695872825u;\n ivec3 _1316 = _1310 + ivec3(1, 1, 0);\n uint _1424 = (((uint(_1316.x) * 2376512323u) + (uint(_1316.y) * 3625334849u)) + (uint(_1316.z) * 3407524639u)) + 2654435769u;\n uint _1427 = (_1424 ^ (_1424 >> uint(15))) * 739982445u;\n uint _1430 = (_1427 ^ (_1427 >> uint(12))) * 695872825u;\n ivec3 _1318 = _1310 + ivec3(0, 0, 1);\n uint _1449 = (((uint(_1318.x) * 2376512323u) + (uint(_1318.y) * 3625334849u)) + (uint(_1318.z) * 3407524639u)) + 2654435769u;\n uint _1452 = (_1449 ^ (_1449 >> uint(15))) * 739982445u;\n uint _1455 = (_1452 ^ (_1452 >> uint(12))) * 695872825u;\n ivec3 _1320 = _1310 + ivec3(1, 0, 1);\n uint _1474 = (((uint(_1320.x) * 2376512323u) + (uint(_1320.y) * 3625334849u)) + (uint(_1320.z) * 3407524639u)) + 2654435769u;\n uint _1477 = (_1474 ^ (_1474 >> uint(15))) * 739982445u;\n uint _1480 = (_1477 ^ (_1477 >> uint(12))) * 695872825u;\n ivec3 _1322 = _1310 + ivec3(0, 1, 1);\n uint _1499 = (((uint(_1322.x) * 2376512323u) + (uint(_1322.y) * 3625334849u)) + (uint(_1322.z) * 3407524639u)) + 2654435769u;\n uint _1502 = (_1499 ^ (_1499 >> uint(15))) * 739982445u;\n uint _1505 = (_1502 ^ (_1502 >> uint(12))) * 695872825u;\n ivec3 _1324 = _1310 + ivec3(1);\n uint _1524 = (((uint(_1324.x) * 2376512323u) + (uint(_1324.y) * 3625334849u)) + (uint(_1324.z) * 3407524639u)) + 2654435769u;\n uint _1527 = (_1524 ^ (_1524 >> uint(15))) * 739982445u;\n uint _1530 = (_1527 ^ (_1527 >> uint(12))) * 695872825u;\n highp float _1326 = _1309.x;\n highp float _1331 = _1309.y;\n highp float _1279 = (mix(mix(mix(float((_1355 ^ (_1355 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1380 ^ (_1380 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1326), mix(float((_1405 ^ (_1405 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1430 ^ (_1430 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1326), _1331), mix(mix(float((_1455 ^ (_1455 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1480 ^ (_1480 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1326), mix(float((_1505 ^ (_1505 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1530 ^ (_1530 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1326), _1331), _1309.z) * 2.0) - 1.0;\n _1920 = clamp(_2028 * (1.0 + (_1279 * _2052)), vec3(0.0), vec3(1.0));\n _1921 = _2029;\n _1922 = clamp(_2030 + (_1279 * _2051), 0.0, 1.0);\n _1923 = _2031;\n _1924 = _2032;\n break;\n } while(false);\n _2000 = _1920;\n _2001 = _1921;\n _2002 = _1922;\n _2003 = _1923;\n _2004 = _1924;\n _1539 = false;\n highp vec4 _1540;\n do\n {\n int _1541 = 0;\n bool _1542;\n for (;;)\n {\n if (!(_1541 < globalParams.u_numBands))\n {\n break;\n }\n if (v5 >= globalParams.u_bandBounds.data[_1541].x)\n {\n _1542 = v5 < globalParams.u_bandBounds.data[_1541].y;\n }\n else\n {\n _1542 = false;\n }\n if (_1542)\n {\n _1539 = true;\n _1540 = globalParams.u_bandColors.data[_1541];\n break;\n }\n _1541++;\n continue;\n }\n if (_1539)\n {\n break;\n }\n _1539 = true;\n _1540 = globalParams.u_uncoveredColor;\n break;\n } while(false);\n if (globalParams.u_colorSource == 1)\n {\n highp vec3 _1585;\n do\n {\n bool _1600;\n if (!_1156)\n {\n _1600 = v6 != 0;\n }\n else\n {\n _1600 = false;\n }\n if (_1600)\n {\n _1585 = (_1540.xyz * (1.0 - globalParams.u_capTint.w)) + (globalParams.u_capTint.xyz * globalParams.u_capTint.w);\n break;\n }\n _1585 = _1540.xyz;\n break;\n } while(false);\n entryPointParam_fragmentMain = vec4(_1585, _1540.w * globalParams.u_opacity);\n break;\n }\n if (globalParams.u_colorSource == 2)\n {\n _2000 = mix(_1540.xyz * vec3(0.077399380505084991455078125), pow((_1540.xyz + vec3(0.054999999701976776123046875)) * vec3(0.947867333889007568359375), vec3(2.400000095367431640625)), step(vec3(0.040449999272823333740234375), _1540.xyz));\n }\n highp vec3 _1621;\n do\n {\n bool _1636;\n if (!_1156)\n {\n _1636 = v6 != 0;\n }\n else\n {\n _1636 = false;\n }\n if (_1636)\n {\n _1621 = (_2000 * (1.0 - globalParams.u_capTint.w)) + (globalParams.u_capTint.xyz * globalParams.u_capTint.w);\n break;\n }\n _1621 = _2000;\n break;\n } while(false);\n _2000 = _1621;\n if (globalParams.u_colorSource == 3)\n {\n entryPointParam_fragmentMain = vec4(_2000, globalParams.u_opacity);\n break;\n }\n bool _1645;\n if (!_1156)\n {\n _1645 = v6 != 0;\n }\n else\n {\n _1645 = false;\n }\n highp vec3 N;\n if (_1645)\n {\n N = normalize((-globalParams.u_clipPlanes.data[max(_1166, 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 _1661 = normalize(globalParams.u_viewPosition - v1);\n highp vec3 _2063 = _2000;\n highp float _2064 = _2001;\n highp float _2065 = _2002;\n highp float _2066 = _2003;\n highp vec3 _2067 = _2004;\n highp vec3 _2073 = globalParams.u_environmentSky;\n highp vec3 _2074 = globalParams.u_environmentGround;\n highp vec3 _2075 = globalParams.u_environmentUp;\n int _1662 = 0;\n highp vec3 _1663 = vec3(0.0);\n highp vec3 _1704;\n highp vec3 _1705;\n highp vec3 _1706;\n highp float _1707;\n for (;;)\n {\n if (!(_1662 < 4))\n {\n break;\n }\n if (_1662 < globalParams.u_lightCount)\n {\n do\n {\n bool _1712 = globalParams.u_lightPositions.data[_1662].w == 0.0;\n if (_1712)\n {\n _1705 = globalParams.u_lightPositions.data[_1662].xyz;\n }\n else\n {\n _1705 = globalParams.u_lightPositions.data[_1662].xyz - v1;\n }\n highp float _1721 = dot(_1705, _1705);\n if (_1712)\n {\n _1706 = normalize(globalParams.u_lightPositions.data[_1662].xyz);\n }\n else\n {\n _1706 = _1705 * inversesqrt(_1721);\n }\n if (_1712)\n {\n _1707 = 1.0;\n }\n else\n {\n _1707 = 1.0 / _1721;\n }\n highp float _1737 = dot(N, _1706);\n if (_1737 <= 0.0)\n {\n _1704 = vec3(0.0);\n break;\n }\n highp vec3 _1742 = _1661 + _1706;\n highp float _1743 = dot(_1742, _1742);\n if (_1743 <= 9.9999999600419720025001879548654e-13)\n {\n _1704 = vec3(0.0);\n break;\n }\n highp vec3 _1748 = _1742 * inversesqrt(_1743);\n highp float _1750 = max(dot(N, _1661), 0.0);\n highp float _1752 = max(dot(N, _1748), 0.0);\n highp float _1757 = max(_2065, 0.039999999105930328369140625);\n highp vec3 _1789 = mix(vec3(0.039999999105930328369140625), _2063, vec3(_2064));\n highp float _1792 = _1757 * _1757;\n highp float _1793 = _1792 * _1792;\n highp float _1797 = ((_1752 * _1752) * (_1793 - 1.0)) + 1.0;\n highp float _1808 = _1757 + 1.0;\n highp float _1810 = (_1808 * _1808) * 0.125;\n highp float _1817 = _1757 + 1.0;\n highp float _1819 = (_1817 * _1817) * 0.125;\n highp vec3 _1832 = _1789 + ((vec3(1.0) - _1789) * pow(clamp(1.0 - max(dot(_1748, _1661), 0.0), 0.0, 1.0), 5.0));\n _1704 = ((((clamp((vec3(1.0) - _1832) * (1.0 - _2064), vec3(0.0), vec3(1.0)) * _2063) * vec3(0.3183098733425140380859375)) + ((_1832 * ((_1793 / ((3.1415927410125732421875 * _1797) * _1797)) * ((_1750 / ((_1750 * (1.0 - _1810)) + _1810)) * (_1737 / ((_1737 * (1.0 - _1819)) + _1819))))) / vec3(((4.0 * _1750) * _1737) + 9.9999997473787516355514526367188e-05))) * (globalParams.u_lightColors.data[_1662] * _1707)) * _1737;\n break;\n } while(false);\n _1663 += _1704;\n }\n _1662++;\n continue;\n }\n highp vec3 _1868 = mix(vec3(0.039999999105930328369140625), _2063, vec3(_2064));\n highp vec3 _1879 = _1868 + ((max(vec3(1.0 - max(_2065, 0.039999999105930328369140625)), _1868) - _1868) * pow(clamp(1.0 - max(dot(N, _1661), 0.0), 0.0, 1.0), 5.0));\n highp vec3 _1702 = (((((clamp((vec3(1.0) - _1879) * (1.0 - _2064), vec3(0.0), vec3(1.0)) * mix(_2074, _2073, vec3((dot(N, _2075) * 0.5) + 0.5))) * _2063) + (mix(_2074, _2073, vec3((dot(reflect(-_1661, N), _2075) * 0.5) + 0.5)) * _1879)) * _2066) + _1663) + _2067;\n entryPointParam_fragmentMain = vec4(pow(_1702 / (_1702 + vec3(1.0)), vec3(0.454545438289642333984375)), globalParams.u_opacity);\n break;\n } while(false);\n}\n\n",
|
|
427
|
-
"sha256": "
|
|
508
|
+
"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 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 v7;\nflat in int v6;\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\nhighp mat4 spvWorkaroundRowMajor(highp mat4 wrap) { return wrap; }\nmediump mat4 spvWorkaroundRowMajorMP(mediump mat4 wrap) { return wrap; }\n\nvoid main()\n{\n bool _1539 = false;\n bool _1110 = false;\n do\n {\n _1110 = false;\n bool _1111;\n do\n {\n int _1112 = 0;\n for (;;)\n {\n if (!(_1112 < 6))\n {\n break;\n }\n if (_1112 >= globalParams.u_clipPlaneCount)\n {\n break;\n }\n if ((dot(globalParams.u_clipPlanes.data[_1112].xyz, v0) + globalParams.u_clipPlanes.data[_1112].w) < 0.0)\n {\n _1110 = true;\n _1111 = false;\n break;\n }\n _1112++;\n continue;\n }\n if (_1110)\n {\n break;\n }\n _1110 = true;\n _1111 = true;\n break;\n } while(false);\n if (!_1111)\n {\n discard;\n }\n bool _1156 = gl_FrontFacing != (v7 != 0);\n bool _1157;\n if (!_1156)\n {\n _1157 = v6 == 0;\n }\n else\n {\n _1157 = false;\n }\n if (_1157)\n {\n discard;\n }\n highp vec3 _182 = v0 - globalParams.u_modelEyePosition;\n int _1166 = -1;\n highp float _1168 = 0.0;\n int _1167 = 0;\n bool _1169;\n int _1170;\n highp float _1171;\n for (;;)\n {\n bool _1177_ladder_break = false;\n do\n {\n if (!(_1167 < 6))\n {\n _1177_ladder_break = true;\n break;\n }\n if (_1167 >= globalParams.u_clipPlaneCount)\n {\n _1177_ladder_break = true;\n break;\n }\n highp float _1192 = dot(globalParams.u_clipPlanes.data[_1167].xyz, _182);\n if (_1192 <= 0.0)\n {\n break;\n }\n highp float _1198 = (-(dot(globalParams.u_clipPlanes.data[_1167].xyz, globalParams.u_modelEyePosition) + globalParams.u_clipPlanes.data[_1167].w)) / _1192;\n if (_1166 < 0)\n {\n _1169 = true;\n }\n else\n {\n _1169 = _1198 > _1168;\n }\n if (_1169)\n {\n _1170 = _1167;\n _1171 = _1198;\n }\n else\n {\n _1170 = _1166;\n _1171 = _1168;\n }\n _1166 = _1170;\n _1168 = _1171;\n break;\n } while(false);\n if (_1177_ladder_break)\n {\n break;\n }\n _1167++;\n continue;\n }\n bool _7;\n if (_1166 < 0)\n {\n bool _1228;\n if (!_1156)\n {\n _1228 = v6 != 0;\n }\n else\n {\n _1228 = false;\n }\n _7 = _1228;\n }\n else\n {\n _7 = false;\n }\n if (_7)\n {\n discard;\n }\n highp vec4 _1242 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 0), 0);\n highp vec4 _1246 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 1), 0);\n highp vec4 _1250 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 2), 0);\n highp vec3 _1253 = _1242.xyz;\n highp float _1255 = _1242.w;\n highp vec3 _1257 = _1246.xyz;\n highp float _1259 = _1246.w;\n highp float _1261 = _1250.x;\n highp vec3 _2000 = _1253;\n highp float _2001 = _1255;\n highp float _2002 = _1259;\n highp float _2003 = _1261;\n highp vec3 _2004 = _1257;\n highp vec3 _2028 = _1253;\n highp float _2029 = _1255;\n highp float _2030 = _1259;\n highp float _2031 = _1261;\n highp vec3 _2032 = _1257;\n highp float _2050 = globalParams.u_surfaceFinishScale;\n highp float _2051 = globalParams.u_surfaceFinishRoughness;\n highp float _2052 = globalParams.u_surfaceFinishColor;\n highp vec3 _1920;\n highp float _1921;\n highp float _1922;\n highp float _1923;\n highp vec3 _1924;\n do\n {\n if (_2050 <= 0.0)\n {\n _1920 = _2028;\n _1921 = _2029;\n _1922 = _2030;\n _1923 = _2031;\n _1924 = _2032;\n break;\n }\n highp vec3 _1276 = v3 / vec3(_2050);\n highp vec3 _1303 = floor(_1276);\n highp vec3 _1304 = _1276 - _1303;\n highp vec3 _1309 = (_1304 * _1304) * (vec3(3.0) - (_1304 * 2.0));\n ivec3 _1310 = ivec3(_1303);\n uint _1349 = (((uint(_1310.x) * 2376512323u) + (uint(_1310.y) * 3625334849u)) + (uint(_1310.z) * 3407524639u)) + 2654435769u;\n uint _1352 = (_1349 ^ (_1349 >> uint(15))) * 739982445u;\n uint _1355 = (_1352 ^ (_1352 >> uint(12))) * 695872825u;\n ivec3 _1312 = _1310 + ivec3(1, 0, 0);\n uint _1374 = (((uint(_1312.x) * 2376512323u) + (uint(_1312.y) * 3625334849u)) + (uint(_1312.z) * 3407524639u)) + 2654435769u;\n uint _1377 = (_1374 ^ (_1374 >> uint(15))) * 739982445u;\n uint _1380 = (_1377 ^ (_1377 >> uint(12))) * 695872825u;\n ivec3 _1314 = _1310 + ivec3(0, 1, 0);\n uint _1399 = (((uint(_1314.x) * 2376512323u) + (uint(_1314.y) * 3625334849u)) + (uint(_1314.z) * 3407524639u)) + 2654435769u;\n uint _1402 = (_1399 ^ (_1399 >> uint(15))) * 739982445u;\n uint _1405 = (_1402 ^ (_1402 >> uint(12))) * 695872825u;\n ivec3 _1316 = _1310 + ivec3(1, 1, 0);\n uint _1424 = (((uint(_1316.x) * 2376512323u) + (uint(_1316.y) * 3625334849u)) + (uint(_1316.z) * 3407524639u)) + 2654435769u;\n uint _1427 = (_1424 ^ (_1424 >> uint(15))) * 739982445u;\n uint _1430 = (_1427 ^ (_1427 >> uint(12))) * 695872825u;\n ivec3 _1318 = _1310 + ivec3(0, 0, 1);\n uint _1449 = (((uint(_1318.x) * 2376512323u) + (uint(_1318.y) * 3625334849u)) + (uint(_1318.z) * 3407524639u)) + 2654435769u;\n uint _1452 = (_1449 ^ (_1449 >> uint(15))) * 739982445u;\n uint _1455 = (_1452 ^ (_1452 >> uint(12))) * 695872825u;\n ivec3 _1320 = _1310 + ivec3(1, 0, 1);\n uint _1474 = (((uint(_1320.x) * 2376512323u) + (uint(_1320.y) * 3625334849u)) + (uint(_1320.z) * 3407524639u)) + 2654435769u;\n uint _1477 = (_1474 ^ (_1474 >> uint(15))) * 739982445u;\n uint _1480 = (_1477 ^ (_1477 >> uint(12))) * 695872825u;\n ivec3 _1322 = _1310 + ivec3(0, 1, 1);\n uint _1499 = (((uint(_1322.x) * 2376512323u) + (uint(_1322.y) * 3625334849u)) + (uint(_1322.z) * 3407524639u)) + 2654435769u;\n uint _1502 = (_1499 ^ (_1499 >> uint(15))) * 739982445u;\n uint _1505 = (_1502 ^ (_1502 >> uint(12))) * 695872825u;\n ivec3 _1324 = _1310 + ivec3(1);\n uint _1524 = (((uint(_1324.x) * 2376512323u) + (uint(_1324.y) * 3625334849u)) + (uint(_1324.z) * 3407524639u)) + 2654435769u;\n uint _1527 = (_1524 ^ (_1524 >> uint(15))) * 739982445u;\n uint _1530 = (_1527 ^ (_1527 >> uint(12))) * 695872825u;\n highp float _1326 = _1309.x;\n highp float _1331 = _1309.y;\n highp float _1279 = (mix(mix(mix(float((_1355 ^ (_1355 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1380 ^ (_1380 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1326), mix(float((_1405 ^ (_1405 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1430 ^ (_1430 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1326), _1331), mix(mix(float((_1455 ^ (_1455 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1480 ^ (_1480 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1326), mix(float((_1505 ^ (_1505 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1530 ^ (_1530 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1326), _1331), _1309.z) * 2.0) - 1.0;\n _1920 = clamp(_2028 * (1.0 + (_1279 * _2052)), vec3(0.0), vec3(1.0));\n _1921 = _2029;\n _1922 = clamp(_2030 + (_1279 * _2051), 0.0, 1.0);\n _1923 = _2031;\n _1924 = _2032;\n break;\n } while(false);\n _2000 = _1920;\n _2001 = _1921;\n _2002 = _1922;\n _2003 = _1923;\n _2004 = _1924;\n _1539 = false;\n highp vec4 _1540;\n do\n {\n int _1541 = 0;\n bool _1542;\n for (;;)\n {\n if (!(_1541 < globalParams.u_numBands))\n {\n break;\n }\n if (v5 >= globalParams.u_bandBounds.data[_1541].x)\n {\n _1542 = v5 < globalParams.u_bandBounds.data[_1541].y;\n }\n else\n {\n _1542 = false;\n }\n if (_1542)\n {\n _1539 = true;\n _1540 = globalParams.u_bandColors.data[_1541];\n break;\n }\n _1541++;\n continue;\n }\n if (_1539)\n {\n break;\n }\n _1539 = true;\n _1540 = globalParams.u_uncoveredColor;\n break;\n } while(false);\n if (globalParams.u_colorSource == 1)\n {\n highp vec3 _1585;\n do\n {\n bool _1600;\n if (!_1156)\n {\n _1600 = v6 != 0;\n }\n else\n {\n _1600 = false;\n }\n if (_1600)\n {\n _1585 = (_1540.xyz * (1.0 - globalParams.u_capTint.w)) + (globalParams.u_capTint.xyz * globalParams.u_capTint.w);\n break;\n }\n _1585 = _1540.xyz;\n break;\n } while(false);\n entryPointParam_fragmentMain = vec4(_1585, _1540.w * globalParams.u_opacity);\n break;\n }\n if (globalParams.u_colorSource == 2)\n {\n _2000 = mix(_1540.xyz * vec3(0.077399380505084991455078125), pow((_1540.xyz + vec3(0.054999999701976776123046875)) * vec3(0.947867333889007568359375), vec3(2.400000095367431640625)), step(vec3(0.040449999272823333740234375), _1540.xyz));\n }\n highp vec3 _1621;\n do\n {\n bool _1636;\n if (!_1156)\n {\n _1636 = v6 != 0;\n }\n else\n {\n _1636 = false;\n }\n if (_1636)\n {\n _1621 = (_2000 * (1.0 - globalParams.u_capTint.w)) + (globalParams.u_capTint.xyz * globalParams.u_capTint.w);\n break;\n }\n _1621 = _2000;\n break;\n } while(false);\n _2000 = _1621;\n if (globalParams.u_colorSource == 3)\n {\n entryPointParam_fragmentMain = vec4(_2000, globalParams.u_opacity);\n break;\n }\n bool _1645;\n if (!_1156)\n {\n _1645 = v6 != 0;\n }\n else\n {\n _1645 = false;\n }\n highp vec3 N;\n if (_1645)\n {\n N = normalize((-globalParams.u_clipPlanes.data[max(_1166, 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 _1661 = normalize(globalParams.u_viewPosition - v1);\n highp vec3 _2063 = _2000;\n highp float _2064 = _2001;\n highp float _2065 = _2002;\n highp float _2066 = _2003;\n highp vec3 _2067 = _2004;\n highp vec3 _2073 = globalParams.u_environmentSky;\n highp vec3 _2074 = globalParams.u_environmentGround;\n highp vec3 _2075 = globalParams.u_environmentUp;\n int _1662 = 0;\n highp vec3 _1663 = vec3(0.0);\n highp vec3 _1704;\n highp vec3 _1705;\n highp vec3 _1706;\n highp float _1707;\n for (;;)\n {\n if (!(_1662 < 4))\n {\n break;\n }\n if (_1662 < globalParams.u_lightCount)\n {\n do\n {\n bool _1712 = globalParams.u_lightPositions.data[_1662].w == 0.0;\n if (_1712)\n {\n _1705 = globalParams.u_lightPositions.data[_1662].xyz;\n }\n else\n {\n _1705 = globalParams.u_lightPositions.data[_1662].xyz - v1;\n }\n highp float _1721 = dot(_1705, _1705);\n if (_1712)\n {\n _1706 = normalize(globalParams.u_lightPositions.data[_1662].xyz);\n }\n else\n {\n _1706 = _1705 * inversesqrt(_1721);\n }\n if (_1712)\n {\n _1707 = 1.0;\n }\n else\n {\n _1707 = 1.0 / _1721;\n }\n highp float _1737 = dot(N, _1706);\n if (_1737 <= 0.0)\n {\n _1704 = vec3(0.0);\n break;\n }\n highp vec3 _1742 = _1661 + _1706;\n highp float _1743 = dot(_1742, _1742);\n if (_1743 <= 9.9999999600419720025001879548654e-13)\n {\n _1704 = vec3(0.0);\n break;\n }\n highp vec3 _1748 = _1742 * inversesqrt(_1743);\n highp float _1750 = max(dot(N, _1661), 0.0);\n highp float _1752 = max(dot(N, _1748), 0.0);\n highp float _1757 = max(_2065, 0.039999999105930328369140625);\n highp vec3 _1789 = mix(vec3(0.039999999105930328369140625), _2063, vec3(_2064));\n highp float _1792 = _1757 * _1757;\n highp float _1793 = _1792 * _1792;\n highp float _1797 = ((_1752 * _1752) * (_1793 - 1.0)) + 1.0;\n highp float _1808 = _1757 + 1.0;\n highp float _1810 = (_1808 * _1808) * 0.125;\n highp float _1817 = _1757 + 1.0;\n highp float _1819 = (_1817 * _1817) * 0.125;\n highp vec3 _1832 = _1789 + ((vec3(1.0) - _1789) * pow(clamp(1.0 - max(dot(_1748, _1661), 0.0), 0.0, 1.0), 5.0));\n _1704 = ((((clamp((vec3(1.0) - _1832) * (1.0 - _2064), vec3(0.0), vec3(1.0)) * _2063) * vec3(0.3183098733425140380859375)) + ((_1832 * ((_1793 / ((3.1415927410125732421875 * _1797) * _1797)) * ((_1750 / ((_1750 * (1.0 - _1810)) + _1810)) * (_1737 / ((_1737 * (1.0 - _1819)) + _1819))))) / vec3(((4.0 * _1750) * _1737) + 9.9999997473787516355514526367188e-05))) * (globalParams.u_lightColors.data[_1662] * _1707)) * _1737;\n break;\n } while(false);\n _1663 += _1704;\n }\n _1662++;\n continue;\n }\n highp vec3 _1868 = mix(vec3(0.039999999105930328369140625), _2063, vec3(_2064));\n highp vec3 _1879 = _1868 + ((max(vec3(1.0 - max(_2065, 0.039999999105930328369140625)), _1868) - _1868) * pow(clamp(1.0 - max(dot(N, _1661), 0.0), 0.0, 1.0), 5.0));\n highp vec3 _1702 = (((((clamp((vec3(1.0) - _1879) * (1.0 - _2064), vec3(0.0), vec3(1.0)) * mix(_2074, _2073, vec3((dot(N, _2075) * 0.5) + 0.5))) * _2063) + (mix(_2074, _2073, vec3((dot(reflect(-_1661, N), _2075) * 0.5) + 0.5)) * _1879)) * _2066) + _1663) + _2067;\n entryPointParam_fragmentMain = vec4(pow(_1702 / (_1702 + vec3(1.0)), vec3(0.454545438289642333984375)), globalParams.u_opacity);\n break;\n } while(false);\n}\n\n",
|
|
509
|
+
"sha256": "0914d07536b5bfa34b16b8c5a690efea2b91ab86e81ce6245e6b23a14e1f264e"
|
|
428
510
|
}
|
|
429
511
|
}
|
|
430
512
|
}
|