@vcollab/shader-artifacts 0.0.0-stage → 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.
Files changed (175) hide show
  1. package/CHANGELOG.md +59 -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 +495 -0
  14. package/set/pipelines/category.json +469 -0
  15. package/set/pipelines/deform3.category.capped.json +505 -0
  16. package/set/pipelines/deform3.category.json +479 -0
  17. package/set/pipelines/deform3.dof6.capped.json +595 -0
  18. package/set/pipelines/deform3.dof6.json +569 -0
  19. package/set/pipelines/deform3.pick.capped.json +260 -0
  20. package/set/pipelines/deform3.pick.json +254 -0
  21. package/set/pipelines/deform3.scalar.capped.json +601 -0
  22. package/set/pipelines/deform3.scalar.json +575 -0
  23. package/set/pipelines/deform3.surface.capped.json +457 -0
  24. package/set/pipelines/deform3.surface.json +431 -0
  25. package/set/pipelines/deform3.symtensor.capped.json +623 -0
  26. package/set/pipelines/deform3.symtensor.json +597 -0
  27. package/set/pipelines/deform3.textured-normal.capped.json +590 -0
  28. package/set/pipelines/deform3.textured-normal.json +564 -0
  29. package/set/pipelines/deform3.textured.capped.json +549 -0
  30. package/set/pipelines/deform3.textured.json +523 -0
  31. package/set/pipelines/deform3.vector.capped.json +586 -0
  32. package/set/pipelines/deform3.vector.json +560 -0
  33. package/set/pipelines/deform6.category.capped.json +514 -0
  34. package/set/pipelines/deform6.category.json +488 -0
  35. package/set/pipelines/deform6.dof6.capped.json +604 -0
  36. package/set/pipelines/deform6.dof6.json +578 -0
  37. package/set/pipelines/deform6.pick.capped.json +269 -0
  38. package/set/pipelines/deform6.pick.json +263 -0
  39. package/set/pipelines/deform6.scalar.capped.json +610 -0
  40. package/set/pipelines/deform6.scalar.json +584 -0
  41. package/set/pipelines/deform6.surface.capped.json +466 -0
  42. package/set/pipelines/deform6.surface.json +440 -0
  43. package/set/pipelines/deform6.symtensor.capped.json +632 -0
  44. package/set/pipelines/deform6.symtensor.json +606 -0
  45. package/set/pipelines/deform6.textured-normal.capped.json +599 -0
  46. package/set/pipelines/deform6.textured-normal.json +573 -0
  47. package/set/pipelines/deform6.textured.capped.json +558 -0
  48. package/set/pipelines/deform6.textured.json +532 -0
  49. package/set/pipelines/deform6.vector.capped.json +595 -0
  50. package/set/pipelines/deform6.vector.json +569 -0
  51. package/set/pipelines/dof6.capped.json +585 -0
  52. package/set/pipelines/dof6.json +559 -0
  53. package/set/pipelines/pick.capped.json +250 -0
  54. package/set/pipelines/pick.json +244 -0
  55. package/set/pipelines/scalar.capped.json +591 -0
  56. package/set/pipelines/scalar.json +565 -0
  57. package/set/pipelines/surface.capped.json +447 -0
  58. package/set/pipelines/surface.json +421 -0
  59. package/set/pipelines/symtensor.capped.json +613 -0
  60. package/set/pipelines/symtensor.json +587 -0
  61. package/set/pipelines/textured-normal.capped.json +580 -0
  62. package/set/pipelines/textured-normal.json +554 -0
  63. package/set/pipelines/textured.capped.json +539 -0
  64. package/set/pipelines/textured.json +513 -0
  65. package/set/pipelines/vector.capped.json +576 -0
  66. package/set/pipelines/vector.json +550 -0
  67. package/set/registry.json +1097 -0
  68. package/set/shaders/category.capped.fragment.glsl +507 -0
  69. package/set/shaders/category.capped.vertex.glsl +164 -0
  70. package/set/shaders/category.fragment.glsl +349 -0
  71. package/set/shaders/category.vertex.glsl +145 -0
  72. package/set/shaders/deform3.category.capped.fragment.glsl +507 -0
  73. package/set/shaders/deform3.category.capped.vertex.glsl +166 -0
  74. package/set/shaders/deform3.category.fragment.glsl +349 -0
  75. package/set/shaders/deform3.category.vertex.glsl +147 -0
  76. package/set/shaders/deform3.dof6.capped.fragment.glsl +694 -0
  77. package/set/shaders/deform3.dof6.capped.vertex.glsl +187 -0
  78. package/set/shaders/deform3.dof6.fragment.glsl +536 -0
  79. package/set/shaders/deform3.dof6.vertex.glsl +168 -0
  80. package/set/shaders/deform3.pick.capped.fragment.glsl +89 -0
  81. package/set/shaders/deform3.pick.capped.vertex.glsl +111 -0
  82. package/set/shaders/deform3.pick.fragment.glsl +74 -0
  83. package/set/shaders/deform3.pick.vertex.glsl +93 -0
  84. package/set/shaders/deform3.scalar.capped.fragment.glsl +682 -0
  85. package/set/shaders/deform3.scalar.capped.vertex.glsl +179 -0
  86. package/set/shaders/deform3.scalar.fragment.glsl +524 -0
  87. package/set/shaders/deform3.scalar.vertex.glsl +160 -0
  88. package/set/shaders/deform3.surface.capped.fragment.glsl +425 -0
  89. package/set/shaders/deform3.surface.capped.vertex.glsl +148 -0
  90. package/set/shaders/deform3.surface.fragment.glsl +271 -0
  91. package/set/shaders/deform3.surface.vertex.glsl +129 -0
  92. package/set/shaders/deform3.symtensor.capped.fragment.glsl +1239 -0
  93. package/set/shaders/deform3.symtensor.capped.vertex.glsl +188 -0
  94. package/set/shaders/deform3.symtensor.fragment.glsl +1081 -0
  95. package/set/shaders/deform3.symtensor.vertex.glsl +169 -0
  96. package/set/shaders/deform3.textured-normal.capped.fragment.glsl +437 -0
  97. package/set/shaders/deform3.textured-normal.capped.vertex.glsl +167 -0
  98. package/set/shaders/deform3.textured-normal.fragment.glsl +283 -0
  99. package/set/shaders/deform3.textured-normal.vertex.glsl +148 -0
  100. package/set/shaders/deform3.textured.capped.fragment.glsl +428 -0
  101. package/set/shaders/deform3.textured.capped.vertex.glsl +150 -0
  102. package/set/shaders/deform3.textured.fragment.glsl +275 -0
  103. package/set/shaders/deform3.textured.vertex.glsl +131 -0
  104. package/set/shaders/deform3.vector.capped.fragment.glsl +657 -0
  105. package/set/shaders/deform3.vector.capped.vertex.glsl +183 -0
  106. package/set/shaders/deform3.vector.fragment.glsl +499 -0
  107. package/set/shaders/deform3.vector.vertex.glsl +164 -0
  108. package/set/shaders/deform6.category.capped.fragment.glsl +507 -0
  109. package/set/shaders/deform6.category.capped.vertex.glsl +180 -0
  110. package/set/shaders/deform6.category.fragment.glsl +349 -0
  111. package/set/shaders/deform6.category.vertex.glsl +161 -0
  112. package/set/shaders/deform6.dof6.capped.fragment.glsl +694 -0
  113. package/set/shaders/deform6.dof6.capped.vertex.glsl +201 -0
  114. package/set/shaders/deform6.dof6.fragment.glsl +536 -0
  115. package/set/shaders/deform6.dof6.vertex.glsl +182 -0
  116. package/set/shaders/deform6.pick.capped.fragment.glsl +89 -0
  117. package/set/shaders/deform6.pick.capped.vertex.glsl +125 -0
  118. package/set/shaders/deform6.pick.fragment.glsl +74 -0
  119. package/set/shaders/deform6.pick.vertex.glsl +107 -0
  120. package/set/shaders/deform6.scalar.capped.fragment.glsl +682 -0
  121. package/set/shaders/deform6.scalar.capped.vertex.glsl +193 -0
  122. package/set/shaders/deform6.scalar.fragment.glsl +524 -0
  123. package/set/shaders/deform6.scalar.vertex.glsl +174 -0
  124. package/set/shaders/deform6.surface.capped.fragment.glsl +425 -0
  125. package/set/shaders/deform6.surface.capped.vertex.glsl +162 -0
  126. package/set/shaders/deform6.surface.fragment.glsl +271 -0
  127. package/set/shaders/deform6.surface.vertex.glsl +143 -0
  128. package/set/shaders/deform6.symtensor.capped.fragment.glsl +1239 -0
  129. package/set/shaders/deform6.symtensor.capped.vertex.glsl +202 -0
  130. package/set/shaders/deform6.symtensor.fragment.glsl +1081 -0
  131. package/set/shaders/deform6.symtensor.vertex.glsl +183 -0
  132. package/set/shaders/deform6.textured-normal.capped.fragment.glsl +437 -0
  133. package/set/shaders/deform6.textured-normal.capped.vertex.glsl +181 -0
  134. package/set/shaders/deform6.textured-normal.fragment.glsl +283 -0
  135. package/set/shaders/deform6.textured-normal.vertex.glsl +162 -0
  136. package/set/shaders/deform6.textured.capped.fragment.glsl +428 -0
  137. package/set/shaders/deform6.textured.capped.vertex.glsl +164 -0
  138. package/set/shaders/deform6.textured.fragment.glsl +275 -0
  139. package/set/shaders/deform6.textured.vertex.glsl +145 -0
  140. package/set/shaders/deform6.vector.capped.fragment.glsl +657 -0
  141. package/set/shaders/deform6.vector.capped.vertex.glsl +197 -0
  142. package/set/shaders/deform6.vector.fragment.glsl +499 -0
  143. package/set/shaders/deform6.vector.vertex.glsl +178 -0
  144. package/set/shaders/dof6.capped.fragment.glsl +694 -0
  145. package/set/shaders/dof6.capped.vertex.glsl +185 -0
  146. package/set/shaders/dof6.fragment.glsl +536 -0
  147. package/set/shaders/dof6.vertex.glsl +166 -0
  148. package/set/shaders/pick.capped.fragment.glsl +89 -0
  149. package/set/shaders/pick.capped.vertex.glsl +109 -0
  150. package/set/shaders/pick.fragment.glsl +74 -0
  151. package/set/shaders/pick.vertex.glsl +91 -0
  152. package/set/shaders/scalar.capped.fragment.glsl +682 -0
  153. package/set/shaders/scalar.capped.vertex.glsl +177 -0
  154. package/set/shaders/scalar.fragment.glsl +524 -0
  155. package/set/shaders/scalar.vertex.glsl +158 -0
  156. package/set/shaders/surface.capped.fragment.glsl +425 -0
  157. package/set/shaders/surface.capped.vertex.glsl +146 -0
  158. package/set/shaders/surface.fragment.glsl +271 -0
  159. package/set/shaders/surface.vertex.glsl +127 -0
  160. package/set/shaders/symtensor.capped.fragment.glsl +1239 -0
  161. package/set/shaders/symtensor.capped.vertex.glsl +186 -0
  162. package/set/shaders/symtensor.fragment.glsl +1081 -0
  163. package/set/shaders/symtensor.vertex.glsl +167 -0
  164. package/set/shaders/textured-normal.capped.fragment.glsl +437 -0
  165. package/set/shaders/textured-normal.capped.vertex.glsl +165 -0
  166. package/set/shaders/textured-normal.fragment.glsl +283 -0
  167. package/set/shaders/textured-normal.vertex.glsl +146 -0
  168. package/set/shaders/textured.capped.fragment.glsl +428 -0
  169. package/set/shaders/textured.capped.vertex.glsl +148 -0
  170. package/set/shaders/textured.fragment.glsl +275 -0
  171. package/set/shaders/textured.vertex.glsl +129 -0
  172. package/set/shaders/vector.capped.fragment.glsl +657 -0
  173. package/set/shaders/vector.capped.vertex.glsl +181 -0
  174. package/set/shaders/vector.fragment.glsl +499 -0
  175. package/set/shaders/vector.vertex.glsl +162 -0
@@ -0,0 +1,573 @@
1
+ {
2
+ "schemaVersion": 3,
3
+ "generator": {
4
+ "name": "vcti-shader-foundry",
5
+ "version": "9.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 from authored images with a tangent-space normal map, on geometry deformed by translation and rotation.",
14
+ "id": "deform6.textured-normal",
15
+ "capabilities": [
16
+ "deform6",
17
+ "material",
18
+ "material-texture-normal",
19
+ "material-surface-finish",
20
+ "mask",
21
+ "mask-lut-r8ui",
22
+ "transform",
23
+ "transform-lut-r32ui",
24
+ "transform-map-r16ui",
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_rotation",
40
+ "type": "vec3",
41
+ "semantic": "rotation"
42
+ },
43
+ {
44
+ "name": "a_atomId",
45
+ "type": "int",
46
+ "semantic": "atom-id"
47
+ },
48
+ {
49
+ "name": "a_normal",
50
+ "type": "vec3",
51
+ "semantic": "normal"
52
+ },
53
+ {
54
+ "name": "a_uv",
55
+ "type": "vec2",
56
+ "semantic": "uv.0"
57
+ },
58
+ {
59
+ "name": "a_tangent",
60
+ "type": "vec4",
61
+ "semantic": "tangent"
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_deformRotationCenter",
79
+ "type": "vec3"
80
+ },
81
+ {
82
+ "name": "u_maskLutWidth",
83
+ "type": "int"
84
+ },
85
+ {
86
+ "name": "u_maskLutBase",
87
+ "type": "int"
88
+ },
89
+ {
90
+ "name": "u_transformLutWidth",
91
+ "type": "int"
92
+ },
93
+ {
94
+ "name": "u_transformLutStride",
95
+ "type": "int"
96
+ },
97
+ {
98
+ "name": "u_transformLutBase",
99
+ "type": "int"
100
+ },
101
+ {
102
+ "name": "u_transformMapWidth",
103
+ "type": "int"
104
+ },
105
+ {
106
+ "name": "u_transformMapBase",
107
+ "type": "int"
108
+ },
109
+ {
110
+ "name": "u_clipPlanes",
111
+ "type": "vec4[6]"
112
+ },
113
+ {
114
+ "name": "u_clipPlaneCount",
115
+ "type": "int"
116
+ },
117
+ {
118
+ "name": "u_materialBaseColor",
119
+ "type": "vec3"
120
+ },
121
+ {
122
+ "name": "u_materialMetallic",
123
+ "type": "float"
124
+ },
125
+ {
126
+ "name": "u_materialRoughness",
127
+ "type": "float"
128
+ },
129
+ {
130
+ "name": "u_materialOcclusion",
131
+ "type": "float"
132
+ },
133
+ {
134
+ "name": "u_materialEmissive",
135
+ "type": "vec3"
136
+ },
137
+ {
138
+ "name": "u_materialNormalScale",
139
+ "type": "float"
140
+ },
141
+ {
142
+ "name": "u_viewPosition",
143
+ "type": "vec3"
144
+ },
145
+ {
146
+ "name": "u_environmentSky",
147
+ "type": "vec3"
148
+ },
149
+ {
150
+ "name": "u_environmentGround",
151
+ "type": "vec3"
152
+ },
153
+ {
154
+ "name": "u_environmentUp",
155
+ "type": "vec3"
156
+ },
157
+ {
158
+ "name": "u_lightPositions",
159
+ "type": "vec4[4]"
160
+ },
161
+ {
162
+ "name": "u_lightColors",
163
+ "type": "vec3[4]"
164
+ },
165
+ {
166
+ "name": "u_lightCount",
167
+ "type": "int"
168
+ },
169
+ {
170
+ "name": "u_surfaceFinishScale",
171
+ "type": "float"
172
+ },
173
+ {
174
+ "name": "u_surfaceFinishRoughness",
175
+ "type": "float"
176
+ },
177
+ {
178
+ "name": "u_surfaceFinishColor",
179
+ "type": "float"
180
+ },
181
+ {
182
+ "name": "u_colorSource",
183
+ "type": "int",
184
+ "namedValues": {
185
+ "material": 0,
186
+ "material-unlit": 3
187
+ }
188
+ },
189
+ {
190
+ "name": "u_opacity",
191
+ "type": "float"
192
+ }
193
+ ],
194
+ "outputs": [
195
+ {
196
+ "name": "fragColor",
197
+ "type": "vec4",
198
+ "format": null
199
+ }
200
+ ],
201
+ "tables": [
202
+ {
203
+ "name": "u_maskLut",
204
+ "type": "Texture2D<uint4>",
205
+ "format": "r8ui",
206
+ "semantic": "mask"
207
+ },
208
+ {
209
+ "name": "u_transformLut",
210
+ "type": "Texture2D<uint4>",
211
+ "format": "r32ui",
212
+ "semantic": "transform"
213
+ },
214
+ {
215
+ "name": "u_transformMap",
216
+ "type": "Texture2D<uint4>",
217
+ "format": "r16ui",
218
+ "semantic": "transform-map"
219
+ }
220
+ ],
221
+ "textures": [
222
+ {
223
+ "name": "u_materialBaseColorMap",
224
+ "semantic": "base-color",
225
+ "kind": "2d",
226
+ "component": "float4",
227
+ "format": "rgba8unorm-srgb",
228
+ "requiresMipChain": true,
229
+ "sampler": "u_materialSampler",
230
+ "uv": "uv.0",
231
+ "selection": "draw",
232
+ "neutral": [
233
+ 1.0,
234
+ 1.0,
235
+ 1.0,
236
+ 1.0
237
+ ]
238
+ },
239
+ {
240
+ "name": "u_materialPackedMap",
241
+ "semantic": "occlusion-roughness-metallic",
242
+ "kind": "2d",
243
+ "component": "float4",
244
+ "format": "rgba8unorm",
245
+ "requiresMipChain": true,
246
+ "sampler": "u_materialSampler",
247
+ "uv": "uv.0",
248
+ "selection": "draw",
249
+ "neutral": [
250
+ 1.0,
251
+ 1.0,
252
+ 1.0,
253
+ 1.0
254
+ ]
255
+ },
256
+ {
257
+ "name": "u_materialEmissiveMap",
258
+ "semantic": "emissive",
259
+ "kind": "2d",
260
+ "component": "float4",
261
+ "format": "rgba8unorm-srgb",
262
+ "requiresMipChain": true,
263
+ "sampler": "u_materialSampler",
264
+ "uv": "uv.0",
265
+ "selection": "draw",
266
+ "neutral": [
267
+ 1.0,
268
+ 1.0,
269
+ 1.0,
270
+ 1.0
271
+ ]
272
+ },
273
+ {
274
+ "name": "u_materialNormalMap",
275
+ "semantic": "normal",
276
+ "kind": "2d",
277
+ "component": "float4",
278
+ "format": "rgba8unorm",
279
+ "requiresMipChain": true,
280
+ "sampler": "u_materialSampler",
281
+ "uv": "uv.0",
282
+ "selection": "draw",
283
+ "neutral": [
284
+ 0.5,
285
+ 0.5,
286
+ 1.0,
287
+ 1.0
288
+ ]
289
+ }
290
+ ],
291
+ "samplers": [
292
+ {
293
+ "name": "u_materialSampler",
294
+ "magFilter": "linear",
295
+ "minFilter": "linear",
296
+ "mipmapFilter": "linear",
297
+ "wrapS": "repeat",
298
+ "wrapT": "repeat"
299
+ }
300
+ ]
301
+ },
302
+ "contractSha256": "50aee23e6670ca51b19194fa6b498b6d182c534657c870984af53d1b9ca161d3",
303
+ "languages": {
304
+ "glsl": {
305
+ "blockSize": 576,
306
+ "layout": {
307
+ "u_mvpMatrix": {
308
+ "offset": 0,
309
+ "size": 64,
310
+ "elementStride": 0,
311
+ "encoding": "mat4",
312
+ "majorness": "row"
313
+ },
314
+ "u_modelViewMatrix": {
315
+ "offset": 64,
316
+ "size": 64,
317
+ "elementStride": 0,
318
+ "encoding": "mat4",
319
+ "majorness": "row"
320
+ },
321
+ "u_deformScale": {
322
+ "offset": 128,
323
+ "size": 12,
324
+ "elementStride": 4,
325
+ "encoding": "vec3"
326
+ },
327
+ "u_deformRotationCenter": {
328
+ "offset": 144,
329
+ "size": 12,
330
+ "elementStride": 4,
331
+ "encoding": "vec3"
332
+ },
333
+ "u_maskLutWidth": {
334
+ "offset": 156,
335
+ "size": 4,
336
+ "elementStride": 0,
337
+ "encoding": "int"
338
+ },
339
+ "u_maskLutBase": {
340
+ "offset": 160,
341
+ "size": 4,
342
+ "elementStride": 0,
343
+ "encoding": "int"
344
+ },
345
+ "u_transformLutWidth": {
346
+ "offset": 164,
347
+ "size": 4,
348
+ "elementStride": 0,
349
+ "encoding": "int"
350
+ },
351
+ "u_transformLutStride": {
352
+ "offset": 168,
353
+ "size": 4,
354
+ "elementStride": 0,
355
+ "encoding": "int"
356
+ },
357
+ "u_transformLutBase": {
358
+ "offset": 172,
359
+ "size": 4,
360
+ "elementStride": 0,
361
+ "encoding": "int"
362
+ },
363
+ "u_transformMapWidth": {
364
+ "offset": 176,
365
+ "size": 4,
366
+ "elementStride": 0,
367
+ "encoding": "int"
368
+ },
369
+ "u_transformMapBase": {
370
+ "offset": 180,
371
+ "size": 4,
372
+ "elementStride": 0,
373
+ "encoding": "int"
374
+ },
375
+ "u_clipPlanes": {
376
+ "offset": 192,
377
+ "size": 96,
378
+ "elementStride": 16,
379
+ "encoding": "vec4[]"
380
+ },
381
+ "u_clipPlaneCount": {
382
+ "offset": 288,
383
+ "size": 4,
384
+ "elementStride": 0,
385
+ "encoding": "int"
386
+ },
387
+ "u_materialBaseColor": {
388
+ "offset": 304,
389
+ "size": 12,
390
+ "elementStride": 4,
391
+ "encoding": "vec3"
392
+ },
393
+ "u_materialMetallic": {
394
+ "offset": 316,
395
+ "size": 4,
396
+ "elementStride": 0,
397
+ "encoding": "float"
398
+ },
399
+ "u_materialRoughness": {
400
+ "offset": 320,
401
+ "size": 4,
402
+ "elementStride": 0,
403
+ "encoding": "float"
404
+ },
405
+ "u_materialOcclusion": {
406
+ "offset": 324,
407
+ "size": 4,
408
+ "elementStride": 0,
409
+ "encoding": "float"
410
+ },
411
+ "u_materialEmissive": {
412
+ "offset": 336,
413
+ "size": 12,
414
+ "elementStride": 4,
415
+ "encoding": "vec3"
416
+ },
417
+ "u_materialNormalScale": {
418
+ "offset": 348,
419
+ "size": 4,
420
+ "elementStride": 0,
421
+ "encoding": "float"
422
+ },
423
+ "u_viewPosition": {
424
+ "offset": 352,
425
+ "size": 12,
426
+ "elementStride": 4,
427
+ "encoding": "vec3"
428
+ },
429
+ "u_environmentSky": {
430
+ "offset": 368,
431
+ "size": 12,
432
+ "elementStride": 4,
433
+ "encoding": "vec3"
434
+ },
435
+ "u_environmentGround": {
436
+ "offset": 384,
437
+ "size": 12,
438
+ "elementStride": 4,
439
+ "encoding": "vec3"
440
+ },
441
+ "u_environmentUp": {
442
+ "offset": 400,
443
+ "size": 12,
444
+ "elementStride": 4,
445
+ "encoding": "vec3"
446
+ },
447
+ "u_lightPositions": {
448
+ "offset": 416,
449
+ "size": 64,
450
+ "elementStride": 16,
451
+ "encoding": "vec4[]"
452
+ },
453
+ "u_lightColors": {
454
+ "offset": 480,
455
+ "size": 64,
456
+ "elementStride": 16,
457
+ "encoding": "vec3[]"
458
+ },
459
+ "u_lightCount": {
460
+ "offset": 544,
461
+ "size": 4,
462
+ "elementStride": 0,
463
+ "encoding": "int"
464
+ },
465
+ "u_surfaceFinishScale": {
466
+ "offset": 548,
467
+ "size": 4,
468
+ "elementStride": 0,
469
+ "encoding": "float"
470
+ },
471
+ "u_surfaceFinishRoughness": {
472
+ "offset": 552,
473
+ "size": 4,
474
+ "elementStride": 0,
475
+ "encoding": "float"
476
+ },
477
+ "u_surfaceFinishColor": {
478
+ "offset": 556,
479
+ "size": 4,
480
+ "elementStride": 0,
481
+ "encoding": "float"
482
+ },
483
+ "u_colorSource": {
484
+ "offset": 560,
485
+ "size": 4,
486
+ "elementStride": 0,
487
+ "encoding": "int"
488
+ },
489
+ "u_opacity": {
490
+ "offset": 564,
491
+ "size": 4,
492
+ "elementStride": 0,
493
+ "encoding": "float"
494
+ }
495
+ },
496
+ "bindings": [
497
+ {
498
+ "semantic": "mask",
499
+ "texture": "u_maskLut",
500
+ "sampler": null,
501
+ "uniform": "SPIRV_Cross_Combinedu_maskLutSPIRV_Cross_DummySampler",
502
+ "component": "uint",
503
+ "stage": "vertex",
504
+ "unit": 0
505
+ },
506
+ {
507
+ "semantic": "transform",
508
+ "texture": "u_transformLut",
509
+ "sampler": null,
510
+ "uniform": "SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler",
511
+ "component": "uint",
512
+ "stage": "vertex",
513
+ "unit": 1
514
+ },
515
+ {
516
+ "semantic": "transform-map",
517
+ "texture": "u_transformMap",
518
+ "sampler": null,
519
+ "uniform": "SPIRV_Cross_Combinedu_transformMapSPIRV_Cross_DummySampler",
520
+ "component": "uint",
521
+ "stage": "vertex",
522
+ "unit": 2
523
+ },
524
+ {
525
+ "semantic": "base-color",
526
+ "texture": "u_materialBaseColorMap",
527
+ "sampler": "u_materialSampler",
528
+ "uniform": "SPIRV_Cross_Combinedu_materialBaseColorMapu_materialSampler",
529
+ "component": "float",
530
+ "stage": "fragment",
531
+ "unit": 3
532
+ },
533
+ {
534
+ "semantic": "emissive",
535
+ "texture": "u_materialEmissiveMap",
536
+ "sampler": "u_materialSampler",
537
+ "uniform": "SPIRV_Cross_Combinedu_materialEmissiveMapu_materialSampler",
538
+ "component": "float",
539
+ "stage": "fragment",
540
+ "unit": 4
541
+ },
542
+ {
543
+ "semantic": "normal",
544
+ "texture": "u_materialNormalMap",
545
+ "sampler": "u_materialSampler",
546
+ "uniform": "SPIRV_Cross_Combinedu_materialNormalMapu_materialSampler",
547
+ "component": "float",
548
+ "stage": "fragment",
549
+ "unit": 5
550
+ },
551
+ {
552
+ "semantic": "occlusion-roughness-metallic",
553
+ "texture": "u_materialPackedMap",
554
+ "sampler": "u_materialSampler",
555
+ "uniform": "SPIRV_Cross_Combinedu_materialPackedMapu_materialSampler",
556
+ "component": "float",
557
+ "stage": "fragment",
558
+ "unit": 6
559
+ }
560
+ ],
561
+ "stages": {
562
+ "vertex": {
563
+ "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 vec3 u_materialBaseColor;\n float u_materialMetallic;\n float u_materialRoughness;\n float u_materialOcclusion;\n vec3 u_materialEmissive;\n float u_materialNormalScale;\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_transformMapSPIRV_Cross_DummySampler;\nuniform highp usampler2D SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler;\n\nlayout(location = 3) in int a_atomId;\nout vec3 v0;\nout vec3 v1;\nout vec3 v2;\nout vec3 v3;\nout vec2 v4;\nout vec4 v5;\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 vec3 a_normal;\nlayout(location = 5) in vec2 a_uv;\nlayout(location = 6) in vec4 a_tangent;\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 _481 = globalParams.u_maskLutBase + a_atomId;\n if (!(texelFetch(SPIRV_Cross_Combinedu_maskLutSPIRV_Cross_DummySampler, ivec2(_481 - globalParams.u_maskLutWidth * (_481 / globalParams.u_maskLutWidth), _481 / 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 = vec2(0.0);\n v5 = vec4(0.0);\n break;\n }\n vec3 _512 = a_position - globalParams.u_deformRotationCenter;\n float _513 = length(a_rotation);\n vec3 _509;\n if (_513 > 9.9999999392252902907785028219223e-09)\n {\n vec3 _517 = a_rotation / vec3(_513);\n float _518 = cos(_513);\n _509 = ((_512 * _518) + (cross(_517, _512) * sin(_513))) + ((_517 * dot(_517, _512)) * (1.0 - _518));\n }\n else\n {\n _509 = _512;\n }\n vec3 _534 = (globalParams.u_deformRotationCenter + _509) + (globalParams.u_deformScale * a_deformation);\n vec4 _535 = a_tangent;\n int _652 = globalParams.u_transformMapBase + a_atomId;\n int _660 = int(texelFetch(SPIRV_Cross_Combinedu_transformMapSPIRV_Cross_DummySampler, ivec2(_652 - globalParams.u_transformMapWidth * (_652 / globalParams.u_transformMapWidth), _652 / globalParams.u_transformMapWidth), 0).x);\n int _664 = (globalParams.u_transformLutBase + _660) * globalParams.u_transformLutStride;\n vec3 _536;\n vec3 _537;\n if (texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_664 - globalParams.u_transformLutWidth * (_664 / globalParams.u_transformLutWidth), _664 / globalParams.u_transformLutWidth), 0).x != 0u)\n {\n int _680 = ((globalParams.u_transformLutBase + _660) * globalParams.u_transformLutStride) + 1;\n int _692 = ((globalParams.u_transformLutBase + _660) * globalParams.u_transformLutStride) + 2;\n int _704 = ((globalParams.u_transformLutBase + _660) * globalParams.u_transformLutStride) + 3;\n int _722 = ((globalParams.u_transformLutBase + _660) * globalParams.u_transformLutStride) + 4;\n int _734 = ((globalParams.u_transformLutBase + _660) * globalParams.u_transformLutStride) + 5;\n int _746 = ((globalParams.u_transformLutBase + _660) * globalParams.u_transformLutStride) + 6;\n int _758 = ((globalParams.u_transformLutBase + _660) * globalParams.u_transformLutStride) + 7;\n vec4 _772 = vec4(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_722 - globalParams.u_transformLutWidth * (_722 / globalParams.u_transformLutWidth), _722 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_734 - globalParams.u_transformLutWidth * (_734 / globalParams.u_transformLutWidth), _734 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_746 - globalParams.u_transformLutWidth * (_746 / globalParams.u_transformLutWidth), _746 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_758 - globalParams.u_transformLutWidth * (_758 / globalParams.u_transformLutWidth), _758 / globalParams.u_transformLutWidth), 0).x));\n int _777 = ((globalParams.u_transformLutBase + _660) * globalParams.u_transformLutStride) + 8;\n int _789 = ((globalParams.u_transformLutBase + _660) * globalParams.u_transformLutStride) + 9;\n int _801 = ((globalParams.u_transformLutBase + _660) * globalParams.u_transformLutStride) + 10;\n vec3 _814 = vec3(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_777 - globalParams.u_transformLutWidth * (_777 / globalParams.u_transformLutWidth), _777 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_789 - globalParams.u_transformLutWidth * (_789 / globalParams.u_transformLutWidth), _789 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_801 - globalParams.u_transformLutWidth * (_801 / globalParams.u_transformLutWidth), _801 / globalParams.u_transformLutWidth), 0).x));\n vec3 _817 = _814 * _534;\n vec3 _822 = _772.xyz;\n vec3 _824 = cross(_822, _817) * 2.0;\n vec3 _832 = a_normal / _814;\n vec3 _837 = _772.xyz;\n vec3 _839 = cross(_837, _832) * 2.0;\n vec4 _600 = _535;\n vec3 _602 = _814 * _600.xyz;\n vec3 _847 = _772.xyz;\n vec3 _849 = cross(_847, _602) * 2.0;\n vec3 _604 = normalize((_602 + (_849 * _772.w)) + cross(_847, _849));\n vec4 _934 = _600;\n _934.x = _604.x;\n _934.y = _604.y;\n _934.z = _604.z;\n _535 = _934;\n _536 = ((_817 + (_824 * _772.w)) + cross(_822, _824)) + vec3(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_680 - globalParams.u_transformLutWidth * (_680 / globalParams.u_transformLutWidth), _680 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_692 - globalParams.u_transformLutWidth * (_692 / globalParams.u_transformLutWidth), _692 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_704 - globalParams.u_transformLutWidth * (_704 / globalParams.u_transformLutWidth), _704 / globalParams.u_transformLutWidth), 0).x));\n _537 = normalize((_832 + (_839 * _772.w)) + cross(_837, _839));\n }\n else\n {\n _536 = _534;\n _537 = a_normal;\n }\n mat3 _623 = mat3(spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[0].xyz, spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[1].xyz, spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[2].xyz);\n vec4 _626 = vec4(_536, 1.0);\n gl_Position = _626 * spvWorkaroundRowMajor(globalParams.u_mvpMatrix);\n v0 = _536;\n v1 = (_626 * spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)).xyz;\n v2 = _537 * _623;\n v3 = a_position;\n v4 = a_uv;\n v5 = vec4(_535.xyz * _623, _535.w);\n break;\n } while(false);\n}\n\n",
564
+ "sha256": "178afd05d5a9f5dbda8394ec1811f14edd6ffc240210ddebc12da9c3bdfb8698"
565
+ },
566
+ "fragment": {
567
+ "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 highp vec3 u_materialBaseColor;\n highp float u_materialMetallic;\n highp float u_materialRoughness;\n highp float u_materialOcclusion;\n highp vec3 u_materialEmissive;\n highp float u_materialNormalScale;\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_materialBaseColorMapu_materialSampler;\nuniform highp sampler2D SPIRV_Cross_Combinedu_materialPackedMapu_materialSampler;\nuniform highp sampler2D SPIRV_Cross_Combinedu_materialEmissiveMapu_materialSampler;\nuniform highp sampler2D SPIRV_Cross_Combinedu_materialNormalMapu_materialSampler;\n\nin highp vec3 v0;\nin highp vec2 v4;\nin highp vec3 v3;\nlayout(location = 0) out highp vec4 entryPointParam_fragmentMain;\nin highp vec3 v2;\nin highp vec4 v5;\nin highp vec3 v1;\n\nvoid main()\n{\n bool _814 = false;\n do\n {\n _814 = false;\n bool _815;\n do\n {\n int _816 = 0;\n for (;;)\n {\n if (!(_816 < 6))\n {\n break;\n }\n if (_816 >= globalParams.u_clipPlaneCount)\n {\n break;\n }\n if ((dot(globalParams.u_clipPlanes.data[_816].xyz, v0) + globalParams.u_clipPlanes.data[_816].w) < 0.0)\n {\n _814 = true;\n _815 = false;\n break;\n }\n _816++;\n continue;\n }\n if (_814)\n {\n break;\n }\n _814 = true;\n _815 = true;\n break;\n } while(false);\n if (!_815)\n {\n discard;\n }\n highp vec4 _866 = texture(SPIRV_Cross_Combinedu_materialPackedMapu_materialSampler, v4);\n highp vec3 _1545 = globalParams.u_materialBaseColor * texture(SPIRV_Cross_Combinedu_materialBaseColorMapu_materialSampler, v4).xyz;\n highp float _1546 = globalParams.u_materialMetallic * _866.z;\n highp float _1547 = globalParams.u_materialRoughness * _866.y;\n highp float _1548 = globalParams.u_materialOcclusion * _866.x;\n highp vec3 _1549 = globalParams.u_materialEmissive * texture(SPIRV_Cross_Combinedu_materialEmissiveMapu_materialSampler, v4).xyz;\n highp float _1567 = globalParams.u_surfaceFinishScale;\n highp float _1568 = globalParams.u_surfaceFinishRoughness;\n highp float _1569 = globalParams.u_surfaceFinishColor;\n highp vec3 _1458;\n highp float _1459;\n highp float _1460;\n highp float _1461;\n highp vec3 _1462;\n do\n {\n if (_1567 <= 0.0)\n {\n _1458 = _1545;\n _1459 = _1546;\n _1460 = _1547;\n _1461 = _1548;\n _1462 = _1549;\n break;\n }\n highp vec3 _901 = v3 / vec3(_1567);\n highp vec3 _928 = floor(_901);\n highp vec3 _929 = _901 - _928;\n highp vec3 _934 = (_929 * _929) * (vec3(3.0) - (_929 * 2.0));\n ivec3 _935 = ivec3(_928);\n uint _974 = (((uint(_935.x) * 2376512323u) + (uint(_935.y) * 3625334849u)) + (uint(_935.z) * 3407524639u)) + 2654435769u;\n uint _977 = (_974 ^ (_974 >> uint(15))) * 739982445u;\n uint _980 = (_977 ^ (_977 >> uint(12))) * 695872825u;\n ivec3 _937 = _935 + ivec3(1, 0, 0);\n uint _999 = (((uint(_937.x) * 2376512323u) + (uint(_937.y) * 3625334849u)) + (uint(_937.z) * 3407524639u)) + 2654435769u;\n uint _1002 = (_999 ^ (_999 >> uint(15))) * 739982445u;\n uint _1005 = (_1002 ^ (_1002 >> uint(12))) * 695872825u;\n ivec3 _939 = _935 + ivec3(0, 1, 0);\n uint _1024 = (((uint(_939.x) * 2376512323u) + (uint(_939.y) * 3625334849u)) + (uint(_939.z) * 3407524639u)) + 2654435769u;\n uint _1027 = (_1024 ^ (_1024 >> uint(15))) * 739982445u;\n uint _1030 = (_1027 ^ (_1027 >> uint(12))) * 695872825u;\n ivec3 _941 = _935 + ivec3(1, 1, 0);\n uint _1049 = (((uint(_941.x) * 2376512323u) + (uint(_941.y) * 3625334849u)) + (uint(_941.z) * 3407524639u)) + 2654435769u;\n uint _1052 = (_1049 ^ (_1049 >> uint(15))) * 739982445u;\n uint _1055 = (_1052 ^ (_1052 >> uint(12))) * 695872825u;\n ivec3 _943 = _935 + ivec3(0, 0, 1);\n uint _1074 = (((uint(_943.x) * 2376512323u) + (uint(_943.y) * 3625334849u)) + (uint(_943.z) * 3407524639u)) + 2654435769u;\n uint _1077 = (_1074 ^ (_1074 >> uint(15))) * 739982445u;\n uint _1080 = (_1077 ^ (_1077 >> uint(12))) * 695872825u;\n ivec3 _945 = _935 + ivec3(1, 0, 1);\n uint _1099 = (((uint(_945.x) * 2376512323u) + (uint(_945.y) * 3625334849u)) + (uint(_945.z) * 3407524639u)) + 2654435769u;\n uint _1102 = (_1099 ^ (_1099 >> uint(15))) * 739982445u;\n uint _1105 = (_1102 ^ (_1102 >> uint(12))) * 695872825u;\n ivec3 _947 = _935 + ivec3(0, 1, 1);\n uint _1124 = (((uint(_947.x) * 2376512323u) + (uint(_947.y) * 3625334849u)) + (uint(_947.z) * 3407524639u)) + 2654435769u;\n uint _1127 = (_1124 ^ (_1124 >> uint(15))) * 739982445u;\n uint _1130 = (_1127 ^ (_1127 >> uint(12))) * 695872825u;\n ivec3 _949 = _935 + ivec3(1);\n uint _1149 = (((uint(_949.x) * 2376512323u) + (uint(_949.y) * 3625334849u)) + (uint(_949.z) * 3407524639u)) + 2654435769u;\n uint _1152 = (_1149 ^ (_1149 >> uint(15))) * 739982445u;\n uint _1155 = (_1152 ^ (_1152 >> uint(12))) * 695872825u;\n highp float _951 = _934.x;\n highp float _956 = _934.y;\n highp float _904 = (mix(mix(mix(float((_980 ^ (_980 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1005 ^ (_1005 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _951), mix(float((_1030 ^ (_1030 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1055 ^ (_1055 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _951), _956), mix(mix(float((_1080 ^ (_1080 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1105 ^ (_1105 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _951), mix(float((_1130 ^ (_1130 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1155 ^ (_1155 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _951), _956), _934.z) * 2.0) - 1.0;\n _1458 = clamp(_1545 * (1.0 + (_904 * _1569)), vec3(0.0), vec3(1.0));\n _1459 = _1546;\n _1460 = clamp(_1547 + (_904 * _1568), 0.0, 1.0);\n _1461 = _1548;\n _1462 = _1549;\n break;\n } while(false);\n if (globalParams.u_colorSource == 3)\n {\n entryPointParam_fragmentMain = vec4(_1458, globalParams.u_opacity);\n break;\n }\n highp vec4 _1168 = texture(SPIRV_Cross_Combinedu_materialNormalMapu_materialSampler, v4);\n highp vec3 _1173 = (_1168.xyz * 2.0) - vec3(1.0);\n highp vec2 _1175 = _1173.xy * globalParams.u_materialNormalScale;\n highp vec3 _1178 = normalize(normalize(v2));\n highp vec3 _1183 = normalize(v5.xyz - (_1178 * dot(_1178, v5.xyz)));\n highp vec3 _1195 = normalize(((_1183 * _1175.x) + ((cross(_1178, _1183) * v5.w) * _1175.y)) + (_1178 * _1173.z));\n highp vec3 _1199 = normalize(globalParams.u_viewPosition - v1);\n highp vec3 _1580 = _1458;\n highp float _1581 = _1459;\n highp float _1582 = _1460;\n highp float _1583 = _1461;\n highp vec3 _1584 = _1462;\n highp vec3 _1590 = globalParams.u_environmentSky;\n highp vec3 _1591 = globalParams.u_environmentGround;\n highp vec3 _1592 = globalParams.u_environmentUp;\n int _1200 = 0;\n highp vec3 _1201 = vec3(0.0);\n highp vec3 _1242;\n highp vec3 _1243;\n highp vec3 _1244;\n highp float _1245;\n for (;;)\n {\n if (!(_1200 < 4))\n {\n break;\n }\n if (_1200 < globalParams.u_lightCount)\n {\n do\n {\n bool _1250 = globalParams.u_lightPositions.data[_1200].w == 0.0;\n if (_1250)\n {\n _1243 = globalParams.u_lightPositions.data[_1200].xyz;\n }\n else\n {\n _1243 = globalParams.u_lightPositions.data[_1200].xyz - v1;\n }\n highp float _1259 = dot(_1243, _1243);\n if (_1250)\n {\n _1244 = normalize(globalParams.u_lightPositions.data[_1200].xyz);\n }\n else\n {\n _1244 = _1243 * inversesqrt(_1259);\n }\n if (_1250)\n {\n _1245 = 1.0;\n }\n else\n {\n _1245 = 1.0 / _1259;\n }\n highp float _1275 = dot(_1195, _1244);\n if (_1275 <= 0.0)\n {\n _1242 = vec3(0.0);\n break;\n }\n highp vec3 _1280 = _1199 + _1244;\n highp float _1281 = dot(_1280, _1280);\n if (_1281 <= 9.9999999600419720025001879548654e-13)\n {\n _1242 = vec3(0.0);\n break;\n }\n highp vec3 _1286 = _1280 * inversesqrt(_1281);\n highp float _1288 = max(dot(_1195, _1199), 0.0);\n highp float _1290 = max(dot(_1195, _1286), 0.0);\n highp float _1295 = max(_1582, 0.039999999105930328369140625);\n highp vec3 _1327 = mix(vec3(0.039999999105930328369140625), _1580, vec3(_1581));\n highp float _1330 = _1295 * _1295;\n highp float _1331 = _1330 * _1330;\n highp float _1335 = ((_1290 * _1290) * (_1331 - 1.0)) + 1.0;\n highp float _1346 = _1295 + 1.0;\n highp float _1348 = (_1346 * _1346) * 0.125;\n highp float _1355 = _1295 + 1.0;\n highp float _1357 = (_1355 * _1355) * 0.125;\n highp vec3 _1370 = _1327 + ((vec3(1.0) - _1327) * pow(clamp(1.0 - max(dot(_1286, _1199), 0.0), 0.0, 1.0), 5.0));\n _1242 = ((((clamp((vec3(1.0) - _1370) * (1.0 - _1581), vec3(0.0), vec3(1.0)) * _1580) * vec3(0.3183098733425140380859375)) + ((_1370 * ((_1331 / ((3.1415927410125732421875 * _1335) * _1335)) * ((_1288 / ((_1288 * (1.0 - _1348)) + _1348)) * (_1275 / ((_1275 * (1.0 - _1357)) + _1357))))) / vec3(((4.0 * _1288) * _1275) + 9.9999997473787516355514526367188e-05))) * (globalParams.u_lightColors.data[_1200] * _1245)) * _1275;\n break;\n } while(false);\n _1201 += _1242;\n }\n _1200++;\n continue;\n }\n highp vec3 _1406 = mix(vec3(0.039999999105930328369140625), _1580, vec3(_1581));\n highp vec3 _1417 = _1406 + ((max(vec3(1.0 - max(_1582, 0.039999999105930328369140625)), _1406) - _1406) * pow(clamp(1.0 - max(dot(_1195, _1199), 0.0), 0.0, 1.0), 5.0));\n highp vec3 _1240 = (((((clamp((vec3(1.0) - _1417) * (1.0 - _1581), vec3(0.0), vec3(1.0)) * mix(_1591, _1590, vec3((dot(_1195, _1592) * 0.5) + 0.5))) * _1580) + (mix(_1591, _1590, vec3((dot(reflect(-_1199, _1195), _1592) * 0.5) + 0.5)) * _1417)) * _1583) + _1201) + _1584;\n entryPointParam_fragmentMain = vec4(pow(_1240 / (_1240 + vec3(1.0)), vec3(0.454545438289642333984375)), globalParams.u_opacity);\n break;\n } while(false);\n}\n\n",
568
+ "sha256": "ed9d3c5e64640c5f6719150a847fe01e40d723d4ac032799403e879ebd8a070e"
569
+ }
570
+ }
571
+ }
572
+ }
573
+ }