@vcollab/shader-artifacts 0.0.0-stage → 1.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.
Files changed (175) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/LICENSE +8 -0
  3. package/README.md +96 -2
  4. package/dist/generated/set.d.ts +32 -0
  5. package/dist/index.cjs +190 -0
  6. package/dist/index.cjs.map +1 -0
  7. package/dist/index.d.ts +21 -0
  8. package/dist/index.js +146 -0
  9. package/dist/index.js.map +1 -0
  10. package/dist/version.d.ts +2 -0
  11. package/package.json +60 -3
  12. package/set/SHA256SUMS +163 -0
  13. package/set/pipelines/category.capped.json +413 -0
  14. package/set/pipelines/category.json +387 -0
  15. package/set/pipelines/deform3.category.capped.json +423 -0
  16. package/set/pipelines/deform3.category.json +397 -0
  17. package/set/pipelines/deform3.dof6.capped.json +513 -0
  18. package/set/pipelines/deform3.dof6.json +487 -0
  19. package/set/pipelines/deform3.pick.capped.json +209 -0
  20. package/set/pipelines/deform3.pick.json +203 -0
  21. package/set/pipelines/deform3.scalar.capped.json +519 -0
  22. package/set/pipelines/deform3.scalar.json +493 -0
  23. package/set/pipelines/deform3.surface.capped.json +375 -0
  24. package/set/pipelines/deform3.surface.json +349 -0
  25. package/set/pipelines/deform3.symtensor.capped.json +541 -0
  26. package/set/pipelines/deform3.symtensor.json +515 -0
  27. package/set/pipelines/deform3.textured-normal.capped.json +539 -0
  28. package/set/pipelines/deform3.textured-normal.json +513 -0
  29. package/set/pipelines/deform3.textured.capped.json +498 -0
  30. package/set/pipelines/deform3.textured.json +472 -0
  31. package/set/pipelines/deform3.vector.capped.json +504 -0
  32. package/set/pipelines/deform3.vector.json +478 -0
  33. package/set/pipelines/deform6.category.capped.json +432 -0
  34. package/set/pipelines/deform6.category.json +406 -0
  35. package/set/pipelines/deform6.dof6.capped.json +522 -0
  36. package/set/pipelines/deform6.dof6.json +496 -0
  37. package/set/pipelines/deform6.pick.capped.json +218 -0
  38. package/set/pipelines/deform6.pick.json +212 -0
  39. package/set/pipelines/deform6.scalar.capped.json +528 -0
  40. package/set/pipelines/deform6.scalar.json +502 -0
  41. package/set/pipelines/deform6.surface.capped.json +384 -0
  42. package/set/pipelines/deform6.surface.json +358 -0
  43. package/set/pipelines/deform6.symtensor.capped.json +550 -0
  44. package/set/pipelines/deform6.symtensor.json +524 -0
  45. package/set/pipelines/deform6.textured-normal.capped.json +548 -0
  46. package/set/pipelines/deform6.textured-normal.json +522 -0
  47. package/set/pipelines/deform6.textured.capped.json +507 -0
  48. package/set/pipelines/deform6.textured.json +481 -0
  49. package/set/pipelines/deform6.vector.capped.json +513 -0
  50. package/set/pipelines/deform6.vector.json +487 -0
  51. package/set/pipelines/dof6.capped.json +503 -0
  52. package/set/pipelines/dof6.json +477 -0
  53. package/set/pipelines/pick.capped.json +199 -0
  54. package/set/pipelines/pick.json +193 -0
  55. package/set/pipelines/scalar.capped.json +509 -0
  56. package/set/pipelines/scalar.json +483 -0
  57. package/set/pipelines/surface.capped.json +365 -0
  58. package/set/pipelines/surface.json +339 -0
  59. package/set/pipelines/symtensor.capped.json +531 -0
  60. package/set/pipelines/symtensor.json +505 -0
  61. package/set/pipelines/textured-normal.capped.json +529 -0
  62. package/set/pipelines/textured-normal.json +503 -0
  63. package/set/pipelines/textured.capped.json +488 -0
  64. package/set/pipelines/textured.json +462 -0
  65. package/set/pipelines/vector.capped.json +494 -0
  66. package/set/pipelines/vector.json +468 -0
  67. package/set/registry.json +1005 -0
  68. package/set/shaders/category.capped.fragment.glsl +501 -0
  69. package/set/shaders/category.capped.vertex.glsl +154 -0
  70. package/set/shaders/category.fragment.glsl +343 -0
  71. package/set/shaders/category.vertex.glsl +135 -0
  72. package/set/shaders/deform3.category.capped.fragment.glsl +501 -0
  73. package/set/shaders/deform3.category.capped.vertex.glsl +156 -0
  74. package/set/shaders/deform3.category.fragment.glsl +343 -0
  75. package/set/shaders/deform3.category.vertex.glsl +137 -0
  76. package/set/shaders/deform3.dof6.capped.fragment.glsl +688 -0
  77. package/set/shaders/deform3.dof6.capped.vertex.glsl +177 -0
  78. package/set/shaders/deform3.dof6.fragment.glsl +530 -0
  79. package/set/shaders/deform3.dof6.vertex.glsl +158 -0
  80. package/set/shaders/deform3.pick.capped.fragment.glsl +84 -0
  81. package/set/shaders/deform3.pick.capped.vertex.glsl +101 -0
  82. package/set/shaders/deform3.pick.fragment.glsl +69 -0
  83. package/set/shaders/deform3.pick.vertex.glsl +83 -0
  84. package/set/shaders/deform3.scalar.capped.fragment.glsl +676 -0
  85. package/set/shaders/deform3.scalar.capped.vertex.glsl +169 -0
  86. package/set/shaders/deform3.scalar.fragment.glsl +518 -0
  87. package/set/shaders/deform3.scalar.vertex.glsl +150 -0
  88. package/set/shaders/deform3.surface.capped.fragment.glsl +419 -0
  89. package/set/shaders/deform3.surface.capped.vertex.glsl +138 -0
  90. package/set/shaders/deform3.surface.fragment.glsl +265 -0
  91. package/set/shaders/deform3.surface.vertex.glsl +119 -0
  92. package/set/shaders/deform3.symtensor.capped.fragment.glsl +1233 -0
  93. package/set/shaders/deform3.symtensor.capped.vertex.glsl +178 -0
  94. package/set/shaders/deform3.symtensor.fragment.glsl +1075 -0
  95. package/set/shaders/deform3.symtensor.vertex.glsl +159 -0
  96. package/set/shaders/deform3.textured-normal.capped.fragment.glsl +433 -0
  97. package/set/shaders/deform3.textured-normal.capped.vertex.glsl +159 -0
  98. package/set/shaders/deform3.textured-normal.fragment.glsl +279 -0
  99. package/set/shaders/deform3.textured-normal.vertex.glsl +140 -0
  100. package/set/shaders/deform3.textured.capped.fragment.glsl +424 -0
  101. package/set/shaders/deform3.textured.capped.vertex.glsl +143 -0
  102. package/set/shaders/deform3.textured.fragment.glsl +271 -0
  103. package/set/shaders/deform3.textured.vertex.glsl +124 -0
  104. package/set/shaders/deform3.vector.capped.fragment.glsl +651 -0
  105. package/set/shaders/deform3.vector.capped.vertex.glsl +173 -0
  106. package/set/shaders/deform3.vector.fragment.glsl +493 -0
  107. package/set/shaders/deform3.vector.vertex.glsl +154 -0
  108. package/set/shaders/deform6.category.capped.fragment.glsl +501 -0
  109. package/set/shaders/deform6.category.capped.vertex.glsl +170 -0
  110. package/set/shaders/deform6.category.fragment.glsl +343 -0
  111. package/set/shaders/deform6.category.vertex.glsl +151 -0
  112. package/set/shaders/deform6.dof6.capped.fragment.glsl +688 -0
  113. package/set/shaders/deform6.dof6.capped.vertex.glsl +191 -0
  114. package/set/shaders/deform6.dof6.fragment.glsl +530 -0
  115. package/set/shaders/deform6.dof6.vertex.glsl +172 -0
  116. package/set/shaders/deform6.pick.capped.fragment.glsl +84 -0
  117. package/set/shaders/deform6.pick.capped.vertex.glsl +115 -0
  118. package/set/shaders/deform6.pick.fragment.glsl +69 -0
  119. package/set/shaders/deform6.pick.vertex.glsl +97 -0
  120. package/set/shaders/deform6.scalar.capped.fragment.glsl +676 -0
  121. package/set/shaders/deform6.scalar.capped.vertex.glsl +183 -0
  122. package/set/shaders/deform6.scalar.fragment.glsl +518 -0
  123. package/set/shaders/deform6.scalar.vertex.glsl +164 -0
  124. package/set/shaders/deform6.surface.capped.fragment.glsl +419 -0
  125. package/set/shaders/deform6.surface.capped.vertex.glsl +152 -0
  126. package/set/shaders/deform6.surface.fragment.glsl +265 -0
  127. package/set/shaders/deform6.surface.vertex.glsl +133 -0
  128. package/set/shaders/deform6.symtensor.capped.fragment.glsl +1233 -0
  129. package/set/shaders/deform6.symtensor.capped.vertex.glsl +192 -0
  130. package/set/shaders/deform6.symtensor.fragment.glsl +1075 -0
  131. package/set/shaders/deform6.symtensor.vertex.glsl +173 -0
  132. package/set/shaders/deform6.textured-normal.capped.fragment.glsl +433 -0
  133. package/set/shaders/deform6.textured-normal.capped.vertex.glsl +173 -0
  134. package/set/shaders/deform6.textured-normal.fragment.glsl +279 -0
  135. package/set/shaders/deform6.textured-normal.vertex.glsl +154 -0
  136. package/set/shaders/deform6.textured.capped.fragment.glsl +424 -0
  137. package/set/shaders/deform6.textured.capped.vertex.glsl +157 -0
  138. package/set/shaders/deform6.textured.fragment.glsl +271 -0
  139. package/set/shaders/deform6.textured.vertex.glsl +138 -0
  140. package/set/shaders/deform6.vector.capped.fragment.glsl +651 -0
  141. package/set/shaders/deform6.vector.capped.vertex.glsl +187 -0
  142. package/set/shaders/deform6.vector.fragment.glsl +493 -0
  143. package/set/shaders/deform6.vector.vertex.glsl +168 -0
  144. package/set/shaders/dof6.capped.fragment.glsl +688 -0
  145. package/set/shaders/dof6.capped.vertex.glsl +175 -0
  146. package/set/shaders/dof6.fragment.glsl +530 -0
  147. package/set/shaders/dof6.vertex.glsl +156 -0
  148. package/set/shaders/pick.capped.fragment.glsl +84 -0
  149. package/set/shaders/pick.capped.vertex.glsl +99 -0
  150. package/set/shaders/pick.fragment.glsl +69 -0
  151. package/set/shaders/pick.vertex.glsl +81 -0
  152. package/set/shaders/scalar.capped.fragment.glsl +676 -0
  153. package/set/shaders/scalar.capped.vertex.glsl +167 -0
  154. package/set/shaders/scalar.fragment.glsl +518 -0
  155. package/set/shaders/scalar.vertex.glsl +148 -0
  156. package/set/shaders/surface.capped.fragment.glsl +419 -0
  157. package/set/shaders/surface.capped.vertex.glsl +136 -0
  158. package/set/shaders/surface.fragment.glsl +265 -0
  159. package/set/shaders/surface.vertex.glsl +117 -0
  160. package/set/shaders/symtensor.capped.fragment.glsl +1233 -0
  161. package/set/shaders/symtensor.capped.vertex.glsl +176 -0
  162. package/set/shaders/symtensor.fragment.glsl +1075 -0
  163. package/set/shaders/symtensor.vertex.glsl +157 -0
  164. package/set/shaders/textured-normal.capped.fragment.glsl +433 -0
  165. package/set/shaders/textured-normal.capped.vertex.glsl +157 -0
  166. package/set/shaders/textured-normal.fragment.glsl +279 -0
  167. package/set/shaders/textured-normal.vertex.glsl +138 -0
  168. package/set/shaders/textured.capped.fragment.glsl +424 -0
  169. package/set/shaders/textured.capped.vertex.glsl +141 -0
  170. package/set/shaders/textured.fragment.glsl +271 -0
  171. package/set/shaders/textured.vertex.glsl +122 -0
  172. package/set/shaders/vector.capped.fragment.glsl +651 -0
  173. package/set/shaders/vector.capped.vertex.glsl +171 -0
  174. package/set/shaders/vector.fragment.glsl +493 -0
  175. package/set/shaders/vector.vertex.glsl +152 -0
@@ -0,0 +1,375 @@
1
+ {
2
+ "schemaVersion": 3,
3
+ "generator": {
4
+ "name": "vcti-shader-foundry",
5
+ "version": "7.0.0",
6
+ "toolchain": {
7
+ "slangc": "2026.12.0.1",
8
+ "spirvCross": "vulkan-sdk-1.4.357.0",
9
+ "glslang": "11:16.5.0"
10
+ }
11
+ },
12
+ "pipeline": {
13
+ "description": "The material's shaded surface, each primitive colored by its material row, on geometry deformed by translation, with the cut a clip plane leaves filled.",
14
+ "id": "deform3.surface.capped",
15
+ "capabilities": [
16
+ "deform3",
17
+ "material",
18
+ "material-table",
19
+ "material-surface-finish",
20
+ "cap-backface",
21
+ "mask",
22
+ "mask-lut-r8ui",
23
+ "transform",
24
+ "transform-lut-r32ui",
25
+ "clip"
26
+ ],
27
+ "inputs": [
28
+ {
29
+ "name": "a_position",
30
+ "type": "vec3",
31
+ "semantic": "coordinates"
32
+ },
33
+ {
34
+ "name": "a_deformation",
35
+ "type": "vec3",
36
+ "semantic": "deformation"
37
+ },
38
+ {
39
+ "name": "a_maskId",
40
+ "type": "int",
41
+ "semantic": "mask-id"
42
+ },
43
+ {
44
+ "name": "a_componentId",
45
+ "type": "int",
46
+ "semantic": "component-id"
47
+ },
48
+ {
49
+ "name": "a_normal",
50
+ "type": "vec3",
51
+ "semantic": "normal"
52
+ },
53
+ {
54
+ "name": "a_materialId",
55
+ "type": "int",
56
+ "semantic": "material-id"
57
+ },
58
+ {
59
+ "name": "a_capEnabled",
60
+ "type": "int",
61
+ "semantic": "cap.enabled"
62
+ }
63
+ ],
64
+ "uniforms": [
65
+ {
66
+ "name": "u_mvpMatrix",
67
+ "type": "mat4"
68
+ },
69
+ {
70
+ "name": "u_modelViewMatrix",
71
+ "type": "mat4"
72
+ },
73
+ {
74
+ "name": "u_deformScale",
75
+ "type": "vec3"
76
+ },
77
+ {
78
+ "name": "u_maskLutWidth",
79
+ "type": "int"
80
+ },
81
+ {
82
+ "name": "u_transformLutWidth",
83
+ "type": "int"
84
+ },
85
+ {
86
+ "name": "u_transformLutStride",
87
+ "type": "int"
88
+ },
89
+ {
90
+ "name": "u_clipPlanes",
91
+ "type": "vec4[6]"
92
+ },
93
+ {
94
+ "name": "u_clipPlaneCount",
95
+ "type": "int"
96
+ },
97
+ {
98
+ "name": "u_viewPosition",
99
+ "type": "vec3"
100
+ },
101
+ {
102
+ "name": "u_environmentSky",
103
+ "type": "vec3"
104
+ },
105
+ {
106
+ "name": "u_environmentGround",
107
+ "type": "vec3"
108
+ },
109
+ {
110
+ "name": "u_environmentUp",
111
+ "type": "vec3"
112
+ },
113
+ {
114
+ "name": "u_lightPositions",
115
+ "type": "vec4[4]"
116
+ },
117
+ {
118
+ "name": "u_lightColors",
119
+ "type": "vec3[4]"
120
+ },
121
+ {
122
+ "name": "u_lightCount",
123
+ "type": "int"
124
+ },
125
+ {
126
+ "name": "u_surfaceFinishScale",
127
+ "type": "float"
128
+ },
129
+ {
130
+ "name": "u_surfaceFinishRoughness",
131
+ "type": "float"
132
+ },
133
+ {
134
+ "name": "u_surfaceFinishColor",
135
+ "type": "float"
136
+ },
137
+ {
138
+ "name": "u_colorSource",
139
+ "type": "int",
140
+ "namedValues": {
141
+ "material": 0,
142
+ "material-unlit": 3
143
+ }
144
+ },
145
+ {
146
+ "name": "u_opacity",
147
+ "type": "float"
148
+ },
149
+ {
150
+ "name": "u_capTint",
151
+ "type": "vec4"
152
+ },
153
+ {
154
+ "name": "u_modelEyePosition",
155
+ "type": "vec3"
156
+ }
157
+ ],
158
+ "outputs": [
159
+ {
160
+ "name": "fragColor",
161
+ "type": "vec4",
162
+ "format": null
163
+ }
164
+ ],
165
+ "tables": [
166
+ {
167
+ "name": "u_maskLut",
168
+ "type": "Texture2D<uint4>",
169
+ "format": "r8ui",
170
+ "semantic": "mask"
171
+ },
172
+ {
173
+ "name": "u_transformLut",
174
+ "type": "Texture2D<uint4>",
175
+ "format": "r32ui",
176
+ "semantic": "transform"
177
+ },
178
+ {
179
+ "name": "u_materialTable",
180
+ "type": "Texture2D<float4>",
181
+ "format": "rgba32f",
182
+ "semantic": "material"
183
+ }
184
+ ],
185
+ "textures": [],
186
+ "samplers": []
187
+ },
188
+ "contractSha256": "d4be264d25eb181fc46df58f3326ce4a0fcfa52c1370a5f436d383636249f39c",
189
+ "languages": {
190
+ "glsl": {
191
+ "blockSize": 544,
192
+ "layout": {
193
+ "u_mvpMatrix": {
194
+ "offset": 0,
195
+ "size": 64,
196
+ "elementStride": 0,
197
+ "encoding": "mat4",
198
+ "majorness": "row"
199
+ },
200
+ "u_modelViewMatrix": {
201
+ "offset": 64,
202
+ "size": 64,
203
+ "elementStride": 0,
204
+ "encoding": "mat4",
205
+ "majorness": "row"
206
+ },
207
+ "u_deformScale": {
208
+ "offset": 128,
209
+ "size": 12,
210
+ "elementStride": 4,
211
+ "encoding": "vec3"
212
+ },
213
+ "u_deformRotationCenter": {
214
+ "offset": 144,
215
+ "size": 12,
216
+ "elementStride": 4,
217
+ "encoding": "vec3"
218
+ },
219
+ "u_maskLutWidth": {
220
+ "offset": 156,
221
+ "size": 4,
222
+ "elementStride": 0,
223
+ "encoding": "int"
224
+ },
225
+ "u_transformLutWidth": {
226
+ "offset": 160,
227
+ "size": 4,
228
+ "elementStride": 0,
229
+ "encoding": "int"
230
+ },
231
+ "u_transformLutStride": {
232
+ "offset": 164,
233
+ "size": 4,
234
+ "elementStride": 0,
235
+ "encoding": "int"
236
+ },
237
+ "u_clipPlanes": {
238
+ "offset": 176,
239
+ "size": 96,
240
+ "elementStride": 16,
241
+ "encoding": "vec4[]"
242
+ },
243
+ "u_clipPlaneCount": {
244
+ "offset": 272,
245
+ "size": 4,
246
+ "elementStride": 0,
247
+ "encoding": "int"
248
+ },
249
+ "u_viewPosition": {
250
+ "offset": 288,
251
+ "size": 12,
252
+ "elementStride": 4,
253
+ "encoding": "vec3"
254
+ },
255
+ "u_environmentSky": {
256
+ "offset": 304,
257
+ "size": 12,
258
+ "elementStride": 4,
259
+ "encoding": "vec3"
260
+ },
261
+ "u_environmentGround": {
262
+ "offset": 320,
263
+ "size": 12,
264
+ "elementStride": 4,
265
+ "encoding": "vec3"
266
+ },
267
+ "u_environmentUp": {
268
+ "offset": 336,
269
+ "size": 12,
270
+ "elementStride": 4,
271
+ "encoding": "vec3"
272
+ },
273
+ "u_lightPositions": {
274
+ "offset": 352,
275
+ "size": 64,
276
+ "elementStride": 16,
277
+ "encoding": "vec4[]"
278
+ },
279
+ "u_lightColors": {
280
+ "offset": 416,
281
+ "size": 64,
282
+ "elementStride": 16,
283
+ "encoding": "vec3[]"
284
+ },
285
+ "u_lightCount": {
286
+ "offset": 480,
287
+ "size": 4,
288
+ "elementStride": 0,
289
+ "encoding": "int"
290
+ },
291
+ "u_surfaceFinishScale": {
292
+ "offset": 484,
293
+ "size": 4,
294
+ "elementStride": 0,
295
+ "encoding": "float"
296
+ },
297
+ "u_surfaceFinishRoughness": {
298
+ "offset": 488,
299
+ "size": 4,
300
+ "elementStride": 0,
301
+ "encoding": "float"
302
+ },
303
+ "u_surfaceFinishColor": {
304
+ "offset": 492,
305
+ "size": 4,
306
+ "elementStride": 0,
307
+ "encoding": "float"
308
+ },
309
+ "u_colorSource": {
310
+ "offset": 496,
311
+ "size": 4,
312
+ "elementStride": 0,
313
+ "encoding": "int"
314
+ },
315
+ "u_opacity": {
316
+ "offset": 500,
317
+ "size": 4,
318
+ "elementStride": 0,
319
+ "encoding": "float"
320
+ },
321
+ "u_capTint": {
322
+ "offset": 512,
323
+ "size": 16,
324
+ "elementStride": 4,
325
+ "encoding": "vec4"
326
+ },
327
+ "u_modelEyePosition": {
328
+ "offset": 528,
329
+ "size": 12,
330
+ "elementStride": 4,
331
+ "encoding": "vec3"
332
+ }
333
+ },
334
+ "bindings": [
335
+ {
336
+ "semantic": "mask",
337
+ "texture": "u_maskLut",
338
+ "sampler": null,
339
+ "uniform": "SPIRV_Cross_Combinedu_maskLutSPIRV_Cross_DummySampler",
340
+ "component": "uint",
341
+ "stage": "vertex",
342
+ "unit": 0
343
+ },
344
+ {
345
+ "semantic": "transform",
346
+ "texture": "u_transformLut",
347
+ "sampler": null,
348
+ "uniform": "SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler",
349
+ "component": "uint",
350
+ "stage": "vertex",
351
+ "unit": 1
352
+ },
353
+ {
354
+ "semantic": "material",
355
+ "texture": "u_materialTable",
356
+ "sampler": null,
357
+ "uniform": "SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler",
358
+ "component": "float",
359
+ "stage": "fragment",
360
+ "unit": 2
361
+ }
362
+ ],
363
+ "stages": {
364
+ "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 a_maskId;\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 int a_componentId;\nlayout(location = 4) in vec3 a_normal;\nlayout(location = 5) in int a_materialId;\nlayout(location = 6) in int a_capEnabled;\n\nhighp mat4 spvWorkaroundRowMajor(highp mat4 wrap) { return wrap; }\nmediump mat4 spvWorkaroundRowMajorMP(mediump mat4 wrap) { return wrap; }\n\nvoid main()\n{\n do\n {\n if (!(texelFetch(SPIRV_Cross_Combinedu_maskLutSPIRV_Cross_DummySampler, ivec2(a_maskId - globalParams.u_maskLutWidth * (a_maskId / globalParams.u_maskLutWidth), a_maskId / 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 _435 = a_position + (globalParams.u_deformScale * a_deformation);\n int _529 = a_componentId * globalParams.u_transformLutStride;\n int _436;\n vec3 _437;\n vec3 _438;\n if (texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_529 - globalParams.u_transformLutWidth * (_529 / globalParams.u_transformLutWidth), _529 / globalParams.u_transformLutWidth), 0).x != 0u)\n {\n int _544 = (a_componentId * globalParams.u_transformLutStride) + 1;\n int _555 = (a_componentId * globalParams.u_transformLutStride) + 2;\n int _566 = (a_componentId * globalParams.u_transformLutStride) + 3;\n int _583 = (a_componentId * globalParams.u_transformLutStride) + 4;\n int _594 = (a_componentId * globalParams.u_transformLutStride) + 5;\n int _605 = (a_componentId * globalParams.u_transformLutStride) + 6;\n int _616 = (a_componentId * globalParams.u_transformLutStride) + 7;\n vec4 _630 = vec4(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_583 - globalParams.u_transformLutWidth * (_583 / globalParams.u_transformLutWidth), _583 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_594 - globalParams.u_transformLutWidth * (_594 / globalParams.u_transformLutWidth), _594 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_605 - globalParams.u_transformLutWidth * (_605 / globalParams.u_transformLutWidth), _605 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_616 - globalParams.u_transformLutWidth * (_616 / globalParams.u_transformLutWidth), _616 / globalParams.u_transformLutWidth), 0).x));\n int _634 = (a_componentId * globalParams.u_transformLutStride) + 8;\n int _645 = (a_componentId * globalParams.u_transformLutStride) + 9;\n int _656 = (a_componentId * globalParams.u_transformLutStride) + 10;\n vec3 _669 = vec3(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_634 - globalParams.u_transformLutWidth * (_634 / globalParams.u_transformLutWidth), _634 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_645 - globalParams.u_transformLutWidth * (_645 / globalParams.u_transformLutWidth), _645 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_656 - globalParams.u_transformLutWidth * (_656 / globalParams.u_transformLutWidth), _656 / globalParams.u_transformLutWidth), 0).x));\n vec3 _672 = _669 * _435;\n vec3 _677 = _630.xyz;\n vec3 _679 = cross(_677, _672) * 2.0;\n vec3 _687 = a_normal / _669;\n vec3 _692 = _630.xyz;\n vec3 _694 = cross(_692, _687) * 2.0;\n if (((_669.x * _669.y) * _669.z) < 0.0)\n {\n _436 = 1;\n }\n else\n {\n _436 = 0;\n }\n _437 = ((_672 + (_679 * _630.w)) + cross(_677, _679)) + vec3(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_544 - globalParams.u_transformLutWidth * (_544 / globalParams.u_transformLutWidth), _544 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_555 - globalParams.u_transformLutWidth * (_555 / globalParams.u_transformLutWidth), _555 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_566 - globalParams.u_transformLutWidth * (_566 / globalParams.u_transformLutWidth), _566 / globalParams.u_transformLutWidth), 0).x));\n _438 = normalize((_687 + (_694 * _630.w)) + cross(_692, _694));\n }\n else\n {\n _437 = _435;\n _438 = a_normal;\n _436 = 0;\n }\n vec4 _508 = vec4(_437, 1.0);\n gl_Position = _508 * spvWorkaroundRowMajor(globalParams.u_mvpMatrix);\n v0 = _437;\n v1 = (_508 * spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)).xyz;\n v2 = _438 * 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 = a_materialId;\n v5 = a_capEnabled;\n v6 = _436;\n break;\n } while(false);\n}\n\n",
366
+ "sha256": "d1e8e2dd26f0d9c3d229df1f98df7892534272f0d44a8fa8f7a4464c022b5851"
367
+ },
368
+ "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": "4d574221b9d9e54b21ef456788c948d4fa075338e1e22f004e8ffc6da7da64e5"
371
+ }
372
+ }
373
+ }
374
+ }
375
+ }