@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": "deform3.surface.capped",
|
|
15
15
|
"capabilities": [
|
|
16
16
|
"deform3",
|
|
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": [
|
|
@@ -36,25 +38,15 @@
|
|
|
36
38
|
"semantic": "deformation"
|
|
37
39
|
},
|
|
38
40
|
{
|
|
39
|
-
"name": "
|
|
41
|
+
"name": "a_atomId",
|
|
40
42
|
"type": "int",
|
|
41
|
-
"semantic": "
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"name": "a_componentId",
|
|
45
|
-
"type": "int",
|
|
46
|
-
"semantic": "component-id"
|
|
43
|
+
"semantic": "atom-id"
|
|
47
44
|
},
|
|
48
45
|
{
|
|
49
46
|
"name": "a_normal",
|
|
50
47
|
"type": "vec3",
|
|
51
48
|
"semantic": "normal"
|
|
52
49
|
},
|
|
53
|
-
{
|
|
54
|
-
"name": "a_materialId",
|
|
55
|
-
"type": "int",
|
|
56
|
-
"semantic": "material-id"
|
|
57
|
-
},
|
|
58
50
|
{
|
|
59
51
|
"name": "a_capEnabled",
|
|
60
52
|
"type": "int",
|
|
@@ -78,6 +70,10 @@
|
|
|
78
70
|
"name": "u_maskLutWidth",
|
|
79
71
|
"type": "int"
|
|
80
72
|
},
|
|
73
|
+
{
|
|
74
|
+
"name": "u_maskLutBase",
|
|
75
|
+
"type": "int"
|
|
76
|
+
},
|
|
81
77
|
{
|
|
82
78
|
"name": "u_transformLutWidth",
|
|
83
79
|
"type": "int"
|
|
@@ -86,6 +82,18 @@
|
|
|
86
82
|
"name": "u_transformLutStride",
|
|
87
83
|
"type": "int"
|
|
88
84
|
},
|
|
85
|
+
{
|
|
86
|
+
"name": "u_transformLutBase",
|
|
87
|
+
"type": "int"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "u_transformMapWidth",
|
|
91
|
+
"type": "int"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"name": "u_transformMapBase",
|
|
95
|
+
"type": "int"
|
|
96
|
+
},
|
|
89
97
|
{
|
|
90
98
|
"name": "u_clipPlanes",
|
|
91
99
|
"type": "vec4[6]"
|
|
@@ -94,6 +102,14 @@
|
|
|
94
102
|
"name": "u_clipPlaneCount",
|
|
95
103
|
"type": "int"
|
|
96
104
|
},
|
|
105
|
+
{
|
|
106
|
+
"name": "u_materialMapWidth",
|
|
107
|
+
"type": "int"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "u_materialMapBase",
|
|
111
|
+
"type": "int"
|
|
112
|
+
},
|
|
97
113
|
{
|
|
98
114
|
"name": "u_viewPosition",
|
|
99
115
|
"type": "vec3"
|
|
@@ -175,6 +191,18 @@
|
|
|
175
191
|
"format": "r32ui",
|
|
176
192
|
"semantic": "transform"
|
|
177
193
|
},
|
|
194
|
+
{
|
|
195
|
+
"name": "u_transformMap",
|
|
196
|
+
"type": "Texture2D<uint4>",
|
|
197
|
+
"format": "r16ui",
|
|
198
|
+
"semantic": "transform-map"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"name": "u_materialMap",
|
|
202
|
+
"type": "Texture2D<uint4>",
|
|
203
|
+
"format": "r16ui",
|
|
204
|
+
"semantic": "material-map"
|
|
205
|
+
},
|
|
178
206
|
{
|
|
179
207
|
"name": "u_materialTable",
|
|
180
208
|
"type": "Texture2D<float4>",
|
|
@@ -185,10 +213,10 @@
|
|
|
185
213
|
"textures": [],
|
|
186
214
|
"samplers": []
|
|
187
215
|
},
|
|
188
|
-
"contractSha256": "
|
|
216
|
+
"contractSha256": "057246d3e387619aa5183aed9872bc1606a47c08e583230f57aa4fbc69ad7674",
|
|
189
217
|
"languages": {
|
|
190
218
|
"glsl": {
|
|
191
|
-
"blockSize":
|
|
219
|
+
"blockSize": 560,
|
|
192
220
|
"layout": {
|
|
193
221
|
"u_mvpMatrix": {
|
|
194
222
|
"offset": 0,
|
|
@@ -222,110 +250,146 @@
|
|
|
222
250
|
"elementStride": 0,
|
|
223
251
|
"encoding": "int"
|
|
224
252
|
},
|
|
225
|
-
"
|
|
253
|
+
"u_maskLutBase": {
|
|
226
254
|
"offset": 160,
|
|
227
255
|
"size": 4,
|
|
228
256
|
"elementStride": 0,
|
|
229
257
|
"encoding": "int"
|
|
230
258
|
},
|
|
231
|
-
"
|
|
259
|
+
"u_transformLutWidth": {
|
|
232
260
|
"offset": 164,
|
|
233
261
|
"size": 4,
|
|
234
262
|
"elementStride": 0,
|
|
235
263
|
"encoding": "int"
|
|
236
264
|
},
|
|
237
|
-
"
|
|
265
|
+
"u_transformLutStride": {
|
|
266
|
+
"offset": 168,
|
|
267
|
+
"size": 4,
|
|
268
|
+
"elementStride": 0,
|
|
269
|
+
"encoding": "int"
|
|
270
|
+
},
|
|
271
|
+
"u_transformLutBase": {
|
|
272
|
+
"offset": 172,
|
|
273
|
+
"size": 4,
|
|
274
|
+
"elementStride": 0,
|
|
275
|
+
"encoding": "int"
|
|
276
|
+
},
|
|
277
|
+
"u_transformMapWidth": {
|
|
238
278
|
"offset": 176,
|
|
279
|
+
"size": 4,
|
|
280
|
+
"elementStride": 0,
|
|
281
|
+
"encoding": "int"
|
|
282
|
+
},
|
|
283
|
+
"u_transformMapBase": {
|
|
284
|
+
"offset": 180,
|
|
285
|
+
"size": 4,
|
|
286
|
+
"elementStride": 0,
|
|
287
|
+
"encoding": "int"
|
|
288
|
+
},
|
|
289
|
+
"u_clipPlanes": {
|
|
290
|
+
"offset": 192,
|
|
239
291
|
"size": 96,
|
|
240
292
|
"elementStride": 16,
|
|
241
293
|
"encoding": "vec4[]"
|
|
242
294
|
},
|
|
243
295
|
"u_clipPlaneCount": {
|
|
244
|
-
"offset":
|
|
296
|
+
"offset": 288,
|
|
297
|
+
"size": 4,
|
|
298
|
+
"elementStride": 0,
|
|
299
|
+
"encoding": "int"
|
|
300
|
+
},
|
|
301
|
+
"u_materialMapWidth": {
|
|
302
|
+
"offset": 292,
|
|
303
|
+
"size": 4,
|
|
304
|
+
"elementStride": 0,
|
|
305
|
+
"encoding": "int"
|
|
306
|
+
},
|
|
307
|
+
"u_materialMapBase": {
|
|
308
|
+
"offset": 296,
|
|
245
309
|
"size": 4,
|
|
246
310
|
"elementStride": 0,
|
|
247
311
|
"encoding": "int"
|
|
248
312
|
},
|
|
249
313
|
"u_viewPosition": {
|
|
250
|
-
"offset":
|
|
314
|
+
"offset": 304,
|
|
251
315
|
"size": 12,
|
|
252
316
|
"elementStride": 4,
|
|
253
317
|
"encoding": "vec3"
|
|
254
318
|
},
|
|
255
319
|
"u_environmentSky": {
|
|
256
|
-
"offset":
|
|
320
|
+
"offset": 320,
|
|
257
321
|
"size": 12,
|
|
258
322
|
"elementStride": 4,
|
|
259
323
|
"encoding": "vec3"
|
|
260
324
|
},
|
|
261
325
|
"u_environmentGround": {
|
|
262
|
-
"offset":
|
|
326
|
+
"offset": 336,
|
|
263
327
|
"size": 12,
|
|
264
328
|
"elementStride": 4,
|
|
265
329
|
"encoding": "vec3"
|
|
266
330
|
},
|
|
267
331
|
"u_environmentUp": {
|
|
268
|
-
"offset":
|
|
332
|
+
"offset": 352,
|
|
269
333
|
"size": 12,
|
|
270
334
|
"elementStride": 4,
|
|
271
335
|
"encoding": "vec3"
|
|
272
336
|
},
|
|
273
337
|
"u_lightPositions": {
|
|
274
|
-
"offset":
|
|
338
|
+
"offset": 368,
|
|
275
339
|
"size": 64,
|
|
276
340
|
"elementStride": 16,
|
|
277
341
|
"encoding": "vec4[]"
|
|
278
342
|
},
|
|
279
343
|
"u_lightColors": {
|
|
280
|
-
"offset":
|
|
344
|
+
"offset": 432,
|
|
281
345
|
"size": 64,
|
|
282
346
|
"elementStride": 16,
|
|
283
347
|
"encoding": "vec3[]"
|
|
284
348
|
},
|
|
285
349
|
"u_lightCount": {
|
|
286
|
-
"offset":
|
|
350
|
+
"offset": 496,
|
|
287
351
|
"size": 4,
|
|
288
352
|
"elementStride": 0,
|
|
289
353
|
"encoding": "int"
|
|
290
354
|
},
|
|
291
355
|
"u_surfaceFinishScale": {
|
|
292
|
-
"offset":
|
|
356
|
+
"offset": 500,
|
|
293
357
|
"size": 4,
|
|
294
358
|
"elementStride": 0,
|
|
295
359
|
"encoding": "float"
|
|
296
360
|
},
|
|
297
361
|
"u_surfaceFinishRoughness": {
|
|
298
|
-
"offset":
|
|
362
|
+
"offset": 504,
|
|
299
363
|
"size": 4,
|
|
300
364
|
"elementStride": 0,
|
|
301
365
|
"encoding": "float"
|
|
302
366
|
},
|
|
303
367
|
"u_surfaceFinishColor": {
|
|
304
|
-
"offset":
|
|
368
|
+
"offset": 508,
|
|
305
369
|
"size": 4,
|
|
306
370
|
"elementStride": 0,
|
|
307
371
|
"encoding": "float"
|
|
308
372
|
},
|
|
309
373
|
"u_colorSource": {
|
|
310
|
-
"offset":
|
|
374
|
+
"offset": 512,
|
|
311
375
|
"size": 4,
|
|
312
376
|
"elementStride": 0,
|
|
313
377
|
"encoding": "int"
|
|
314
378
|
},
|
|
315
379
|
"u_opacity": {
|
|
316
|
-
"offset":
|
|
380
|
+
"offset": 516,
|
|
317
381
|
"size": 4,
|
|
318
382
|
"elementStride": 0,
|
|
319
383
|
"encoding": "float"
|
|
320
384
|
},
|
|
321
385
|
"u_capTint": {
|
|
322
|
-
"offset":
|
|
386
|
+
"offset": 528,
|
|
323
387
|
"size": 16,
|
|
324
388
|
"elementStride": 4,
|
|
325
389
|
"encoding": "vec4"
|
|
326
390
|
},
|
|
327
391
|
"u_modelEyePosition": {
|
|
328
|
-
"offset":
|
|
392
|
+
"offset": 544,
|
|
329
393
|
"size": 12,
|
|
330
394
|
"elementStride": 4,
|
|
331
395
|
"encoding": "vec3"
|
|
@@ -341,6 +405,15 @@
|
|
|
341
405
|
"stage": "vertex",
|
|
342
406
|
"unit": 0
|
|
343
407
|
},
|
|
408
|
+
{
|
|
409
|
+
"semantic": "material-map",
|
|
410
|
+
"texture": "u_materialMap",
|
|
411
|
+
"sampler": null,
|
|
412
|
+
"uniform": "SPIRV_Cross_Combinedu_materialMapSPIRV_Cross_DummySampler",
|
|
413
|
+
"component": "uint",
|
|
414
|
+
"stage": "vertex",
|
|
415
|
+
"unit": 1
|
|
416
|
+
},
|
|
344
417
|
{
|
|
345
418
|
"semantic": "transform",
|
|
346
419
|
"texture": "u_transformLut",
|
|
@@ -348,7 +421,16 @@
|
|
|
348
421
|
"uniform": "SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler",
|
|
349
422
|
"component": "uint",
|
|
350
423
|
"stage": "vertex",
|
|
351
|
-
"unit":
|
|
424
|
+
"unit": 2
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"semantic": "transform-map",
|
|
428
|
+
"texture": "u_transformMap",
|
|
429
|
+
"sampler": null,
|
|
430
|
+
"uniform": "SPIRV_Cross_Combinedu_transformMapSPIRV_Cross_DummySampler",
|
|
431
|
+
"component": "uint",
|
|
432
|
+
"stage": "vertex",
|
|
433
|
+
"unit": 3
|
|
352
434
|
},
|
|
353
435
|
{
|
|
354
436
|
"semantic": "material",
|
|
@@ -357,17 +439,17 @@
|
|
|
357
439
|
"uniform": "SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler",
|
|
358
440
|
"component": "float",
|
|
359
441
|
"stage": "fragment",
|
|
360
|
-
"unit":
|
|
442
|
+
"unit": 4
|
|
361
443
|
}
|
|
362
444
|
],
|
|
363
445
|
"stages": {
|
|
364
446
|
"vertex": {
|
|
365
|
-
"source": "#version 300 es\nprecision highp float;\nprecision highp int;\n\nstruct _Array_std140_vector_float_4_6\n{\n vec4 data[6];\n};\n\nstruct _Array_std140_vector_float_4_4\n{\n vec4 data[4];\n};\n\nstruct _Array_std140_vector_float_3_4\n{\n vec3 data[4];\n};\n\nlayout(std140) uniform GlobalParams_std140\n{\n layout(row_major) mat4 u_mvpMatrix;\n layout(row_major) mat4 u_modelViewMatrix;\n vec3 u_deformScale;\n vec3 u_deformRotationCenter;\n int u_maskLutWidth;\n int u_transformLutWidth;\n int u_transformLutStride;\n _Array_std140_vector_float_4_6 u_clipPlanes;\n int u_clipPlaneCount;\n vec3 u_viewPosition;\n vec3 u_environmentSky;\n vec3 u_environmentGround;\n vec3 u_environmentUp;\n _Array_std140_vector_float_4_4 u_lightPositions;\n _Array_std140_vector_float_3_4 u_lightColors;\n int u_lightCount;\n float u_surfaceFinishScale;\n float u_surfaceFinishRoughness;\n float u_surfaceFinishColor;\n int u_colorSource;\n float u_opacity;\n vec4 u_capTint;\n vec3 u_modelEyePosition;\n} globalParams;\n\nuniform highp usampler2D SPIRV_Cross_Combinedu_maskLutSPIRV_Cross_DummySampler;\nuniform highp usampler2D SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler;\n\nlayout(location = 2) in int
|
|
366
|
-
"sha256": "
|
|
447
|
+
"source": "#version 300 es\nprecision highp float;\nprecision highp int;\n\nstruct _Array_std140_vector_float_4_6\n{\n vec4 data[6];\n};\n\nstruct _Array_std140_vector_float_4_4\n{\n vec4 data[4];\n};\n\nstruct _Array_std140_vector_float_3_4\n{\n vec3 data[4];\n};\n\nlayout(std140) uniform GlobalParams_std140\n{\n layout(row_major) mat4 u_mvpMatrix;\n layout(row_major) mat4 u_modelViewMatrix;\n vec3 u_deformScale;\n vec3 u_deformRotationCenter;\n int u_maskLutWidth;\n int u_maskLutBase;\n int u_transformLutWidth;\n int u_transformLutStride;\n int u_transformLutBase;\n int u_transformMapWidth;\n int u_transformMapBase;\n _Array_std140_vector_float_4_6 u_clipPlanes;\n int u_clipPlaneCount;\n int u_materialMapWidth;\n int u_materialMapBase;\n vec3 u_viewPosition;\n vec3 u_environmentSky;\n vec3 u_environmentGround;\n vec3 u_environmentUp;\n _Array_std140_vector_float_4_4 u_lightPositions;\n _Array_std140_vector_float_3_4 u_lightColors;\n int u_lightCount;\n float u_surfaceFinishScale;\n float u_surfaceFinishRoughness;\n float u_surfaceFinishColor;\n int u_colorSource;\n float u_opacity;\n vec4 u_capTint;\n vec3 u_modelEyePosition;\n} globalParams;\n\nuniform highp usampler2D SPIRV_Cross_Combinedu_maskLutSPIRV_Cross_DummySampler;\nuniform highp usampler2D SPIRV_Cross_Combinedu_transformMapSPIRV_Cross_DummySampler;\nuniform highp usampler2D SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler;\nuniform highp usampler2D SPIRV_Cross_Combinedu_materialMapSPIRV_Cross_DummySampler;\n\nlayout(location = 2) in int a_atomId;\nout vec3 v0;\nout vec3 v1;\nout vec3 v2;\nout vec3 v3;\nflat out int v4;\nflat out int v5;\nflat out int v6;\nlayout(location = 0) in vec3 a_position;\nlayout(location = 1) in vec3 a_deformation;\nlayout(location = 3) in vec3 a_normal;\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 _465 = globalParams.u_maskLutBase + a_atomId;\n if (!(texelFetch(SPIRV_Cross_Combinedu_maskLutSPIRV_Cross_DummySampler, ivec2(_465 - globalParams.u_maskLutWidth * (_465 / globalParams.u_maskLutWidth), _465 / globalParams.u_maskLutWidth), 0).x != 0u))\n {\n gl_Position = vec4(2.0, 2.0, 2.0, 1.0);\n v0 = vec3(0.0);\n v1 = vec3(0.0);\n v2 = vec3(0.0);\n v3 = vec3(0.0);\n v4 = 0;\n v5 = 0;\n v6 = 0;\n break;\n }\n vec3 _495 = a_position + (globalParams.u_deformScale * a_deformation);\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 _496;\n vec3 _497;\n vec3 _498;\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 * _495;\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 _496 = 1;\n }\n else\n {\n _496 = 0;\n }\n _497 = ((_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 _498 = normalize((_791 + (_798 * _731.w)) + cross(_796, _798));\n }\n else\n {\n _497 = _495;\n _498 = a_normal;\n _496 = 0;\n }\n vec4 _585 = vec4(_497, 1.0);\n int _806 = globalParams.u_materialMapBase + a_atomId;\n gl_Position = _585 * spvWorkaroundRowMajor(globalParams.u_mvpMatrix);\n v0 = _497;\n v1 = (_585 * spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)).xyz;\n v2 = _498 * 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_capEnabled;\n v6 = _496;\n break;\n } while(false);\n}\n\n",
|
|
448
|
+
"sha256": "b61e336f4fb23772df04b8a1cf5cb8f476d7eb85ab10f2afc3d6bb9a6578b734"
|
|
367
449
|
},
|
|
368
450
|
"fragment": {
|
|
369
|
-
"source": "#version 300 es\nprecision highp float;\nprecision highp int;\n\nstruct _Array_std140_vector_float_4_6\n{\n highp vec4 data[6];\n};\n\nstruct _Array_std140_vector_float_4_4\n{\n highp vec4 data[4];\n};\n\nstruct _Array_std140_vector_float_3_4\n{\n highp vec3 data[4];\n};\n\nlayout(std140) uniform GlobalParams_std140\n{\n layout(row_major) highp mat4 u_mvpMatrix;\n layout(row_major) highp mat4 u_modelViewMatrix;\n highp vec3 u_deformScale;\n highp vec3 u_deformRotationCenter;\n int u_maskLutWidth;\n int u_transformLutWidth;\n int u_transformLutStride;\n _Array_std140_vector_float_4_6 u_clipPlanes;\n int u_clipPlaneCount;\n highp vec3 u_viewPosition;\n highp vec3 u_environmentSky;\n highp vec3 u_environmentGround;\n highp vec3 u_environmentUp;\n _Array_std140_vector_float_4_4 u_lightPositions;\n _Array_std140_vector_float_3_4 u_lightColors;\n int u_lightCount;\n highp float u_surfaceFinishScale;\n highp float u_surfaceFinishRoughness;\n highp float u_surfaceFinishColor;\n int u_colorSource;\n highp float u_opacity;\n highp vec4 u_capTint;\n highp vec3 u_modelEyePosition;\n} globalParams;\n\nuniform highp sampler2D SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler;\n\nin highp vec3 v0;\nflat in int v6;\nflat in int v5;\nflat in int v4;\nin highp vec3 v3;\nlayout(location = 0) out highp vec4 entryPointParam_fragmentMain;\nin highp vec3 v2;\nin highp vec3 v1;\n\nhighp mat4 spvWorkaroundRowMajor(highp mat4 wrap) { return wrap; }\nmediump mat4 spvWorkaroundRowMajorMP(mediump mat4 wrap) { return wrap; }\n\nvoid main()\n{\n bool _977 = false;\n do\n {\n _977 = false;\n bool _978;\n do\n {\n int _979 = 0;\n for (;;)\n {\n if (!(_979 < 6))\n {\n break;\n }\n if (_979 >= globalParams.u_clipPlaneCount)\n {\n break;\n }\n if ((dot(globalParams.u_clipPlanes.data[_979].xyz, v0) + globalParams.u_clipPlanes.data[_979].w) < 0.0)\n {\n _977 = true;\n _978 = false;\n break;\n }\n _979++;\n continue;\n }\n if (_977)\n {\n break;\n }\n _977 = true;\n _978 = true;\n break;\n } while(false);\n if (!_978)\n {\n discard;\n }\n bool _1023 = gl_FrontFacing != (v6 != 0);\n bool _1024;\n if (!_1023)\n {\n _1024 = v5 == 0;\n }\n else\n {\n _1024 = false;\n }\n if (_1024)\n {\n discard;\n }\n highp vec3 _172 = v0 - globalParams.u_modelEyePosition;\n int _1033 = -1;\n highp float _1035 = 0.0;\n int _1034 = 0;\n bool _1036;\n int _1037;\n highp float _1038;\n for (;;)\n {\n bool _1044_ladder_break = false;\n do\n {\n if (!(_1034 < 6))\n {\n _1044_ladder_break = true;\n break;\n }\n if (_1034 >= globalParams.u_clipPlaneCount)\n {\n _1044_ladder_break = true;\n break;\n }\n highp float _1059 = dot(globalParams.u_clipPlanes.data[_1034].xyz, _172);\n if (_1059 <= 0.0)\n {\n break;\n }\n highp float _1065 = (-(dot(globalParams.u_clipPlanes.data[_1034].xyz, globalParams.u_modelEyePosition) + globalParams.u_clipPlanes.data[_1034].w)) / _1059;\n if (_1033 < 0)\n {\n _1036 = true;\n }\n else\n {\n _1036 = _1065 > _1035;\n }\n if (_1036)\n {\n _1037 = _1034;\n _1038 = _1065;\n }\n else\n {\n _1037 = _1033;\n _1038 = _1035;\n }\n _1033 = _1037;\n _1035 = _1038;\n break;\n } while(false);\n if (_1044_ladder_break)\n {\n break;\n }\n _1034++;\n continue;\n }\n bool _7;\n if (_1033 < 0)\n {\n bool _1095;\n if (!_1023)\n {\n _1095 = v5 != 0;\n }\n else\n {\n _1095 = false;\n }\n _7 = _1095;\n }\n else\n {\n _7 = false;\n }\n if (_7)\n {\n discard;\n }\n highp vec4 _1109 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 0), 0);\n highp vec4 _1113 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 1), 0);\n highp vec4 _1117 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 2), 0);\n highp vec3 _1120 = _1109.xyz;\n highp float _1122 = _1109.w;\n highp vec3 _1124 = _1113.xyz;\n highp float _1126 = _1113.w;\n highp float _1128 = _1117.x;\n highp vec3 _1786 = _1120;\n highp float _1787 = _1122;\n highp float _1788 = _1126;\n highp float _1789 = _1128;\n highp vec3 _1790 = _1124;\n highp vec3 _1814 = _1120;\n highp float _1815 = _1122;\n highp float _1816 = _1126;\n highp float _1817 = _1128;\n highp vec3 _1818 = _1124;\n highp float _1836 = globalParams.u_surfaceFinishScale;\n highp float _1837 = globalParams.u_surfaceFinishRoughness;\n highp float _1838 = globalParams.u_surfaceFinishColor;\n highp vec3 _1706;\n highp float _1707;\n highp float _1708;\n highp float _1709;\n highp vec3 _1710;\n do\n {\n if (_1836 <= 0.0)\n {\n _1706 = _1814;\n _1707 = _1815;\n _1708 = _1816;\n _1709 = _1817;\n _1710 = _1818;\n break;\n }\n highp vec3 _1143 = v3 / vec3(_1836);\n highp vec3 _1170 = floor(_1143);\n highp vec3 _1171 = _1143 - _1170;\n highp vec3 _1176 = (_1171 * _1171) * (vec3(3.0) - (_1171 * 2.0));\n ivec3 _1177 = ivec3(_1170);\n uint _1216 = (((uint(_1177.x) * 2376512323u) + (uint(_1177.y) * 3625334849u)) + (uint(_1177.z) * 3407524639u)) + 2654435769u;\n uint _1219 = (_1216 ^ (_1216 >> uint(15))) * 739982445u;\n uint _1222 = (_1219 ^ (_1219 >> uint(12))) * 695872825u;\n ivec3 _1179 = _1177 + ivec3(1, 0, 0);\n uint _1241 = (((uint(_1179.x) * 2376512323u) + (uint(_1179.y) * 3625334849u)) + (uint(_1179.z) * 3407524639u)) + 2654435769u;\n uint _1244 = (_1241 ^ (_1241 >> uint(15))) * 739982445u;\n uint _1247 = (_1244 ^ (_1244 >> uint(12))) * 695872825u;\n ivec3 _1181 = _1177 + ivec3(0, 1, 0);\n uint _1266 = (((uint(_1181.x) * 2376512323u) + (uint(_1181.y) * 3625334849u)) + (uint(_1181.z) * 3407524639u)) + 2654435769u;\n uint _1269 = (_1266 ^ (_1266 >> uint(15))) * 739982445u;\n uint _1272 = (_1269 ^ (_1269 >> uint(12))) * 695872825u;\n ivec3 _1183 = _1177 + ivec3(1, 1, 0);\n uint _1291 = (((uint(_1183.x) * 2376512323u) + (uint(_1183.y) * 3625334849u)) + (uint(_1183.z) * 3407524639u)) + 2654435769u;\n uint _1294 = (_1291 ^ (_1291 >> uint(15))) * 739982445u;\n uint _1297 = (_1294 ^ (_1294 >> uint(12))) * 695872825u;\n ivec3 _1185 = _1177 + ivec3(0, 0, 1);\n uint _1316 = (((uint(_1185.x) * 2376512323u) + (uint(_1185.y) * 3625334849u)) + (uint(_1185.z) * 3407524639u)) + 2654435769u;\n uint _1319 = (_1316 ^ (_1316 >> uint(15))) * 739982445u;\n uint _1322 = (_1319 ^ (_1319 >> uint(12))) * 695872825u;\n ivec3 _1187 = _1177 + ivec3(1, 0, 1);\n uint _1341 = (((uint(_1187.x) * 2376512323u) + (uint(_1187.y) * 3625334849u)) + (uint(_1187.z) * 3407524639u)) + 2654435769u;\n uint _1344 = (_1341 ^ (_1341 >> uint(15))) * 739982445u;\n uint _1347 = (_1344 ^ (_1344 >> uint(12))) * 695872825u;\n ivec3 _1189 = _1177 + ivec3(0, 1, 1);\n uint _1366 = (((uint(_1189.x) * 2376512323u) + (uint(_1189.y) * 3625334849u)) + (uint(_1189.z) * 3407524639u)) + 2654435769u;\n uint _1369 = (_1366 ^ (_1366 >> uint(15))) * 739982445u;\n uint _1372 = (_1369 ^ (_1369 >> uint(12))) * 695872825u;\n ivec3 _1191 = _1177 + ivec3(1);\n uint _1391 = (((uint(_1191.x) * 2376512323u) + (uint(_1191.y) * 3625334849u)) + (uint(_1191.z) * 3407524639u)) + 2654435769u;\n uint _1394 = (_1391 ^ (_1391 >> uint(15))) * 739982445u;\n uint _1397 = (_1394 ^ (_1394 >> uint(12))) * 695872825u;\n highp float _1193 = _1176.x;\n highp float _1198 = _1176.y;\n highp float _1146 = (mix(mix(mix(float((_1222 ^ (_1222 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1247 ^ (_1247 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1193), mix(float((_1272 ^ (_1272 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1297 ^ (_1297 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1193), _1198), mix(mix(float((_1322 ^ (_1322 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1347 ^ (_1347 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1193), mix(float((_1372 ^ (_1372 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1397 ^ (_1397 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1193), _1198), _1176.z) * 2.0) - 1.0;\n _1706 = clamp(_1814 * (1.0 + (_1146 * _1838)), vec3(0.0), vec3(1.0));\n _1707 = _1815;\n _1708 = clamp(_1816 + (_1146 * _1837), 0.0, 1.0);\n _1709 = _1817;\n _1710 = _1818;\n break;\n } while(false);\n _1786 = _1706;\n _1787 = _1707;\n _1788 = _1708;\n _1789 = _1709;\n _1790 = _1710;\n highp vec3 _1407;\n do\n {\n bool _1422;\n if (!_1023)\n {\n _1422 = v5 != 0;\n }\n else\n {\n _1422 = false;\n }\n if (_1422)\n {\n _1407 = (_1706 * (1.0 - globalParams.u_capTint.w)) + (globalParams.u_capTint.xyz * globalParams.u_capTint.w);\n break;\n }\n _1407 = _1706;\n break;\n } while(false);\n _1786 = _1407;\n if (globalParams.u_colorSource == 3)\n {\n entryPointParam_fragmentMain = vec4(_1786, globalParams.u_opacity);\n break;\n }\n bool _1431;\n if (!_1023)\n {\n _1431 = v5 != 0;\n }\n else\n {\n _1431 = false;\n }\n highp vec3 N;\n if (_1431)\n {\n N = normalize((-globalParams.u_clipPlanes.data[max(_1033, 0)].xyz) * mat3(spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[0].xyz, spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[1].xyz, spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[2].xyz));\n }\n else\n {\n N = normalize(v2);\n }\n highp vec3 _1447 = normalize(globalParams.u_viewPosition - v1);\n highp vec3 _1849 = _1786;\n highp float _1850 = _1787;\n highp float _1851 = _1788;\n highp float _1852 = _1789;\n highp vec3 _1853 = _1790;\n highp vec3 _1859 = globalParams.u_environmentSky;\n highp vec3 _1860 = globalParams.u_environmentGround;\n highp vec3 _1861 = globalParams.u_environmentUp;\n int _1448 = 0;\n highp vec3 _1449 = vec3(0.0);\n highp vec3 _1490;\n highp vec3 _1491;\n highp vec3 _1492;\n highp float _1493;\n for (;;)\n {\n if (!(_1448 < 4))\n {\n break;\n }\n if (_1448 < globalParams.u_lightCount)\n {\n do\n {\n bool _1498 = globalParams.u_lightPositions.data[_1448].w == 0.0;\n if (_1498)\n {\n _1491 = globalParams.u_lightPositions.data[_1448].xyz;\n }\n else\n {\n _1491 = globalParams.u_lightPositions.data[_1448].xyz - v1;\n }\n highp float _1507 = dot(_1491, _1491);\n if (_1498)\n {\n _1492 = normalize(globalParams.u_lightPositions.data[_1448].xyz);\n }\n else\n {\n _1492 = _1491 * inversesqrt(_1507);\n }\n if (_1498)\n {\n _1493 = 1.0;\n }\n else\n {\n _1493 = 1.0 / _1507;\n }\n highp float _1523 = dot(N, _1492);\n if (_1523 <= 0.0)\n {\n _1490 = vec3(0.0);\n break;\n }\n highp vec3 _1528 = _1447 + _1492;\n highp float _1529 = dot(_1528, _1528);\n if (_1529 <= 9.9999999600419720025001879548654e-13)\n {\n _1490 = vec3(0.0);\n break;\n }\n highp vec3 _1534 = _1528 * inversesqrt(_1529);\n highp float _1536 = max(dot(N, _1447), 0.0);\n highp float _1538 = max(dot(N, _1534), 0.0);\n highp float _1543 = max(_1851, 0.039999999105930328369140625);\n highp vec3 _1575 = mix(vec3(0.039999999105930328369140625), _1849, vec3(_1850));\n highp float _1578 = _1543 * _1543;\n highp float _1579 = _1578 * _1578;\n highp float _1583 = ((_1538 * _1538) * (_1579 - 1.0)) + 1.0;\n highp float _1594 = _1543 + 1.0;\n highp float _1596 = (_1594 * _1594) * 0.125;\n highp float _1603 = _1543 + 1.0;\n highp float _1605 = (_1603 * _1603) * 0.125;\n highp vec3 _1618 = _1575 + ((vec3(1.0) - _1575) * pow(clamp(1.0 - max(dot(_1534, _1447), 0.0), 0.0, 1.0), 5.0));\n _1490 = ((((clamp((vec3(1.0) - _1618) * (1.0 - _1850), vec3(0.0), vec3(1.0)) * _1849) * vec3(0.3183098733425140380859375)) + ((_1618 * ((_1579 / ((3.1415927410125732421875 * _1583) * _1583)) * ((_1536 / ((_1536 * (1.0 - _1596)) + _1596)) * (_1523 / ((_1523 * (1.0 - _1605)) + _1605))))) / vec3(((4.0 * _1536) * _1523) + 9.9999997473787516355514526367188e-05))) * (globalParams.u_lightColors.data[_1448] * _1493)) * _1523;\n break;\n } while(false);\n _1449 += _1490;\n }\n _1448++;\n continue;\n }\n highp vec3 _1654 = mix(vec3(0.039999999105930328369140625), _1849, vec3(_1850));\n highp vec3 _1665 = _1654 + ((max(vec3(1.0 - max(_1851, 0.039999999105930328369140625)), _1654) - _1654) * pow(clamp(1.0 - max(dot(N, _1447), 0.0), 0.0, 1.0), 5.0));\n highp vec3 _1488 = (((((clamp((vec3(1.0) - _1665) * (1.0 - _1850), vec3(0.0), vec3(1.0)) * mix(_1860, _1859, vec3((dot(N, _1861) * 0.5) + 0.5))) * _1849) + (mix(_1860, _1859, vec3((dot(reflect(-_1447, N), _1861) * 0.5) + 0.5)) * _1665)) * _1852) + _1449) + _1853;\n entryPointParam_fragmentMain = vec4(pow(_1488 / (_1488 + vec3(1.0)), vec3(0.454545438289642333984375)), globalParams.u_opacity);\n break;\n } while(false);\n}\n\n",
|
|
370
|
-
"sha256": "
|
|
451
|
+
"source": "#version 300 es\nprecision highp float;\nprecision highp int;\n\nstruct _Array_std140_vector_float_4_6\n{\n highp vec4 data[6];\n};\n\nstruct _Array_std140_vector_float_4_4\n{\n highp vec4 data[4];\n};\n\nstruct _Array_std140_vector_float_3_4\n{\n highp vec3 data[4];\n};\n\nlayout(std140) uniform GlobalParams_std140\n{\n layout(row_major) highp mat4 u_mvpMatrix;\n layout(row_major) highp mat4 u_modelViewMatrix;\n highp vec3 u_deformScale;\n highp vec3 u_deformRotationCenter;\n int u_maskLutWidth;\n int u_maskLutBase;\n int u_transformLutWidth;\n int u_transformLutStride;\n int u_transformLutBase;\n int u_transformMapWidth;\n int u_transformMapBase;\n _Array_std140_vector_float_4_6 u_clipPlanes;\n int u_clipPlaneCount;\n int u_materialMapWidth;\n int u_materialMapBase;\n highp vec3 u_viewPosition;\n highp vec3 u_environmentSky;\n highp vec3 u_environmentGround;\n highp vec3 u_environmentUp;\n _Array_std140_vector_float_4_4 u_lightPositions;\n _Array_std140_vector_float_3_4 u_lightColors;\n int u_lightCount;\n highp float u_surfaceFinishScale;\n highp float u_surfaceFinishRoughness;\n highp float u_surfaceFinishColor;\n int u_colorSource;\n highp float u_opacity;\n highp vec4 u_capTint;\n highp vec3 u_modelEyePosition;\n} globalParams;\n\nuniform highp sampler2D SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler;\n\nin highp vec3 v0;\nflat in int v6;\nflat in int v5;\nflat in int v4;\nin highp vec3 v3;\nlayout(location = 0) out highp vec4 entryPointParam_fragmentMain;\nin highp vec3 v2;\nin highp vec3 v1;\n\nhighp mat4 spvWorkaroundRowMajor(highp mat4 wrap) { return wrap; }\nmediump mat4 spvWorkaroundRowMajorMP(mediump mat4 wrap) { return wrap; }\n\nvoid main()\n{\n bool _977 = false;\n do\n {\n _977 = false;\n bool _978;\n do\n {\n int _979 = 0;\n for (;;)\n {\n if (!(_979 < 6))\n {\n break;\n }\n if (_979 >= globalParams.u_clipPlaneCount)\n {\n break;\n }\n if ((dot(globalParams.u_clipPlanes.data[_979].xyz, v0) + globalParams.u_clipPlanes.data[_979].w) < 0.0)\n {\n _977 = true;\n _978 = false;\n break;\n }\n _979++;\n continue;\n }\n if (_977)\n {\n break;\n }\n _977 = true;\n _978 = true;\n break;\n } while(false);\n if (!_978)\n {\n discard;\n }\n bool _1023 = gl_FrontFacing != (v6 != 0);\n bool _1024;\n if (!_1023)\n {\n _1024 = v5 == 0;\n }\n else\n {\n _1024 = false;\n }\n if (_1024)\n {\n discard;\n }\n highp vec3 _172 = v0 - globalParams.u_modelEyePosition;\n int _1033 = -1;\n highp float _1035 = 0.0;\n int _1034 = 0;\n bool _1036;\n int _1037;\n highp float _1038;\n for (;;)\n {\n bool _1044_ladder_break = false;\n do\n {\n if (!(_1034 < 6))\n {\n _1044_ladder_break = true;\n break;\n }\n if (_1034 >= globalParams.u_clipPlaneCount)\n {\n _1044_ladder_break = true;\n break;\n }\n highp float _1059 = dot(globalParams.u_clipPlanes.data[_1034].xyz, _172);\n if (_1059 <= 0.0)\n {\n break;\n }\n highp float _1065 = (-(dot(globalParams.u_clipPlanes.data[_1034].xyz, globalParams.u_modelEyePosition) + globalParams.u_clipPlanes.data[_1034].w)) / _1059;\n if (_1033 < 0)\n {\n _1036 = true;\n }\n else\n {\n _1036 = _1065 > _1035;\n }\n if (_1036)\n {\n _1037 = _1034;\n _1038 = _1065;\n }\n else\n {\n _1037 = _1033;\n _1038 = _1035;\n }\n _1033 = _1037;\n _1035 = _1038;\n break;\n } while(false);\n if (_1044_ladder_break)\n {\n break;\n }\n _1034++;\n continue;\n }\n bool _7;\n if (_1033 < 0)\n {\n bool _1095;\n if (!_1023)\n {\n _1095 = v5 != 0;\n }\n else\n {\n _1095 = false;\n }\n _7 = _1095;\n }\n else\n {\n _7 = false;\n }\n if (_7)\n {\n discard;\n }\n highp vec4 _1109 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 0), 0);\n highp vec4 _1113 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 1), 0);\n highp vec4 _1117 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 2), 0);\n highp vec3 _1120 = _1109.xyz;\n highp float _1122 = _1109.w;\n highp vec3 _1124 = _1113.xyz;\n highp float _1126 = _1113.w;\n highp float _1128 = _1117.x;\n highp vec3 _1786 = _1120;\n highp float _1787 = _1122;\n highp float _1788 = _1126;\n highp float _1789 = _1128;\n highp vec3 _1790 = _1124;\n highp vec3 _1814 = _1120;\n highp float _1815 = _1122;\n highp float _1816 = _1126;\n highp float _1817 = _1128;\n highp vec3 _1818 = _1124;\n highp float _1836 = globalParams.u_surfaceFinishScale;\n highp float _1837 = globalParams.u_surfaceFinishRoughness;\n highp float _1838 = globalParams.u_surfaceFinishColor;\n highp vec3 _1706;\n highp float _1707;\n highp float _1708;\n highp float _1709;\n highp vec3 _1710;\n do\n {\n if (_1836 <= 0.0)\n {\n _1706 = _1814;\n _1707 = _1815;\n _1708 = _1816;\n _1709 = _1817;\n _1710 = _1818;\n break;\n }\n highp vec3 _1143 = v3 / vec3(_1836);\n highp vec3 _1170 = floor(_1143);\n highp vec3 _1171 = _1143 - _1170;\n highp vec3 _1176 = (_1171 * _1171) * (vec3(3.0) - (_1171 * 2.0));\n ivec3 _1177 = ivec3(_1170);\n uint _1216 = (((uint(_1177.x) * 2376512323u) + (uint(_1177.y) * 3625334849u)) + (uint(_1177.z) * 3407524639u)) + 2654435769u;\n uint _1219 = (_1216 ^ (_1216 >> uint(15))) * 739982445u;\n uint _1222 = (_1219 ^ (_1219 >> uint(12))) * 695872825u;\n ivec3 _1179 = _1177 + ivec3(1, 0, 0);\n uint _1241 = (((uint(_1179.x) * 2376512323u) + (uint(_1179.y) * 3625334849u)) + (uint(_1179.z) * 3407524639u)) + 2654435769u;\n uint _1244 = (_1241 ^ (_1241 >> uint(15))) * 739982445u;\n uint _1247 = (_1244 ^ (_1244 >> uint(12))) * 695872825u;\n ivec3 _1181 = _1177 + ivec3(0, 1, 0);\n uint _1266 = (((uint(_1181.x) * 2376512323u) + (uint(_1181.y) * 3625334849u)) + (uint(_1181.z) * 3407524639u)) + 2654435769u;\n uint _1269 = (_1266 ^ (_1266 >> uint(15))) * 739982445u;\n uint _1272 = (_1269 ^ (_1269 >> uint(12))) * 695872825u;\n ivec3 _1183 = _1177 + ivec3(1, 1, 0);\n uint _1291 = (((uint(_1183.x) * 2376512323u) + (uint(_1183.y) * 3625334849u)) + (uint(_1183.z) * 3407524639u)) + 2654435769u;\n uint _1294 = (_1291 ^ (_1291 >> uint(15))) * 739982445u;\n uint _1297 = (_1294 ^ (_1294 >> uint(12))) * 695872825u;\n ivec3 _1185 = _1177 + ivec3(0, 0, 1);\n uint _1316 = (((uint(_1185.x) * 2376512323u) + (uint(_1185.y) * 3625334849u)) + (uint(_1185.z) * 3407524639u)) + 2654435769u;\n uint _1319 = (_1316 ^ (_1316 >> uint(15))) * 739982445u;\n uint _1322 = (_1319 ^ (_1319 >> uint(12))) * 695872825u;\n ivec3 _1187 = _1177 + ivec3(1, 0, 1);\n uint _1341 = (((uint(_1187.x) * 2376512323u) + (uint(_1187.y) * 3625334849u)) + (uint(_1187.z) * 3407524639u)) + 2654435769u;\n uint _1344 = (_1341 ^ (_1341 >> uint(15))) * 739982445u;\n uint _1347 = (_1344 ^ (_1344 >> uint(12))) * 695872825u;\n ivec3 _1189 = _1177 + ivec3(0, 1, 1);\n uint _1366 = (((uint(_1189.x) * 2376512323u) + (uint(_1189.y) * 3625334849u)) + (uint(_1189.z) * 3407524639u)) + 2654435769u;\n uint _1369 = (_1366 ^ (_1366 >> uint(15))) * 739982445u;\n uint _1372 = (_1369 ^ (_1369 >> uint(12))) * 695872825u;\n ivec3 _1191 = _1177 + ivec3(1);\n uint _1391 = (((uint(_1191.x) * 2376512323u) + (uint(_1191.y) * 3625334849u)) + (uint(_1191.z) * 3407524639u)) + 2654435769u;\n uint _1394 = (_1391 ^ (_1391 >> uint(15))) * 739982445u;\n uint _1397 = (_1394 ^ (_1394 >> uint(12))) * 695872825u;\n highp float _1193 = _1176.x;\n highp float _1198 = _1176.y;\n highp float _1146 = (mix(mix(mix(float((_1222 ^ (_1222 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1247 ^ (_1247 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1193), mix(float((_1272 ^ (_1272 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1297 ^ (_1297 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1193), _1198), mix(mix(float((_1322 ^ (_1322 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1347 ^ (_1347 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1193), mix(float((_1372 ^ (_1372 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1397 ^ (_1397 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1193), _1198), _1176.z) * 2.0) - 1.0;\n _1706 = clamp(_1814 * (1.0 + (_1146 * _1838)), vec3(0.0), vec3(1.0));\n _1707 = _1815;\n _1708 = clamp(_1816 + (_1146 * _1837), 0.0, 1.0);\n _1709 = _1817;\n _1710 = _1818;\n break;\n } while(false);\n _1786 = _1706;\n _1787 = _1707;\n _1788 = _1708;\n _1789 = _1709;\n _1790 = _1710;\n highp vec3 _1407;\n do\n {\n bool _1422;\n if (!_1023)\n {\n _1422 = v5 != 0;\n }\n else\n {\n _1422 = false;\n }\n if (_1422)\n {\n _1407 = (_1706 * (1.0 - globalParams.u_capTint.w)) + (globalParams.u_capTint.xyz * globalParams.u_capTint.w);\n break;\n }\n _1407 = _1706;\n break;\n } while(false);\n _1786 = _1407;\n if (globalParams.u_colorSource == 3)\n {\n entryPointParam_fragmentMain = vec4(_1786, globalParams.u_opacity);\n break;\n }\n bool _1431;\n if (!_1023)\n {\n _1431 = v5 != 0;\n }\n else\n {\n _1431 = false;\n }\n highp vec3 N;\n if (_1431)\n {\n N = normalize((-globalParams.u_clipPlanes.data[max(_1033, 0)].xyz) * mat3(spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[0].xyz, spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[1].xyz, spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[2].xyz));\n }\n else\n {\n N = normalize(v2);\n }\n highp vec3 _1447 = normalize(globalParams.u_viewPosition - v1);\n highp vec3 _1849 = _1786;\n highp float _1850 = _1787;\n highp float _1851 = _1788;\n highp float _1852 = _1789;\n highp vec3 _1853 = _1790;\n highp vec3 _1859 = globalParams.u_environmentSky;\n highp vec3 _1860 = globalParams.u_environmentGround;\n highp vec3 _1861 = globalParams.u_environmentUp;\n int _1448 = 0;\n highp vec3 _1449 = vec3(0.0);\n highp vec3 _1490;\n highp vec3 _1491;\n highp vec3 _1492;\n highp float _1493;\n for (;;)\n {\n if (!(_1448 < 4))\n {\n break;\n }\n if (_1448 < globalParams.u_lightCount)\n {\n do\n {\n bool _1498 = globalParams.u_lightPositions.data[_1448].w == 0.0;\n if (_1498)\n {\n _1491 = globalParams.u_lightPositions.data[_1448].xyz;\n }\n else\n {\n _1491 = globalParams.u_lightPositions.data[_1448].xyz - v1;\n }\n highp float _1507 = dot(_1491, _1491);\n if (_1498)\n {\n _1492 = normalize(globalParams.u_lightPositions.data[_1448].xyz);\n }\n else\n {\n _1492 = _1491 * inversesqrt(_1507);\n }\n if (_1498)\n {\n _1493 = 1.0;\n }\n else\n {\n _1493 = 1.0 / _1507;\n }\n highp float _1523 = dot(N, _1492);\n if (_1523 <= 0.0)\n {\n _1490 = vec3(0.0);\n break;\n }\n highp vec3 _1528 = _1447 + _1492;\n highp float _1529 = dot(_1528, _1528);\n if (_1529 <= 9.9999999600419720025001879548654e-13)\n {\n _1490 = vec3(0.0);\n break;\n }\n highp vec3 _1534 = _1528 * inversesqrt(_1529);\n highp float _1536 = max(dot(N, _1447), 0.0);\n highp float _1538 = max(dot(N, _1534), 0.0);\n highp float _1543 = max(_1851, 0.039999999105930328369140625);\n highp vec3 _1575 = mix(vec3(0.039999999105930328369140625), _1849, vec3(_1850));\n highp float _1578 = _1543 * _1543;\n highp float _1579 = _1578 * _1578;\n highp float _1583 = ((_1538 * _1538) * (_1579 - 1.0)) + 1.0;\n highp float _1594 = _1543 + 1.0;\n highp float _1596 = (_1594 * _1594) * 0.125;\n highp float _1603 = _1543 + 1.0;\n highp float _1605 = (_1603 * _1603) * 0.125;\n highp vec3 _1618 = _1575 + ((vec3(1.0) - _1575) * pow(clamp(1.0 - max(dot(_1534, _1447), 0.0), 0.0, 1.0), 5.0));\n _1490 = ((((clamp((vec3(1.0) - _1618) * (1.0 - _1850), vec3(0.0), vec3(1.0)) * _1849) * vec3(0.3183098733425140380859375)) + ((_1618 * ((_1579 / ((3.1415927410125732421875 * _1583) * _1583)) * ((_1536 / ((_1536 * (1.0 - _1596)) + _1596)) * (_1523 / ((_1523 * (1.0 - _1605)) + _1605))))) / vec3(((4.0 * _1536) * _1523) + 9.9999997473787516355514526367188e-05))) * (globalParams.u_lightColors.data[_1448] * _1493)) * _1523;\n break;\n } while(false);\n _1449 += _1490;\n }\n _1448++;\n continue;\n }\n highp vec3 _1654 = mix(vec3(0.039999999105930328369140625), _1849, vec3(_1850));\n highp vec3 _1665 = _1654 + ((max(vec3(1.0 - max(_1851, 0.039999999105930328369140625)), _1654) - _1654) * pow(clamp(1.0 - max(dot(N, _1447), 0.0), 0.0, 1.0), 5.0));\n highp vec3 _1488 = (((((clamp((vec3(1.0) - _1665) * (1.0 - _1850), vec3(0.0), vec3(1.0)) * mix(_1860, _1859, vec3((dot(N, _1861) * 0.5) + 0.5))) * _1849) + (mix(_1860, _1859, vec3((dot(reflect(-_1447, N), _1861) * 0.5) + 0.5)) * _1665)) * _1852) + _1449) + _1853;\n entryPointParam_fragmentMain = vec4(pow(_1488 / (_1488 + vec3(1.0)), vec3(0.454545438289642333984375)), globalParams.u_opacity);\n break;\n } while(false);\n}\n\n",
|
|
452
|
+
"sha256": "2d06f767d14ef58e15c853e6c0d9c342418025cc0c2509238e080182217e3f67"
|
|
371
453
|
}
|
|
372
454
|
}
|
|
373
455
|
}
|