@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",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"description": "The material's shaded surface, each primitive colored by its material row, on undeformed geometry, with the cut a clip plane leaves filled.",
|
|
14
14
|
"id": "surface.capped",
|
|
15
15
|
"capabilities": [
|
|
16
|
+
"material-map-r16ui",
|
|
16
17
|
"material",
|
|
17
18
|
"material-table",
|
|
18
19
|
"material-surface-finish",
|
|
@@ -21,6 +22,7 @@
|
|
|
21
22
|
"mask-lut-r8ui",
|
|
22
23
|
"transform",
|
|
23
24
|
"transform-lut-r32ui",
|
|
25
|
+
"transform-map-r16ui",
|
|
24
26
|
"clip"
|
|
25
27
|
],
|
|
26
28
|
"inputs": [
|
|
@@ -30,25 +32,15 @@
|
|
|
30
32
|
"semantic": "coordinates"
|
|
31
33
|
},
|
|
32
34
|
{
|
|
33
|
-
"name": "
|
|
35
|
+
"name": "a_atomId",
|
|
34
36
|
"type": "int",
|
|
35
|
-
"semantic": "
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"name": "a_componentId",
|
|
39
|
-
"type": "int",
|
|
40
|
-
"semantic": "component-id"
|
|
37
|
+
"semantic": "atom-id"
|
|
41
38
|
},
|
|
42
39
|
{
|
|
43
40
|
"name": "a_normal",
|
|
44
41
|
"type": "vec3",
|
|
45
42
|
"semantic": "normal"
|
|
46
43
|
},
|
|
47
|
-
{
|
|
48
|
-
"name": "a_materialId",
|
|
49
|
-
"type": "int",
|
|
50
|
-
"semantic": "material-id"
|
|
51
|
-
},
|
|
52
44
|
{
|
|
53
45
|
"name": "a_capEnabled",
|
|
54
46
|
"type": "int",
|
|
@@ -68,6 +60,10 @@
|
|
|
68
60
|
"name": "u_maskLutWidth",
|
|
69
61
|
"type": "int"
|
|
70
62
|
},
|
|
63
|
+
{
|
|
64
|
+
"name": "u_maskLutBase",
|
|
65
|
+
"type": "int"
|
|
66
|
+
},
|
|
71
67
|
{
|
|
72
68
|
"name": "u_transformLutWidth",
|
|
73
69
|
"type": "int"
|
|
@@ -76,6 +72,18 @@
|
|
|
76
72
|
"name": "u_transformLutStride",
|
|
77
73
|
"type": "int"
|
|
78
74
|
},
|
|
75
|
+
{
|
|
76
|
+
"name": "u_transformLutBase",
|
|
77
|
+
"type": "int"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "u_transformMapWidth",
|
|
81
|
+
"type": "int"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "u_transformMapBase",
|
|
85
|
+
"type": "int"
|
|
86
|
+
},
|
|
79
87
|
{
|
|
80
88
|
"name": "u_clipPlanes",
|
|
81
89
|
"type": "vec4[6]"
|
|
@@ -84,6 +92,14 @@
|
|
|
84
92
|
"name": "u_clipPlaneCount",
|
|
85
93
|
"type": "int"
|
|
86
94
|
},
|
|
95
|
+
{
|
|
96
|
+
"name": "u_materialMapWidth",
|
|
97
|
+
"type": "int"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "u_materialMapBase",
|
|
101
|
+
"type": "int"
|
|
102
|
+
},
|
|
87
103
|
{
|
|
88
104
|
"name": "u_viewPosition",
|
|
89
105
|
"type": "vec3"
|
|
@@ -165,6 +181,18 @@
|
|
|
165
181
|
"format": "r32ui",
|
|
166
182
|
"semantic": "transform"
|
|
167
183
|
},
|
|
184
|
+
{
|
|
185
|
+
"name": "u_transformMap",
|
|
186
|
+
"type": "Texture2D<uint4>",
|
|
187
|
+
"format": "r16ui",
|
|
188
|
+
"semantic": "transform-map"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"name": "u_materialMap",
|
|
192
|
+
"type": "Texture2D<uint4>",
|
|
193
|
+
"format": "r16ui",
|
|
194
|
+
"semantic": "material-map"
|
|
195
|
+
},
|
|
168
196
|
{
|
|
169
197
|
"name": "u_materialTable",
|
|
170
198
|
"type": "Texture2D<float4>",
|
|
@@ -175,10 +203,10 @@
|
|
|
175
203
|
"textures": [],
|
|
176
204
|
"samplers": []
|
|
177
205
|
},
|
|
178
|
-
"contractSha256": "
|
|
206
|
+
"contractSha256": "6163c1ecab6d0ddc52c546c5954968977b90782a81921be3efe55b428aaebe29",
|
|
179
207
|
"languages": {
|
|
180
208
|
"glsl": {
|
|
181
|
-
"blockSize":
|
|
209
|
+
"blockSize": 560,
|
|
182
210
|
"layout": {
|
|
183
211
|
"u_mvpMatrix": {
|
|
184
212
|
"offset": 0,
|
|
@@ -212,110 +240,146 @@
|
|
|
212
240
|
"elementStride": 0,
|
|
213
241
|
"encoding": "int"
|
|
214
242
|
},
|
|
215
|
-
"
|
|
243
|
+
"u_maskLutBase": {
|
|
216
244
|
"offset": 160,
|
|
217
245
|
"size": 4,
|
|
218
246
|
"elementStride": 0,
|
|
219
247
|
"encoding": "int"
|
|
220
248
|
},
|
|
221
|
-
"
|
|
249
|
+
"u_transformLutWidth": {
|
|
222
250
|
"offset": 164,
|
|
223
251
|
"size": 4,
|
|
224
252
|
"elementStride": 0,
|
|
225
253
|
"encoding": "int"
|
|
226
254
|
},
|
|
227
|
-
"
|
|
255
|
+
"u_transformLutStride": {
|
|
256
|
+
"offset": 168,
|
|
257
|
+
"size": 4,
|
|
258
|
+
"elementStride": 0,
|
|
259
|
+
"encoding": "int"
|
|
260
|
+
},
|
|
261
|
+
"u_transformLutBase": {
|
|
262
|
+
"offset": 172,
|
|
263
|
+
"size": 4,
|
|
264
|
+
"elementStride": 0,
|
|
265
|
+
"encoding": "int"
|
|
266
|
+
},
|
|
267
|
+
"u_transformMapWidth": {
|
|
228
268
|
"offset": 176,
|
|
269
|
+
"size": 4,
|
|
270
|
+
"elementStride": 0,
|
|
271
|
+
"encoding": "int"
|
|
272
|
+
},
|
|
273
|
+
"u_transformMapBase": {
|
|
274
|
+
"offset": 180,
|
|
275
|
+
"size": 4,
|
|
276
|
+
"elementStride": 0,
|
|
277
|
+
"encoding": "int"
|
|
278
|
+
},
|
|
279
|
+
"u_clipPlanes": {
|
|
280
|
+
"offset": 192,
|
|
229
281
|
"size": 96,
|
|
230
282
|
"elementStride": 16,
|
|
231
283
|
"encoding": "vec4[]"
|
|
232
284
|
},
|
|
233
285
|
"u_clipPlaneCount": {
|
|
234
|
-
"offset":
|
|
286
|
+
"offset": 288,
|
|
287
|
+
"size": 4,
|
|
288
|
+
"elementStride": 0,
|
|
289
|
+
"encoding": "int"
|
|
290
|
+
},
|
|
291
|
+
"u_materialMapWidth": {
|
|
292
|
+
"offset": 292,
|
|
293
|
+
"size": 4,
|
|
294
|
+
"elementStride": 0,
|
|
295
|
+
"encoding": "int"
|
|
296
|
+
},
|
|
297
|
+
"u_materialMapBase": {
|
|
298
|
+
"offset": 296,
|
|
235
299
|
"size": 4,
|
|
236
300
|
"elementStride": 0,
|
|
237
301
|
"encoding": "int"
|
|
238
302
|
},
|
|
239
303
|
"u_viewPosition": {
|
|
240
|
-
"offset":
|
|
304
|
+
"offset": 304,
|
|
241
305
|
"size": 12,
|
|
242
306
|
"elementStride": 4,
|
|
243
307
|
"encoding": "vec3"
|
|
244
308
|
},
|
|
245
309
|
"u_environmentSky": {
|
|
246
|
-
"offset":
|
|
310
|
+
"offset": 320,
|
|
247
311
|
"size": 12,
|
|
248
312
|
"elementStride": 4,
|
|
249
313
|
"encoding": "vec3"
|
|
250
314
|
},
|
|
251
315
|
"u_environmentGround": {
|
|
252
|
-
"offset":
|
|
316
|
+
"offset": 336,
|
|
253
317
|
"size": 12,
|
|
254
318
|
"elementStride": 4,
|
|
255
319
|
"encoding": "vec3"
|
|
256
320
|
},
|
|
257
321
|
"u_environmentUp": {
|
|
258
|
-
"offset":
|
|
322
|
+
"offset": 352,
|
|
259
323
|
"size": 12,
|
|
260
324
|
"elementStride": 4,
|
|
261
325
|
"encoding": "vec3"
|
|
262
326
|
},
|
|
263
327
|
"u_lightPositions": {
|
|
264
|
-
"offset":
|
|
328
|
+
"offset": 368,
|
|
265
329
|
"size": 64,
|
|
266
330
|
"elementStride": 16,
|
|
267
331
|
"encoding": "vec4[]"
|
|
268
332
|
},
|
|
269
333
|
"u_lightColors": {
|
|
270
|
-
"offset":
|
|
334
|
+
"offset": 432,
|
|
271
335
|
"size": 64,
|
|
272
336
|
"elementStride": 16,
|
|
273
337
|
"encoding": "vec3[]"
|
|
274
338
|
},
|
|
275
339
|
"u_lightCount": {
|
|
276
|
-
"offset":
|
|
340
|
+
"offset": 496,
|
|
277
341
|
"size": 4,
|
|
278
342
|
"elementStride": 0,
|
|
279
343
|
"encoding": "int"
|
|
280
344
|
},
|
|
281
345
|
"u_surfaceFinishScale": {
|
|
282
|
-
"offset":
|
|
346
|
+
"offset": 500,
|
|
283
347
|
"size": 4,
|
|
284
348
|
"elementStride": 0,
|
|
285
349
|
"encoding": "float"
|
|
286
350
|
},
|
|
287
351
|
"u_surfaceFinishRoughness": {
|
|
288
|
-
"offset":
|
|
352
|
+
"offset": 504,
|
|
289
353
|
"size": 4,
|
|
290
354
|
"elementStride": 0,
|
|
291
355
|
"encoding": "float"
|
|
292
356
|
},
|
|
293
357
|
"u_surfaceFinishColor": {
|
|
294
|
-
"offset":
|
|
358
|
+
"offset": 508,
|
|
295
359
|
"size": 4,
|
|
296
360
|
"elementStride": 0,
|
|
297
361
|
"encoding": "float"
|
|
298
362
|
},
|
|
299
363
|
"u_colorSource": {
|
|
300
|
-
"offset":
|
|
364
|
+
"offset": 512,
|
|
301
365
|
"size": 4,
|
|
302
366
|
"elementStride": 0,
|
|
303
367
|
"encoding": "int"
|
|
304
368
|
},
|
|
305
369
|
"u_opacity": {
|
|
306
|
-
"offset":
|
|
370
|
+
"offset": 516,
|
|
307
371
|
"size": 4,
|
|
308
372
|
"elementStride": 0,
|
|
309
373
|
"encoding": "float"
|
|
310
374
|
},
|
|
311
375
|
"u_capTint": {
|
|
312
|
-
"offset":
|
|
376
|
+
"offset": 528,
|
|
313
377
|
"size": 16,
|
|
314
378
|
"elementStride": 4,
|
|
315
379
|
"encoding": "vec4"
|
|
316
380
|
},
|
|
317
381
|
"u_modelEyePosition": {
|
|
318
|
-
"offset":
|
|
382
|
+
"offset": 544,
|
|
319
383
|
"size": 12,
|
|
320
384
|
"elementStride": 4,
|
|
321
385
|
"encoding": "vec3"
|
|
@@ -331,6 +395,15 @@
|
|
|
331
395
|
"stage": "vertex",
|
|
332
396
|
"unit": 0
|
|
333
397
|
},
|
|
398
|
+
{
|
|
399
|
+
"semantic": "material-map",
|
|
400
|
+
"texture": "u_materialMap",
|
|
401
|
+
"sampler": null,
|
|
402
|
+
"uniform": "SPIRV_Cross_Combinedu_materialMapSPIRV_Cross_DummySampler",
|
|
403
|
+
"component": "uint",
|
|
404
|
+
"stage": "vertex",
|
|
405
|
+
"unit": 1
|
|
406
|
+
},
|
|
334
407
|
{
|
|
335
408
|
"semantic": "transform",
|
|
336
409
|
"texture": "u_transformLut",
|
|
@@ -338,7 +411,16 @@
|
|
|
338
411
|
"uniform": "SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler",
|
|
339
412
|
"component": "uint",
|
|
340
413
|
"stage": "vertex",
|
|
341
|
-
"unit":
|
|
414
|
+
"unit": 2
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"semantic": "transform-map",
|
|
418
|
+
"texture": "u_transformMap",
|
|
419
|
+
"sampler": null,
|
|
420
|
+
"uniform": "SPIRV_Cross_Combinedu_transformMapSPIRV_Cross_DummySampler",
|
|
421
|
+
"component": "uint",
|
|
422
|
+
"stage": "vertex",
|
|
423
|
+
"unit": 3
|
|
342
424
|
},
|
|
343
425
|
{
|
|
344
426
|
"semantic": "material",
|
|
@@ -347,17 +429,17 @@
|
|
|
347
429
|
"uniform": "SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler",
|
|
348
430
|
"component": "float",
|
|
349
431
|
"stage": "fragment",
|
|
350
|
-
"unit":
|
|
432
|
+
"unit": 4
|
|
351
433
|
}
|
|
352
434
|
],
|
|
353
435
|
"stages": {
|
|
354
436
|
"vertex": {
|
|
355
|
-
"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 = 1) in int
|
|
356
|
-
"sha256": "
|
|
437
|
+
"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 = 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;\nlayout(location = 0) in vec3 a_position;\nlayout(location = 2) in vec3 a_normal;\nlayout(location = 3) 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 _450 = globalParams.u_maskLutBase + a_atomId;\n if (!(texelFetch(SPIRV_Cross_Combinedu_maskLutSPIRV_Cross_DummySampler, ivec2(_450 - globalParams.u_maskLutWidth * (_450 / globalParams.u_maskLutWidth), _450 / 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 int _592 = globalParams.u_transformMapBase + a_atomId;\n int _600 = int(texelFetch(SPIRV_Cross_Combinedu_transformMapSPIRV_Cross_DummySampler, ivec2(_592 - globalParams.u_transformMapWidth * (_592 / globalParams.u_transformMapWidth), _592 / globalParams.u_transformMapWidth), 0).x);\n int _604 = (globalParams.u_transformLutBase + _600) * globalParams.u_transformLutStride;\n int _477;\n vec3 _478;\n vec3 _479;\n if (texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_604 - globalParams.u_transformLutWidth * (_604 / globalParams.u_transformLutWidth), _604 / globalParams.u_transformLutWidth), 0).x != 0u)\n {\n int _620 = ((globalParams.u_transformLutBase + _600) * globalParams.u_transformLutStride) + 1;\n int _632 = ((globalParams.u_transformLutBase + _600) * globalParams.u_transformLutStride) + 2;\n int _644 = ((globalParams.u_transformLutBase + _600) * globalParams.u_transformLutStride) + 3;\n int _662 = ((globalParams.u_transformLutBase + _600) * globalParams.u_transformLutStride) + 4;\n int _674 = ((globalParams.u_transformLutBase + _600) * globalParams.u_transformLutStride) + 5;\n int _686 = ((globalParams.u_transformLutBase + _600) * globalParams.u_transformLutStride) + 6;\n int _698 = ((globalParams.u_transformLutBase + _600) * globalParams.u_transformLutStride) + 7;\n vec4 _712 = vec4(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_662 - globalParams.u_transformLutWidth * (_662 / globalParams.u_transformLutWidth), _662 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_674 - globalParams.u_transformLutWidth * (_674 / globalParams.u_transformLutWidth), _674 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_686 - globalParams.u_transformLutWidth * (_686 / globalParams.u_transformLutWidth), _686 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_698 - globalParams.u_transformLutWidth * (_698 / globalParams.u_transformLutWidth), _698 / globalParams.u_transformLutWidth), 0).x));\n int _717 = ((globalParams.u_transformLutBase + _600) * globalParams.u_transformLutStride) + 8;\n int _729 = ((globalParams.u_transformLutBase + _600) * globalParams.u_transformLutStride) + 9;\n int _741 = ((globalParams.u_transformLutBase + _600) * globalParams.u_transformLutStride) + 10;\n vec3 _754 = vec3(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_717 - globalParams.u_transformLutWidth * (_717 / globalParams.u_transformLutWidth), _717 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_729 - globalParams.u_transformLutWidth * (_729 / globalParams.u_transformLutWidth), _729 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_741 - globalParams.u_transformLutWidth * (_741 / globalParams.u_transformLutWidth), _741 / globalParams.u_transformLutWidth), 0).x));\n vec3 _757 = _754 * a_position;\n vec3 _762 = _712.xyz;\n vec3 _764 = cross(_762, _757) * 2.0;\n vec3 _772 = a_normal / _754;\n vec3 _777 = _712.xyz;\n vec3 _779 = cross(_777, _772) * 2.0;\n if (((_754.x * _754.y) * _754.z) < 0.0)\n {\n _477 = 1;\n }\n else\n {\n _477 = 0;\n }\n _478 = ((_757 + (_764 * _712.w)) + cross(_762, _764)) + vec3(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_620 - globalParams.u_transformLutWidth * (_620 / globalParams.u_transformLutWidth), _620 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_632 - globalParams.u_transformLutWidth * (_632 / globalParams.u_transformLutWidth), _632 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_644 - globalParams.u_transformLutWidth * (_644 / globalParams.u_transformLutWidth), _644 / globalParams.u_transformLutWidth), 0).x));\n _479 = normalize((_772 + (_779 * _712.w)) + cross(_777, _779));\n }\n else\n {\n _478 = a_position;\n _479 = a_normal;\n _477 = 0;\n }\n vec4 _566 = vec4(_478, 1.0);\n int _787 = globalParams.u_materialMapBase + a_atomId;\n gl_Position = _566 * spvWorkaroundRowMajor(globalParams.u_mvpMatrix);\n v0 = _478;\n v1 = (_566 * spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)).xyz;\n v2 = _479 * 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(_787 - globalParams.u_materialMapWidth * (_787 / globalParams.u_materialMapWidth), _787 / globalParams.u_materialMapWidth), 0).x);\n v5 = a_capEnabled;\n v6 = _477;\n break;\n } while(false);\n}\n\n",
|
|
438
|
+
"sha256": "c05d4f4278c3f13c49e962abbe416715aef6753bd8c9efbb64eec4f3b6d88ed2"
|
|
357
439
|
},
|
|
358
440
|
"fragment": {
|
|
359
|
-
"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",
|
|
360
|
-
"sha256": "
|
|
441
|
+
"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",
|
|
442
|
+
"sha256": "2d06f767d14ef58e15c853e6c0d9c342418025cc0c2509238e080182217e3f67"
|
|
361
443
|
}
|
|
362
444
|
}
|
|
363
445
|
}
|