@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,358 @@
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 and rotation.",
14
+ "id": "deform6.surface",
15
+ "capabilities": [
16
+ "deform6",
17
+ "material",
18
+ "material-table",
19
+ "material-surface-finish",
20
+ "mask",
21
+ "mask-lut-r8ui",
22
+ "transform",
23
+ "transform-lut-r32ui",
24
+ "clip"
25
+ ],
26
+ "inputs": [
27
+ {
28
+ "name": "a_position",
29
+ "type": "vec3",
30
+ "semantic": "coordinates"
31
+ },
32
+ {
33
+ "name": "a_deformation",
34
+ "type": "vec3",
35
+ "semantic": "deformation"
36
+ },
37
+ {
38
+ "name": "a_rotation",
39
+ "type": "vec3",
40
+ "semantic": "rotation"
41
+ },
42
+ {
43
+ "name": "a_maskId",
44
+ "type": "int",
45
+ "semantic": "mask-id"
46
+ },
47
+ {
48
+ "name": "a_componentId",
49
+ "type": "int",
50
+ "semantic": "component-id"
51
+ },
52
+ {
53
+ "name": "a_normal",
54
+ "type": "vec3",
55
+ "semantic": "normal"
56
+ },
57
+ {
58
+ "name": "a_materialId",
59
+ "type": "int",
60
+ "semantic": "material-id"
61
+ }
62
+ ],
63
+ "uniforms": [
64
+ {
65
+ "name": "u_mvpMatrix",
66
+ "type": "mat4"
67
+ },
68
+ {
69
+ "name": "u_modelViewMatrix",
70
+ "type": "mat4"
71
+ },
72
+ {
73
+ "name": "u_deformScale",
74
+ "type": "vec3"
75
+ },
76
+ {
77
+ "name": "u_deformRotationCenter",
78
+ "type": "vec3"
79
+ },
80
+ {
81
+ "name": "u_maskLutWidth",
82
+ "type": "int"
83
+ },
84
+ {
85
+ "name": "u_transformLutWidth",
86
+ "type": "int"
87
+ },
88
+ {
89
+ "name": "u_transformLutStride",
90
+ "type": "int"
91
+ },
92
+ {
93
+ "name": "u_clipPlanes",
94
+ "type": "vec4[6]"
95
+ },
96
+ {
97
+ "name": "u_clipPlaneCount",
98
+ "type": "int"
99
+ },
100
+ {
101
+ "name": "u_viewPosition",
102
+ "type": "vec3"
103
+ },
104
+ {
105
+ "name": "u_environmentSky",
106
+ "type": "vec3"
107
+ },
108
+ {
109
+ "name": "u_environmentGround",
110
+ "type": "vec3"
111
+ },
112
+ {
113
+ "name": "u_environmentUp",
114
+ "type": "vec3"
115
+ },
116
+ {
117
+ "name": "u_lightPositions",
118
+ "type": "vec4[4]"
119
+ },
120
+ {
121
+ "name": "u_lightColors",
122
+ "type": "vec3[4]"
123
+ },
124
+ {
125
+ "name": "u_lightCount",
126
+ "type": "int"
127
+ },
128
+ {
129
+ "name": "u_surfaceFinishScale",
130
+ "type": "float"
131
+ },
132
+ {
133
+ "name": "u_surfaceFinishRoughness",
134
+ "type": "float"
135
+ },
136
+ {
137
+ "name": "u_surfaceFinishColor",
138
+ "type": "float"
139
+ },
140
+ {
141
+ "name": "u_colorSource",
142
+ "type": "int",
143
+ "namedValues": {
144
+ "material": 0,
145
+ "material-unlit": 3
146
+ }
147
+ },
148
+ {
149
+ "name": "u_opacity",
150
+ "type": "float"
151
+ }
152
+ ],
153
+ "outputs": [
154
+ {
155
+ "name": "fragColor",
156
+ "type": "vec4",
157
+ "format": null
158
+ }
159
+ ],
160
+ "tables": [
161
+ {
162
+ "name": "u_maskLut",
163
+ "type": "Texture2D<uint4>",
164
+ "format": "r8ui",
165
+ "semantic": "mask"
166
+ },
167
+ {
168
+ "name": "u_transformLut",
169
+ "type": "Texture2D<uint4>",
170
+ "format": "r32ui",
171
+ "semantic": "transform"
172
+ },
173
+ {
174
+ "name": "u_materialTable",
175
+ "type": "Texture2D<float4>",
176
+ "format": "rgba32f",
177
+ "semantic": "material"
178
+ }
179
+ ],
180
+ "textures": [],
181
+ "samplers": []
182
+ },
183
+ "contractSha256": "85a710acb25a14c9221168ecc45dab094e00ce46f57f91fa6588eed5bbc9773f",
184
+ "languages": {
185
+ "glsl": {
186
+ "blockSize": 512,
187
+ "layout": {
188
+ "u_mvpMatrix": {
189
+ "offset": 0,
190
+ "size": 64,
191
+ "elementStride": 0,
192
+ "encoding": "mat4",
193
+ "majorness": "row"
194
+ },
195
+ "u_modelViewMatrix": {
196
+ "offset": 64,
197
+ "size": 64,
198
+ "elementStride": 0,
199
+ "encoding": "mat4",
200
+ "majorness": "row"
201
+ },
202
+ "u_deformScale": {
203
+ "offset": 128,
204
+ "size": 12,
205
+ "elementStride": 4,
206
+ "encoding": "vec3"
207
+ },
208
+ "u_deformRotationCenter": {
209
+ "offset": 144,
210
+ "size": 12,
211
+ "elementStride": 4,
212
+ "encoding": "vec3"
213
+ },
214
+ "u_maskLutWidth": {
215
+ "offset": 156,
216
+ "size": 4,
217
+ "elementStride": 0,
218
+ "encoding": "int"
219
+ },
220
+ "u_transformLutWidth": {
221
+ "offset": 160,
222
+ "size": 4,
223
+ "elementStride": 0,
224
+ "encoding": "int"
225
+ },
226
+ "u_transformLutStride": {
227
+ "offset": 164,
228
+ "size": 4,
229
+ "elementStride": 0,
230
+ "encoding": "int"
231
+ },
232
+ "u_clipPlanes": {
233
+ "offset": 176,
234
+ "size": 96,
235
+ "elementStride": 16,
236
+ "encoding": "vec4[]"
237
+ },
238
+ "u_clipPlaneCount": {
239
+ "offset": 272,
240
+ "size": 4,
241
+ "elementStride": 0,
242
+ "encoding": "int"
243
+ },
244
+ "u_viewPosition": {
245
+ "offset": 288,
246
+ "size": 12,
247
+ "elementStride": 4,
248
+ "encoding": "vec3"
249
+ },
250
+ "u_environmentSky": {
251
+ "offset": 304,
252
+ "size": 12,
253
+ "elementStride": 4,
254
+ "encoding": "vec3"
255
+ },
256
+ "u_environmentGround": {
257
+ "offset": 320,
258
+ "size": 12,
259
+ "elementStride": 4,
260
+ "encoding": "vec3"
261
+ },
262
+ "u_environmentUp": {
263
+ "offset": 336,
264
+ "size": 12,
265
+ "elementStride": 4,
266
+ "encoding": "vec3"
267
+ },
268
+ "u_lightPositions": {
269
+ "offset": 352,
270
+ "size": 64,
271
+ "elementStride": 16,
272
+ "encoding": "vec4[]"
273
+ },
274
+ "u_lightColors": {
275
+ "offset": 416,
276
+ "size": 64,
277
+ "elementStride": 16,
278
+ "encoding": "vec3[]"
279
+ },
280
+ "u_lightCount": {
281
+ "offset": 480,
282
+ "size": 4,
283
+ "elementStride": 0,
284
+ "encoding": "int"
285
+ },
286
+ "u_surfaceFinishScale": {
287
+ "offset": 484,
288
+ "size": 4,
289
+ "elementStride": 0,
290
+ "encoding": "float"
291
+ },
292
+ "u_surfaceFinishRoughness": {
293
+ "offset": 488,
294
+ "size": 4,
295
+ "elementStride": 0,
296
+ "encoding": "float"
297
+ },
298
+ "u_surfaceFinishColor": {
299
+ "offset": 492,
300
+ "size": 4,
301
+ "elementStride": 0,
302
+ "encoding": "float"
303
+ },
304
+ "u_colorSource": {
305
+ "offset": 496,
306
+ "size": 4,
307
+ "elementStride": 0,
308
+ "encoding": "int"
309
+ },
310
+ "u_opacity": {
311
+ "offset": 500,
312
+ "size": 4,
313
+ "elementStride": 0,
314
+ "encoding": "float"
315
+ }
316
+ },
317
+ "bindings": [
318
+ {
319
+ "semantic": "mask",
320
+ "texture": "u_maskLut",
321
+ "sampler": null,
322
+ "uniform": "SPIRV_Cross_Combinedu_maskLutSPIRV_Cross_DummySampler",
323
+ "component": "uint",
324
+ "stage": "vertex",
325
+ "unit": 0
326
+ },
327
+ {
328
+ "semantic": "transform",
329
+ "texture": "u_transformLut",
330
+ "sampler": null,
331
+ "uniform": "SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler",
332
+ "component": "uint",
333
+ "stage": "vertex",
334
+ "unit": 1
335
+ },
336
+ {
337
+ "semantic": "material",
338
+ "texture": "u_materialTable",
339
+ "sampler": null,
340
+ "uniform": "SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler",
341
+ "component": "float",
342
+ "stage": "fragment",
343
+ "unit": 2
344
+ }
345
+ ],
346
+ "stages": {
347
+ "vertex": {
348
+ "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} globalParams;\n\nuniform highp usampler2D SPIRV_Cross_Combinedu_maskLutSPIRV_Cross_DummySampler;\nuniform highp usampler2D SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler;\n\nlayout(location = 3) in int a_maskId;\nout vec3 v0;\nout vec3 v1;\nout vec3 v2;\nout vec3 v3;\nflat out int v4;\nlayout(location = 0) in vec3 a_position;\nlayout(location = 1) in vec3 a_deformation;\nlayout(location = 2) in vec3 a_rotation;\nlayout(location = 4) in int a_componentId;\nlayout(location = 5) in vec3 a_normal;\nlayout(location = 6) in int a_materialId;\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 break;\n }\n vec3 _428 = a_position - globalParams.u_deformRotationCenter;\n float _429 = length(a_rotation);\n vec3 _425;\n if (_429 > 9.9999999392252902907785028219223e-09)\n {\n vec3 _433 = a_rotation / vec3(_429);\n float _434 = cos(_429);\n _425 = ((_428 * _434) + (cross(_433, _428) * sin(_429))) + ((_433 * dot(_433, _428)) * (1.0 - _434));\n }\n else\n {\n _425 = _428;\n }\n vec3 _450 = (globalParams.u_deformRotationCenter + _425) + (globalParams.u_deformScale * a_deformation);\n int _531 = a_componentId * globalParams.u_transformLutStride;\n vec3 _451;\n vec3 _452;\n if (texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_531 - globalParams.u_transformLutWidth * (_531 / globalParams.u_transformLutWidth), _531 / globalParams.u_transformLutWidth), 0).x != 0u)\n {\n int _546 = (a_componentId * globalParams.u_transformLutStride) + 1;\n int _557 = (a_componentId * globalParams.u_transformLutStride) + 2;\n int _568 = (a_componentId * globalParams.u_transformLutStride) + 3;\n int _585 = (a_componentId * globalParams.u_transformLutStride) + 4;\n int _596 = (a_componentId * globalParams.u_transformLutStride) + 5;\n int _607 = (a_componentId * globalParams.u_transformLutStride) + 6;\n int _618 = (a_componentId * globalParams.u_transformLutStride) + 7;\n vec4 _632 = vec4(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_585 - globalParams.u_transformLutWidth * (_585 / globalParams.u_transformLutWidth), _585 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_596 - globalParams.u_transformLutWidth * (_596 / globalParams.u_transformLutWidth), _596 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_607 - globalParams.u_transformLutWidth * (_607 / globalParams.u_transformLutWidth), _607 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_618 - globalParams.u_transformLutWidth * (_618 / globalParams.u_transformLutWidth), _618 / globalParams.u_transformLutWidth), 0).x));\n int _636 = (a_componentId * globalParams.u_transformLutStride) + 8;\n int _647 = (a_componentId * globalParams.u_transformLutStride) + 9;\n int _658 = (a_componentId * globalParams.u_transformLutStride) + 10;\n vec3 _671 = vec3(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_636 - globalParams.u_transformLutWidth * (_636 / globalParams.u_transformLutWidth), _636 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_647 - globalParams.u_transformLutWidth * (_647 / globalParams.u_transformLutWidth), _647 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_658 - globalParams.u_transformLutWidth * (_658 / globalParams.u_transformLutWidth), _658 / globalParams.u_transformLutWidth), 0).x));\n vec3 _674 = _671 * _450;\n vec3 _679 = _632.xyz;\n vec3 _681 = cross(_679, _674) * 2.0;\n vec3 _689 = a_normal / _671;\n vec3 _694 = _632.xyz;\n vec3 _696 = cross(_694, _689) * 2.0;\n _451 = ((_674 + (_681 * _632.w)) + cross(_679, _681)) + vec3(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_546 - globalParams.u_transformLutWidth * (_546 / globalParams.u_transformLutWidth), _546 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_557 - globalParams.u_transformLutWidth * (_557 / globalParams.u_transformLutWidth), _557 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_568 - globalParams.u_transformLutWidth * (_568 / globalParams.u_transformLutWidth), _568 / globalParams.u_transformLutWidth), 0).x));\n _452 = normalize((_689 + (_696 * _632.w)) + cross(_694, _696));\n }\n else\n {\n _451 = _450;\n _452 = a_normal;\n }\n vec4 _513 = vec4(_451, 1.0);\n gl_Position = _513 * spvWorkaroundRowMajor(globalParams.u_mvpMatrix);\n v0 = _451;\n v1 = (_513 * spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)).xyz;\n v2 = _452 * 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 break;\n } while(false);\n}\n\n",
349
+ "sha256": "1753c113821516b0b74d3c44c15e02069b2bd51d932c305e5ac7f6b2e2635377"
350
+ },
351
+ "fragment": {
352
+ "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} globalParams;\n\nuniform highp sampler2D SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler;\n\nin highp vec3 v0;\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\nvoid main()\n{\n bool _732 = false;\n do\n {\n _732 = false;\n bool _733;\n do\n {\n int _734 = 0;\n for (;;)\n {\n if (!(_734 < 6))\n {\n break;\n }\n if (_734 >= globalParams.u_clipPlaneCount)\n {\n break;\n }\n if ((dot(globalParams.u_clipPlanes.data[_734].xyz, v0) + globalParams.u_clipPlanes.data[_734].w) < 0.0)\n {\n _732 = true;\n _733 = false;\n break;\n }\n _734++;\n continue;\n }\n if (_732)\n {\n break;\n }\n _732 = true;\n _733 = true;\n break;\n } while(false);\n if (!_733)\n {\n discard;\n }\n highp vec4 _780 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 0), 0);\n highp vec4 _784 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 1), 0);\n highp vec3 _1426 = _780.xyz;\n highp float _1427 = _780.w;\n highp float _1428 = _784.w;\n highp float _1429 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 2), 0).x;\n highp vec3 _1430 = _784.xyz;\n highp float _1448 = globalParams.u_surfaceFinishScale;\n highp float _1449 = globalParams.u_surfaceFinishRoughness;\n highp float _1450 = globalParams.u_surfaceFinishColor;\n highp vec3 _1339;\n highp float _1340;\n highp float _1341;\n highp float _1342;\n highp vec3 _1343;\n do\n {\n if (_1448 <= 0.0)\n {\n _1339 = _1426;\n _1340 = _1427;\n _1341 = _1428;\n _1342 = _1429;\n _1343 = _1430;\n break;\n }\n highp vec3 _814 = v3 / vec3(_1448);\n highp vec3 _841 = floor(_814);\n highp vec3 _842 = _814 - _841;\n highp vec3 _847 = (_842 * _842) * (vec3(3.0) - (_842 * 2.0));\n ivec3 _848 = ivec3(_841);\n uint _887 = (((uint(_848.x) * 2376512323u) + (uint(_848.y) * 3625334849u)) + (uint(_848.z) * 3407524639u)) + 2654435769u;\n uint _890 = (_887 ^ (_887 >> uint(15))) * 739982445u;\n uint _893 = (_890 ^ (_890 >> uint(12))) * 695872825u;\n ivec3 _850 = _848 + ivec3(1, 0, 0);\n uint _912 = (((uint(_850.x) * 2376512323u) + (uint(_850.y) * 3625334849u)) + (uint(_850.z) * 3407524639u)) + 2654435769u;\n uint _915 = (_912 ^ (_912 >> uint(15))) * 739982445u;\n uint _918 = (_915 ^ (_915 >> uint(12))) * 695872825u;\n ivec3 _852 = _848 + ivec3(0, 1, 0);\n uint _937 = (((uint(_852.x) * 2376512323u) + (uint(_852.y) * 3625334849u)) + (uint(_852.z) * 3407524639u)) + 2654435769u;\n uint _940 = (_937 ^ (_937 >> uint(15))) * 739982445u;\n uint _943 = (_940 ^ (_940 >> uint(12))) * 695872825u;\n ivec3 _854 = _848 + ivec3(1, 1, 0);\n uint _962 = (((uint(_854.x) * 2376512323u) + (uint(_854.y) * 3625334849u)) + (uint(_854.z) * 3407524639u)) + 2654435769u;\n uint _965 = (_962 ^ (_962 >> uint(15))) * 739982445u;\n uint _968 = (_965 ^ (_965 >> uint(12))) * 695872825u;\n ivec3 _856 = _848 + ivec3(0, 0, 1);\n uint _987 = (((uint(_856.x) * 2376512323u) + (uint(_856.y) * 3625334849u)) + (uint(_856.z) * 3407524639u)) + 2654435769u;\n uint _990 = (_987 ^ (_987 >> uint(15))) * 739982445u;\n uint _993 = (_990 ^ (_990 >> uint(12))) * 695872825u;\n ivec3 _858 = _848 + ivec3(1, 0, 1);\n uint _1012 = (((uint(_858.x) * 2376512323u) + (uint(_858.y) * 3625334849u)) + (uint(_858.z) * 3407524639u)) + 2654435769u;\n uint _1015 = (_1012 ^ (_1012 >> uint(15))) * 739982445u;\n uint _1018 = (_1015 ^ (_1015 >> uint(12))) * 695872825u;\n ivec3 _860 = _848 + ivec3(0, 1, 1);\n uint _1037 = (((uint(_860.x) * 2376512323u) + (uint(_860.y) * 3625334849u)) + (uint(_860.z) * 3407524639u)) + 2654435769u;\n uint _1040 = (_1037 ^ (_1037 >> uint(15))) * 739982445u;\n uint _1043 = (_1040 ^ (_1040 >> uint(12))) * 695872825u;\n ivec3 _862 = _848 + ivec3(1);\n uint _1062 = (((uint(_862.x) * 2376512323u) + (uint(_862.y) * 3625334849u)) + (uint(_862.z) * 3407524639u)) + 2654435769u;\n uint _1065 = (_1062 ^ (_1062 >> uint(15))) * 739982445u;\n uint _1068 = (_1065 ^ (_1065 >> uint(12))) * 695872825u;\n highp float _864 = _847.x;\n highp float _869 = _847.y;\n highp float _817 = (mix(mix(mix(float((_893 ^ (_893 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_918 ^ (_918 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _864), mix(float((_943 ^ (_943 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_968 ^ (_968 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _864), _869), mix(mix(float((_993 ^ (_993 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1018 ^ (_1018 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _864), mix(float((_1043 ^ (_1043 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1068 ^ (_1068 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _864), _869), _847.z) * 2.0) - 1.0;\n _1339 = clamp(_1426 * (1.0 + (_817 * _1450)), vec3(0.0), vec3(1.0));\n _1340 = _1427;\n _1341 = clamp(_1428 + (_817 * _1449), 0.0, 1.0);\n _1342 = _1429;\n _1343 = _1430;\n break;\n } while(false);\n if (globalParams.u_colorSource == 3)\n {\n entryPointParam_fragmentMain = vec4(_1339, globalParams.u_opacity);\n break;\n }\n highp vec3 _338 = normalize(v2);\n highp vec3 _1080 = normalize(globalParams.u_viewPosition - v1);\n highp vec3 _1461 = _1339;\n highp float _1462 = _1340;\n highp float _1463 = _1341;\n highp float _1464 = _1342;\n highp vec3 _1465 = _1343;\n highp vec3 _1471 = globalParams.u_environmentSky;\n highp vec3 _1472 = globalParams.u_environmentGround;\n highp vec3 _1473 = globalParams.u_environmentUp;\n int _1081 = 0;\n highp vec3 _1082 = vec3(0.0);\n highp vec3 _1123;\n highp vec3 _1124;\n highp vec3 _1125;\n highp float _1126;\n for (;;)\n {\n if (!(_1081 < 4))\n {\n break;\n }\n if (_1081 < globalParams.u_lightCount)\n {\n do\n {\n bool _1131 = globalParams.u_lightPositions.data[_1081].w == 0.0;\n if (_1131)\n {\n _1124 = globalParams.u_lightPositions.data[_1081].xyz;\n }\n else\n {\n _1124 = globalParams.u_lightPositions.data[_1081].xyz - v1;\n }\n highp float _1140 = dot(_1124, _1124);\n if (_1131)\n {\n _1125 = normalize(globalParams.u_lightPositions.data[_1081].xyz);\n }\n else\n {\n _1125 = _1124 * inversesqrt(_1140);\n }\n if (_1131)\n {\n _1126 = 1.0;\n }\n else\n {\n _1126 = 1.0 / _1140;\n }\n highp float _1156 = dot(_338, _1125);\n if (_1156 <= 0.0)\n {\n _1123 = vec3(0.0);\n break;\n }\n highp vec3 _1161 = _1080 + _1125;\n highp float _1162 = dot(_1161, _1161);\n if (_1162 <= 9.9999999600419720025001879548654e-13)\n {\n _1123 = vec3(0.0);\n break;\n }\n highp vec3 _1167 = _1161 * inversesqrt(_1162);\n highp float _1169 = max(dot(_338, _1080), 0.0);\n highp float _1171 = max(dot(_338, _1167), 0.0);\n highp float _1176 = max(_1463, 0.039999999105930328369140625);\n highp vec3 _1208 = mix(vec3(0.039999999105930328369140625), _1461, vec3(_1462));\n highp float _1211 = _1176 * _1176;\n highp float _1212 = _1211 * _1211;\n highp float _1216 = ((_1171 * _1171) * (_1212 - 1.0)) + 1.0;\n highp float _1227 = _1176 + 1.0;\n highp float _1229 = (_1227 * _1227) * 0.125;\n highp float _1236 = _1176 + 1.0;\n highp float _1238 = (_1236 * _1236) * 0.125;\n highp vec3 _1251 = _1208 + ((vec3(1.0) - _1208) * pow(clamp(1.0 - max(dot(_1167, _1080), 0.0), 0.0, 1.0), 5.0));\n _1123 = ((((clamp((vec3(1.0) - _1251) * (1.0 - _1462), vec3(0.0), vec3(1.0)) * _1461) * vec3(0.3183098733425140380859375)) + ((_1251 * ((_1212 / ((3.1415927410125732421875 * _1216) * _1216)) * ((_1169 / ((_1169 * (1.0 - _1229)) + _1229)) * (_1156 / ((_1156 * (1.0 - _1238)) + _1238))))) / vec3(((4.0 * _1169) * _1156) + 9.9999997473787516355514526367188e-05))) * (globalParams.u_lightColors.data[_1081] * _1126)) * _1156;\n break;\n } while(false);\n _1082 += _1123;\n }\n _1081++;\n continue;\n }\n highp vec3 _1287 = mix(vec3(0.039999999105930328369140625), _1461, vec3(_1462));\n highp vec3 _1298 = _1287 + ((max(vec3(1.0 - max(_1463, 0.039999999105930328369140625)), _1287) - _1287) * pow(clamp(1.0 - max(dot(_338, _1080), 0.0), 0.0, 1.0), 5.0));\n highp vec3 _1121 = (((((clamp((vec3(1.0) - _1298) * (1.0 - _1462), vec3(0.0), vec3(1.0)) * mix(_1472, _1471, vec3((dot(_338, _1473) * 0.5) + 0.5))) * _1461) + (mix(_1472, _1471, vec3((dot(reflect(-_1080, _338), _1473) * 0.5) + 0.5)) * _1298)) * _1464) + _1082) + _1465;\n entryPointParam_fragmentMain = vec4(pow(_1121 / (_1121 + vec3(1.0)), vec3(0.454545438289642333984375)), globalParams.u_opacity);\n break;\n } while(false);\n}\n\n",
353
+ "sha256": "c093a096d1ccb186c0b24f07c267866324843d31c6181f5310328b6a074b653f"
354
+ }
355
+ }
356
+ }
357
+ }
358
+ }