@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.capped",
|
|
15
15
|
"capabilities": [
|
|
16
16
|
"fringe-int",
|
|
17
|
+
"material-map-r16ui",
|
|
17
18
|
"material",
|
|
18
19
|
"material-table",
|
|
19
20
|
"material-surface-finish",
|
|
@@ -22,6 +23,7 @@
|
|
|
22
23
|
"mask-lut-r8ui",
|
|
23
24
|
"transform",
|
|
24
25
|
"transform-lut-r32ui",
|
|
26
|
+
"transform-map-r16ui",
|
|
25
27
|
"clip"
|
|
26
28
|
],
|
|
27
29
|
"inputs": [
|
|
@@ -31,25 +33,15 @@
|
|
|
31
33
|
"semantic": "coordinates"
|
|
32
34
|
},
|
|
33
35
|
{
|
|
34
|
-
"name": "
|
|
36
|
+
"name": "a_atomId",
|
|
35
37
|
"type": "int",
|
|
36
|
-
"semantic": "
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"name": "a_componentId",
|
|
40
|
-
"type": "int",
|
|
41
|
-
"semantic": "component-id"
|
|
38
|
+
"semantic": "atom-id"
|
|
42
39
|
},
|
|
43
40
|
{
|
|
44
41
|
"name": "a_normal",
|
|
45
42
|
"type": "vec3",
|
|
46
43
|
"semantic": "normal"
|
|
47
44
|
},
|
|
48
|
-
{
|
|
49
|
-
"name": "a_materialId",
|
|
50
|
-
"type": "int",
|
|
51
|
-
"semantic": "material-id"
|
|
52
|
-
},
|
|
53
45
|
{
|
|
54
46
|
"name": "a_category",
|
|
55
47
|
"type": "int",
|
|
@@ -74,6 +66,10 @@
|
|
|
74
66
|
"name": "u_maskLutWidth",
|
|
75
67
|
"type": "int"
|
|
76
68
|
},
|
|
69
|
+
{
|
|
70
|
+
"name": "u_maskLutBase",
|
|
71
|
+
"type": "int"
|
|
72
|
+
},
|
|
77
73
|
{
|
|
78
74
|
"name": "u_transformLutWidth",
|
|
79
75
|
"type": "int"
|
|
@@ -82,6 +78,18 @@
|
|
|
82
78
|
"name": "u_transformLutStride",
|
|
83
79
|
"type": "int"
|
|
84
80
|
},
|
|
81
|
+
{
|
|
82
|
+
"name": "u_transformLutBase",
|
|
83
|
+
"type": "int"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "u_transformMapWidth",
|
|
87
|
+
"type": "int"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "u_transformMapBase",
|
|
91
|
+
"type": "int"
|
|
92
|
+
},
|
|
85
93
|
{
|
|
86
94
|
"name": "u_clipPlanes",
|
|
87
95
|
"type": "vec4[6]"
|
|
@@ -106,6 +114,14 @@
|
|
|
106
114
|
"name": "u_uncoveredColor",
|
|
107
115
|
"type": "vec4"
|
|
108
116
|
},
|
|
117
|
+
{
|
|
118
|
+
"name": "u_materialMapWidth",
|
|
119
|
+
"type": "int"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "u_materialMapBase",
|
|
123
|
+
"type": "int"
|
|
124
|
+
},
|
|
109
125
|
{
|
|
110
126
|
"name": "u_viewPosition",
|
|
111
127
|
"type": "vec3"
|
|
@@ -189,6 +205,18 @@
|
|
|
189
205
|
"format": "r32ui",
|
|
190
206
|
"semantic": "transform"
|
|
191
207
|
},
|
|
208
|
+
{
|
|
209
|
+
"name": "u_transformMap",
|
|
210
|
+
"type": "Texture2D<uint4>",
|
|
211
|
+
"format": "r16ui",
|
|
212
|
+
"semantic": "transform-map"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"name": "u_materialMap",
|
|
216
|
+
"type": "Texture2D<uint4>",
|
|
217
|
+
"format": "r16ui",
|
|
218
|
+
"semantic": "material-map"
|
|
219
|
+
},
|
|
192
220
|
{
|
|
193
221
|
"name": "u_materialTable",
|
|
194
222
|
"type": "Texture2D<float4>",
|
|
@@ -199,10 +227,10 @@
|
|
|
199
227
|
"textures": [],
|
|
200
228
|
"samplers": []
|
|
201
229
|
},
|
|
202
|
-
"contractSha256": "
|
|
230
|
+
"contractSha256": "f8a9327e71fa198b523c10c8b7890f0bffa6625c1055a2985ca5d338a0fb98cc",
|
|
203
231
|
"languages": {
|
|
204
232
|
"glsl": {
|
|
205
|
-
"blockSize":
|
|
233
|
+
"blockSize": 2912,
|
|
206
234
|
"layout": {
|
|
207
235
|
"u_mvpMatrix": {
|
|
208
236
|
"offset": 0,
|
|
@@ -236,134 +264,170 @@
|
|
|
236
264
|
"elementStride": 0,
|
|
237
265
|
"encoding": "int"
|
|
238
266
|
},
|
|
239
|
-
"
|
|
267
|
+
"u_maskLutBase": {
|
|
240
268
|
"offset": 160,
|
|
241
269
|
"size": 4,
|
|
242
270
|
"elementStride": 0,
|
|
243
271
|
"encoding": "int"
|
|
244
272
|
},
|
|
245
|
-
"
|
|
273
|
+
"u_transformLutWidth": {
|
|
246
274
|
"offset": 164,
|
|
247
275
|
"size": 4,
|
|
248
276
|
"elementStride": 0,
|
|
249
277
|
"encoding": "int"
|
|
250
278
|
},
|
|
251
|
-
"
|
|
279
|
+
"u_transformLutStride": {
|
|
280
|
+
"offset": 168,
|
|
281
|
+
"size": 4,
|
|
282
|
+
"elementStride": 0,
|
|
283
|
+
"encoding": "int"
|
|
284
|
+
},
|
|
285
|
+
"u_transformLutBase": {
|
|
286
|
+
"offset": 172,
|
|
287
|
+
"size": 4,
|
|
288
|
+
"elementStride": 0,
|
|
289
|
+
"encoding": "int"
|
|
290
|
+
},
|
|
291
|
+
"u_transformMapWidth": {
|
|
252
292
|
"offset": 176,
|
|
293
|
+
"size": 4,
|
|
294
|
+
"elementStride": 0,
|
|
295
|
+
"encoding": "int"
|
|
296
|
+
},
|
|
297
|
+
"u_transformMapBase": {
|
|
298
|
+
"offset": 180,
|
|
299
|
+
"size": 4,
|
|
300
|
+
"elementStride": 0,
|
|
301
|
+
"encoding": "int"
|
|
302
|
+
},
|
|
303
|
+
"u_clipPlanes": {
|
|
304
|
+
"offset": 192,
|
|
253
305
|
"size": 96,
|
|
254
306
|
"elementStride": 16,
|
|
255
307
|
"encoding": "vec4[]"
|
|
256
308
|
},
|
|
257
309
|
"u_clipPlaneCount": {
|
|
258
|
-
"offset":
|
|
310
|
+
"offset": 288,
|
|
259
311
|
"size": 4,
|
|
260
312
|
"elementStride": 0,
|
|
261
313
|
"encoding": "int"
|
|
262
314
|
},
|
|
263
315
|
"u_bandBounds": {
|
|
264
|
-
"offset":
|
|
316
|
+
"offset": 304,
|
|
265
317
|
"size": 1152,
|
|
266
318
|
"elementStride": 16,
|
|
267
319
|
"encoding": "ivec2[]"
|
|
268
320
|
},
|
|
269
321
|
"u_numBands": {
|
|
270
|
-
"offset":
|
|
322
|
+
"offset": 1456,
|
|
271
323
|
"size": 4,
|
|
272
324
|
"elementStride": 0,
|
|
273
325
|
"encoding": "int"
|
|
274
326
|
},
|
|
275
327
|
"u_bandColors": {
|
|
276
|
-
"offset":
|
|
328
|
+
"offset": 1472,
|
|
277
329
|
"size": 1152,
|
|
278
330
|
"elementStride": 16,
|
|
279
331
|
"encoding": "vec4[]"
|
|
280
332
|
},
|
|
281
333
|
"u_uncoveredColor": {
|
|
282
|
-
"offset":
|
|
334
|
+
"offset": 2624,
|
|
283
335
|
"size": 16,
|
|
284
336
|
"elementStride": 4,
|
|
285
337
|
"encoding": "vec4"
|
|
286
338
|
},
|
|
339
|
+
"u_materialMapWidth": {
|
|
340
|
+
"offset": 2640,
|
|
341
|
+
"size": 4,
|
|
342
|
+
"elementStride": 0,
|
|
343
|
+
"encoding": "int"
|
|
344
|
+
},
|
|
345
|
+
"u_materialMapBase": {
|
|
346
|
+
"offset": 2644,
|
|
347
|
+
"size": 4,
|
|
348
|
+
"elementStride": 0,
|
|
349
|
+
"encoding": "int"
|
|
350
|
+
},
|
|
287
351
|
"u_viewPosition": {
|
|
288
|
-
"offset":
|
|
352
|
+
"offset": 2656,
|
|
289
353
|
"size": 12,
|
|
290
354
|
"elementStride": 4,
|
|
291
355
|
"encoding": "vec3"
|
|
292
356
|
},
|
|
293
357
|
"u_environmentSky": {
|
|
294
|
-
"offset":
|
|
358
|
+
"offset": 2672,
|
|
295
359
|
"size": 12,
|
|
296
360
|
"elementStride": 4,
|
|
297
361
|
"encoding": "vec3"
|
|
298
362
|
},
|
|
299
363
|
"u_environmentGround": {
|
|
300
|
-
"offset":
|
|
364
|
+
"offset": 2688,
|
|
301
365
|
"size": 12,
|
|
302
366
|
"elementStride": 4,
|
|
303
367
|
"encoding": "vec3"
|
|
304
368
|
},
|
|
305
369
|
"u_environmentUp": {
|
|
306
|
-
"offset":
|
|
370
|
+
"offset": 2704,
|
|
307
371
|
"size": 12,
|
|
308
372
|
"elementStride": 4,
|
|
309
373
|
"encoding": "vec3"
|
|
310
374
|
},
|
|
311
375
|
"u_lightPositions": {
|
|
312
|
-
"offset":
|
|
376
|
+
"offset": 2720,
|
|
313
377
|
"size": 64,
|
|
314
378
|
"elementStride": 16,
|
|
315
379
|
"encoding": "vec4[]"
|
|
316
380
|
},
|
|
317
381
|
"u_lightColors": {
|
|
318
|
-
"offset":
|
|
382
|
+
"offset": 2784,
|
|
319
383
|
"size": 64,
|
|
320
384
|
"elementStride": 16,
|
|
321
385
|
"encoding": "vec3[]"
|
|
322
386
|
},
|
|
323
387
|
"u_lightCount": {
|
|
324
|
-
"offset":
|
|
388
|
+
"offset": 2848,
|
|
325
389
|
"size": 4,
|
|
326
390
|
"elementStride": 0,
|
|
327
391
|
"encoding": "int"
|
|
328
392
|
},
|
|
329
393
|
"u_surfaceFinishScale": {
|
|
330
|
-
"offset":
|
|
394
|
+
"offset": 2852,
|
|
331
395
|
"size": 4,
|
|
332
396
|
"elementStride": 0,
|
|
333
397
|
"encoding": "float"
|
|
334
398
|
},
|
|
335
399
|
"u_surfaceFinishRoughness": {
|
|
336
|
-
"offset":
|
|
400
|
+
"offset": 2856,
|
|
337
401
|
"size": 4,
|
|
338
402
|
"elementStride": 0,
|
|
339
403
|
"encoding": "float"
|
|
340
404
|
},
|
|
341
405
|
"u_surfaceFinishColor": {
|
|
342
|
-
"offset":
|
|
406
|
+
"offset": 2860,
|
|
343
407
|
"size": 4,
|
|
344
408
|
"elementStride": 0,
|
|
345
409
|
"encoding": "float"
|
|
346
410
|
},
|
|
347
411
|
"u_colorSource": {
|
|
348
|
-
"offset":
|
|
412
|
+
"offset": 2864,
|
|
349
413
|
"size": 4,
|
|
350
414
|
"elementStride": 0,
|
|
351
415
|
"encoding": "int"
|
|
352
416
|
},
|
|
353
417
|
"u_opacity": {
|
|
354
|
-
"offset":
|
|
418
|
+
"offset": 2868,
|
|
355
419
|
"size": 4,
|
|
356
420
|
"elementStride": 0,
|
|
357
421
|
"encoding": "float"
|
|
358
422
|
},
|
|
359
423
|
"u_capTint": {
|
|
360
|
-
"offset":
|
|
424
|
+
"offset": 2880,
|
|
361
425
|
"size": 16,
|
|
362
426
|
"elementStride": 4,
|
|
363
427
|
"encoding": "vec4"
|
|
364
428
|
},
|
|
365
429
|
"u_modelEyePosition": {
|
|
366
|
-
"offset":
|
|
430
|
+
"offset": 2896,
|
|
367
431
|
"size": 12,
|
|
368
432
|
"elementStride": 4,
|
|
369
433
|
"encoding": "vec3"
|
|
@@ -379,6 +443,15 @@
|
|
|
379
443
|
"stage": "vertex",
|
|
380
444
|
"unit": 0
|
|
381
445
|
},
|
|
446
|
+
{
|
|
447
|
+
"semantic": "material-map",
|
|
448
|
+
"texture": "u_materialMap",
|
|
449
|
+
"sampler": null,
|
|
450
|
+
"uniform": "SPIRV_Cross_Combinedu_materialMapSPIRV_Cross_DummySampler",
|
|
451
|
+
"component": "uint",
|
|
452
|
+
"stage": "vertex",
|
|
453
|
+
"unit": 1
|
|
454
|
+
},
|
|
382
455
|
{
|
|
383
456
|
"semantic": "transform",
|
|
384
457
|
"texture": "u_transformLut",
|
|
@@ -386,7 +459,16 @@
|
|
|
386
459
|
"uniform": "SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler",
|
|
387
460
|
"component": "uint",
|
|
388
461
|
"stage": "vertex",
|
|
389
|
-
"unit":
|
|
462
|
+
"unit": 2
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"semantic": "transform-map",
|
|
466
|
+
"texture": "u_transformMap",
|
|
467
|
+
"sampler": null,
|
|
468
|
+
"uniform": "SPIRV_Cross_Combinedu_transformMapSPIRV_Cross_DummySampler",
|
|
469
|
+
"component": "uint",
|
|
470
|
+
"stage": "vertex",
|
|
471
|
+
"unit": 3
|
|
390
472
|
},
|
|
391
473
|
{
|
|
392
474
|
"semantic": "material",
|
|
@@ -395,17 +477,17 @@
|
|
|
395
477
|
"uniform": "SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler",
|
|
396
478
|
"component": "float",
|
|
397
479
|
"stage": "fragment",
|
|
398
|
-
"unit":
|
|
480
|
+
"unit": 4
|
|
399
481
|
}
|
|
400
482
|
],
|
|
401
483
|
"stages": {
|
|
402
484
|
"vertex": {
|
|
403
|
-
"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 = 1) in int
|
|
404
|
-
"sha256": "
|
|
485
|
+
"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 = 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;\nflat out int v6;\nflat out int v7;\nlayout(location = 0) in vec3 a_position;\nlayout(location = 2) in vec3 a_normal;\nlayout(location = 3) in int a_category;\nlayout(location = 4) 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 _467 = globalParams.u_maskLutBase + a_atomId;\n if (!(texelFetch(SPIRV_Cross_Combinedu_maskLutSPIRV_Cross_DummySampler, ivec2(_467 - globalParams.u_maskLutWidth * (_467 / globalParams.u_maskLutWidth), _467 / 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 int _611 = globalParams.u_transformMapBase + a_atomId;\n int _619 = int(texelFetch(SPIRV_Cross_Combinedu_transformMapSPIRV_Cross_DummySampler, ivec2(_611 - globalParams.u_transformMapWidth * (_611 / globalParams.u_transformMapWidth), _611 / globalParams.u_transformMapWidth), 0).x);\n int _623 = (globalParams.u_transformLutBase + _619) * globalParams.u_transformLutStride;\n int _495;\n vec3 _496;\n vec3 _497;\n if (texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_623 - globalParams.u_transformLutWidth * (_623 / globalParams.u_transformLutWidth), _623 / globalParams.u_transformLutWidth), 0).x != 0u)\n {\n int _639 = ((globalParams.u_transformLutBase + _619) * globalParams.u_transformLutStride) + 1;\n int _651 = ((globalParams.u_transformLutBase + _619) * globalParams.u_transformLutStride) + 2;\n int _663 = ((globalParams.u_transformLutBase + _619) * globalParams.u_transformLutStride) + 3;\n int _681 = ((globalParams.u_transformLutBase + _619) * globalParams.u_transformLutStride) + 4;\n int _693 = ((globalParams.u_transformLutBase + _619) * globalParams.u_transformLutStride) + 5;\n int _705 = ((globalParams.u_transformLutBase + _619) * globalParams.u_transformLutStride) + 6;\n int _717 = ((globalParams.u_transformLutBase + _619) * globalParams.u_transformLutStride) + 7;\n vec4 _731 = vec4(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_681 - globalParams.u_transformLutWidth * (_681 / globalParams.u_transformLutWidth), _681 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_693 - globalParams.u_transformLutWidth * (_693 / globalParams.u_transformLutWidth), _693 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_705 - globalParams.u_transformLutWidth * (_705 / globalParams.u_transformLutWidth), _705 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_717 - globalParams.u_transformLutWidth * (_717 / globalParams.u_transformLutWidth), _717 / globalParams.u_transformLutWidth), 0).x));\n int _736 = ((globalParams.u_transformLutBase + _619) * globalParams.u_transformLutStride) + 8;\n int _748 = ((globalParams.u_transformLutBase + _619) * globalParams.u_transformLutStride) + 9;\n int _760 = ((globalParams.u_transformLutBase + _619) * globalParams.u_transformLutStride) + 10;\n vec3 _773 = vec3(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_736 - globalParams.u_transformLutWidth * (_736 / globalParams.u_transformLutWidth), _736 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_748 - globalParams.u_transformLutWidth * (_748 / globalParams.u_transformLutWidth), _748 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_760 - globalParams.u_transformLutWidth * (_760 / globalParams.u_transformLutWidth), _760 / globalParams.u_transformLutWidth), 0).x));\n vec3 _776 = _773 * a_position;\n vec3 _781 = _731.xyz;\n vec3 _783 = cross(_781, _776) * 2.0;\n vec3 _791 = a_normal / _773;\n vec3 _796 = _731.xyz;\n vec3 _798 = cross(_796, _791) * 2.0;\n if (((_773.x * _773.y) * _773.z) < 0.0)\n {\n _495 = 1;\n }\n else\n {\n _495 = 0;\n }\n _496 = ((_776 + (_783 * _731.w)) + cross(_781, _783)) + vec3(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 _497 = normalize((_791 + (_798 * _731.w)) + cross(_796, _798));\n }\n else\n {\n _496 = a_position;\n _497 = a_normal;\n _495 = 0;\n }\n vec4 _584 = vec4(_496, 1.0);\n int _806 = globalParams.u_materialMapBase + a_atomId;\n gl_Position = _584 * spvWorkaroundRowMajor(globalParams.u_mvpMatrix);\n v0 = _496;\n v1 = (_584 * spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)).xyz;\n v2 = _497 * 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(_806 - globalParams.u_materialMapWidth * (_806 / globalParams.u_materialMapWidth), _806 / globalParams.u_materialMapWidth), 0).x);\n v5 = a_category;\n v6 = a_capEnabled;\n v7 = _495;\n break;\n } while(false);\n}\n\n",
|
|
486
|
+
"sha256": "942f9a4ade300dd0ca2c0b660bc1188684aad1f8d3d2eb11b47c2a80269bf78e"
|
|
405
487
|
},
|
|
406
488
|
"fragment": {
|
|
407
|
-
"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",
|
|
408
|
-
"sha256": "
|
|
489
|
+
"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",
|
|
490
|
+
"sha256": "0914d07536b5bfa34b16b8c5a690efea2b91ab86e81ce6245e6b23a14e1f264e"
|
|
409
491
|
}
|
|
410
492
|
}
|
|
411
493
|
}
|