@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,657 @@
1
+ #version 300 es
2
+ precision highp float;
3
+ precision highp int;
4
+
5
+ struct _Array_std140_vector_float_4_6
6
+ {
7
+ highp vec4 data[6];
8
+ };
9
+
10
+ struct _Array_std140_int3
11
+ {
12
+ int data[3];
13
+ };
14
+
15
+ struct _Array_std140_vector_float_2_72
16
+ {
17
+ highp vec2 data[72];
18
+ };
19
+
20
+ struct _Array_std140_vector_float_4_72
21
+ {
22
+ highp vec4 data[72];
23
+ };
24
+
25
+ struct _Array_std140_int72
26
+ {
27
+ int data[72];
28
+ };
29
+
30
+ struct _Array_std140_vector_float_4_4
31
+ {
32
+ highp vec4 data[4];
33
+ };
34
+
35
+ struct _Array_std140_vector_float_3_4
36
+ {
37
+ highp vec3 data[4];
38
+ };
39
+
40
+ layout(std140) uniform GlobalParams_std140
41
+ {
42
+ layout(row_major) highp mat4 u_mvpMatrix;
43
+ layout(row_major) highp mat4 u_modelViewMatrix;
44
+ highp vec3 u_deformScale;
45
+ highp vec3 u_deformRotationCenter;
46
+ int u_maskLutWidth;
47
+ int u_maskLutBase;
48
+ int u_transformLutWidth;
49
+ int u_transformLutStride;
50
+ int u_transformLutBase;
51
+ int u_transformMapWidth;
52
+ int u_transformMapBase;
53
+ _Array_std140_vector_float_4_6 u_clipPlanes;
54
+ int u_clipPlaneCount;
55
+ _Array_std140_int3 u_componentOrder;
56
+ int u_derivedType;
57
+ _Array_std140_vector_float_2_72 u_bandBounds;
58
+ int u_numBands;
59
+ _Array_std140_vector_float_4_72 u_lowerColors;
60
+ _Array_std140_vector_float_4_72 u_upperColors;
61
+ _Array_std140_int72 u_interpModes;
62
+ int u_interpSteps;
63
+ highp vec4 u_nanColor;
64
+ highp vec4 u_uncoveredColor;
65
+ highp vec4 u_errorColor;
66
+ int u_materialMapWidth;
67
+ int u_materialMapBase;
68
+ highp vec3 u_viewPosition;
69
+ highp vec3 u_environmentSky;
70
+ highp vec3 u_environmentGround;
71
+ highp vec3 u_environmentUp;
72
+ _Array_std140_vector_float_4_4 u_lightPositions;
73
+ _Array_std140_vector_float_3_4 u_lightColors;
74
+ int u_lightCount;
75
+ highp float u_surfaceFinishScale;
76
+ highp float u_surfaceFinishRoughness;
77
+ highp float u_surfaceFinishColor;
78
+ int u_colorSource;
79
+ highp float u_opacity;
80
+ highp vec4 u_capTint;
81
+ highp vec3 u_modelEyePosition;
82
+ } globalParams;
83
+
84
+ uniform highp sampler2D SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler;
85
+
86
+ in highp vec3 v0;
87
+ flat in int v7;
88
+ flat in int v6;
89
+ flat in int v4;
90
+ in highp vec3 v3;
91
+ in highp vec3 v5;
92
+ layout(location = 0) out highp vec4 entryPointParam_fragmentMain;
93
+ in highp vec3 v2;
94
+ in highp vec3 v1;
95
+
96
+ highp mat4 spvWorkaroundRowMajor(highp mat4 wrap) { return wrap; }
97
+ mediump mat4 spvWorkaroundRowMajorMP(mediump mat4 wrap) { return wrap; }
98
+
99
+ void main()
100
+ {
101
+ bool _1799 = false;
102
+ bool _1765 = false;
103
+ bool _1336 = false;
104
+ do
105
+ {
106
+ _1336 = false;
107
+ bool _1337;
108
+ do
109
+ {
110
+ int _1338 = 0;
111
+ for (;;)
112
+ {
113
+ if (!(_1338 < 6))
114
+ {
115
+ break;
116
+ }
117
+ if (_1338 >= globalParams.u_clipPlaneCount)
118
+ {
119
+ break;
120
+ }
121
+ if ((dot(globalParams.u_clipPlanes.data[_1338].xyz, v0) + globalParams.u_clipPlanes.data[_1338].w) < 0.0)
122
+ {
123
+ _1336 = true;
124
+ _1337 = false;
125
+ break;
126
+ }
127
+ _1338++;
128
+ continue;
129
+ }
130
+ if (_1336)
131
+ {
132
+ break;
133
+ }
134
+ _1336 = true;
135
+ _1337 = true;
136
+ break;
137
+ } while(false);
138
+ if (!_1337)
139
+ {
140
+ discard;
141
+ }
142
+ bool _1382 = gl_FrontFacing != (v7 != 0);
143
+ bool _1383;
144
+ if (!_1382)
145
+ {
146
+ _1383 = v6 == 0;
147
+ }
148
+ else
149
+ {
150
+ _1383 = false;
151
+ }
152
+ if (_1383)
153
+ {
154
+ discard;
155
+ }
156
+ highp vec3 _187 = v0 - globalParams.u_modelEyePosition;
157
+ int _1392 = -1;
158
+ highp float _1394 = 0.0;
159
+ int _1393 = 0;
160
+ bool _1395;
161
+ int _1396;
162
+ highp float _1397;
163
+ for (;;)
164
+ {
165
+ bool _1403_ladder_break = false;
166
+ do
167
+ {
168
+ if (!(_1393 < 6))
169
+ {
170
+ _1403_ladder_break = true;
171
+ break;
172
+ }
173
+ if (_1393 >= globalParams.u_clipPlaneCount)
174
+ {
175
+ _1403_ladder_break = true;
176
+ break;
177
+ }
178
+ highp float _1418 = dot(globalParams.u_clipPlanes.data[_1393].xyz, _187);
179
+ if (_1418 <= 0.0)
180
+ {
181
+ break;
182
+ }
183
+ highp float _1424 = (-(dot(globalParams.u_clipPlanes.data[_1393].xyz, globalParams.u_modelEyePosition) + globalParams.u_clipPlanes.data[_1393].w)) / _1418;
184
+ if (_1392 < 0)
185
+ {
186
+ _1395 = true;
187
+ }
188
+ else
189
+ {
190
+ _1395 = _1424 > _1394;
191
+ }
192
+ if (_1395)
193
+ {
194
+ _1396 = _1393;
195
+ _1397 = _1424;
196
+ }
197
+ else
198
+ {
199
+ _1396 = _1392;
200
+ _1397 = _1394;
201
+ }
202
+ _1392 = _1396;
203
+ _1394 = _1397;
204
+ break;
205
+ } while(false);
206
+ if (_1403_ladder_break)
207
+ {
208
+ break;
209
+ }
210
+ _1393++;
211
+ continue;
212
+ }
213
+ bool _7;
214
+ if (_1392 < 0)
215
+ {
216
+ bool _1454;
217
+ if (!_1382)
218
+ {
219
+ _1454 = v6 != 0;
220
+ }
221
+ else
222
+ {
223
+ _1454 = false;
224
+ }
225
+ _7 = _1454;
226
+ }
227
+ else
228
+ {
229
+ _7 = false;
230
+ }
231
+ if (_7)
232
+ {
233
+ discard;
234
+ }
235
+ highp vec4 _1468 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 0), 0);
236
+ highp vec4 _1472 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 1), 0);
237
+ highp vec4 _1476 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 2), 0);
238
+ highp vec3 _1479 = _1468.xyz;
239
+ highp float _1481 = _1468.w;
240
+ highp vec3 _1483 = _1472.xyz;
241
+ highp float _1485 = _1472.w;
242
+ highp float _1487 = _1476.x;
243
+ highp vec3 _2354 = _1479;
244
+ highp float _2355 = _1481;
245
+ highp float _2356 = _1485;
246
+ highp float _2357 = _1487;
247
+ highp vec3 _2358 = _1483;
248
+ highp vec3 _2382 = _1479;
249
+ highp float _2383 = _1481;
250
+ highp float _2384 = _1485;
251
+ highp float _2385 = _1487;
252
+ highp vec3 _2386 = _1483;
253
+ highp float _2404 = globalParams.u_surfaceFinishScale;
254
+ highp float _2405 = globalParams.u_surfaceFinishRoughness;
255
+ highp float _2406 = globalParams.u_surfaceFinishColor;
256
+ highp vec3 _2274;
257
+ highp float _2275;
258
+ highp float _2276;
259
+ highp float _2277;
260
+ highp vec3 _2278;
261
+ do
262
+ {
263
+ if (_2404 <= 0.0)
264
+ {
265
+ _2274 = _2382;
266
+ _2275 = _2383;
267
+ _2276 = _2384;
268
+ _2277 = _2385;
269
+ _2278 = _2386;
270
+ break;
271
+ }
272
+ highp vec3 _1502 = v3 / vec3(_2404);
273
+ highp vec3 _1529 = floor(_1502);
274
+ highp vec3 _1530 = _1502 - _1529;
275
+ highp vec3 _1535 = (_1530 * _1530) * (vec3(3.0) - (_1530 * 2.0));
276
+ ivec3 _1536 = ivec3(_1529);
277
+ uint _1575 = (((uint(_1536.x) * 2376512323u) + (uint(_1536.y) * 3625334849u)) + (uint(_1536.z) * 3407524639u)) + 2654435769u;
278
+ uint _1578 = (_1575 ^ (_1575 >> uint(15))) * 739982445u;
279
+ uint _1581 = (_1578 ^ (_1578 >> uint(12))) * 695872825u;
280
+ ivec3 _1538 = _1536 + ivec3(1, 0, 0);
281
+ uint _1600 = (((uint(_1538.x) * 2376512323u) + (uint(_1538.y) * 3625334849u)) + (uint(_1538.z) * 3407524639u)) + 2654435769u;
282
+ uint _1603 = (_1600 ^ (_1600 >> uint(15))) * 739982445u;
283
+ uint _1606 = (_1603 ^ (_1603 >> uint(12))) * 695872825u;
284
+ ivec3 _1540 = _1536 + ivec3(0, 1, 0);
285
+ uint _1625 = (((uint(_1540.x) * 2376512323u) + (uint(_1540.y) * 3625334849u)) + (uint(_1540.z) * 3407524639u)) + 2654435769u;
286
+ uint _1628 = (_1625 ^ (_1625 >> uint(15))) * 739982445u;
287
+ uint _1631 = (_1628 ^ (_1628 >> uint(12))) * 695872825u;
288
+ ivec3 _1542 = _1536 + ivec3(1, 1, 0);
289
+ uint _1650 = (((uint(_1542.x) * 2376512323u) + (uint(_1542.y) * 3625334849u)) + (uint(_1542.z) * 3407524639u)) + 2654435769u;
290
+ uint _1653 = (_1650 ^ (_1650 >> uint(15))) * 739982445u;
291
+ uint _1656 = (_1653 ^ (_1653 >> uint(12))) * 695872825u;
292
+ ivec3 _1544 = _1536 + ivec3(0, 0, 1);
293
+ uint _1675 = (((uint(_1544.x) * 2376512323u) + (uint(_1544.y) * 3625334849u)) + (uint(_1544.z) * 3407524639u)) + 2654435769u;
294
+ uint _1678 = (_1675 ^ (_1675 >> uint(15))) * 739982445u;
295
+ uint _1681 = (_1678 ^ (_1678 >> uint(12))) * 695872825u;
296
+ ivec3 _1546 = _1536 + ivec3(1, 0, 1);
297
+ uint _1700 = (((uint(_1546.x) * 2376512323u) + (uint(_1546.y) * 3625334849u)) + (uint(_1546.z) * 3407524639u)) + 2654435769u;
298
+ uint _1703 = (_1700 ^ (_1700 >> uint(15))) * 739982445u;
299
+ uint _1706 = (_1703 ^ (_1703 >> uint(12))) * 695872825u;
300
+ ivec3 _1548 = _1536 + ivec3(0, 1, 1);
301
+ uint _1725 = (((uint(_1548.x) * 2376512323u) + (uint(_1548.y) * 3625334849u)) + (uint(_1548.z) * 3407524639u)) + 2654435769u;
302
+ uint _1728 = (_1725 ^ (_1725 >> uint(15))) * 739982445u;
303
+ uint _1731 = (_1728 ^ (_1728 >> uint(12))) * 695872825u;
304
+ ivec3 _1550 = _1536 + ivec3(1);
305
+ uint _1750 = (((uint(_1550.x) * 2376512323u) + (uint(_1550.y) * 3625334849u)) + (uint(_1550.z) * 3407524639u)) + 2654435769u;
306
+ uint _1753 = (_1750 ^ (_1750 >> uint(15))) * 739982445u;
307
+ uint _1756 = (_1753 ^ (_1753 >> uint(12))) * 695872825u;
308
+ highp float _1552 = _1535.x;
309
+ highp float _1557 = _1535.y;
310
+ highp float _1505 = (mix(mix(mix(float((_1581 ^ (_1581 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1606 ^ (_1606 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1552), mix(float((_1631 ^ (_1631 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1656 ^ (_1656 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1552), _1557), mix(mix(float((_1681 ^ (_1681 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1706 ^ (_1706 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1552), mix(float((_1731 ^ (_1731 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1756 ^ (_1756 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1552), _1557), _1535.z) * 2.0) - 1.0;
311
+ _2274 = clamp(_2382 * (1.0 + (_1505 * _2406)), vec3(0.0), vec3(1.0));
312
+ _2275 = _2383;
313
+ _2276 = clamp(_2384 + (_1505 * _2405), 0.0, 1.0);
314
+ _2277 = _2385;
315
+ _2278 = _2386;
316
+ break;
317
+ } while(false);
318
+ _2354 = _2274;
319
+ _2355 = _2275;
320
+ _2356 = _2276;
321
+ _2357 = _2277;
322
+ _2358 = _2278;
323
+ _1765 = false;
324
+ highp float _1766;
325
+ do
326
+ {
327
+ highp vec3 _1767 = v5;
328
+ switch (globalParams.u_derivedType)
329
+ {
330
+ case 0:
331
+ {
332
+ _1765 = true;
333
+ _1766 = _1767[globalParams.u_componentOrder.data[0]];
334
+ break;
335
+ }
336
+ case 1:
337
+ {
338
+ _1765 = true;
339
+ _1766 = _1767[globalParams.u_componentOrder.data[1]];
340
+ break;
341
+ }
342
+ case 2:
343
+ {
344
+ _1765 = true;
345
+ _1766 = _1767[globalParams.u_componentOrder.data[2]];
346
+ break;
347
+ }
348
+ case 3:
349
+ {
350
+ _1765 = true;
351
+ _1766 = length(v5);
352
+ break;
353
+ }
354
+ default:
355
+ {
356
+ _1765 = true;
357
+ _1766 = uintBitsToFloat(0x7fc00000u /* nan */);
358
+ break;
359
+ }
360
+ }
361
+ if (_1765)
362
+ {
363
+ break;
364
+ }
365
+ break;
366
+ } while(false);
367
+ _1799 = false;
368
+ highp vec4 _1800;
369
+ do
370
+ {
371
+ if (_1766 != _1766)
372
+ {
373
+ _1799 = true;
374
+ _1800 = globalParams.u_nanColor;
375
+ break;
376
+ }
377
+ int _1801 = 0;
378
+ bool _1802;
379
+ highp vec4 _1860;
380
+ bool _1861;
381
+ highp float _1883;
382
+ bool _1884;
383
+ for (;;)
384
+ {
385
+ if (!(_1801 < globalParams.u_numBands))
386
+ {
387
+ break;
388
+ }
389
+ if (_1766 >= globalParams.u_bandBounds.data[_1801].x)
390
+ {
391
+ _1802 = _1766 < globalParams.u_bandBounds.data[_1801].y;
392
+ }
393
+ else
394
+ {
395
+ _1802 = false;
396
+ }
397
+ if (_1802)
398
+ {
399
+ do
400
+ {
401
+ if (all(equal(globalParams.u_lowerColors.data[_1801], globalParams.u_upperColors.data[_1801])))
402
+ {
403
+ _1860 = globalParams.u_lowerColors.data[_1801];
404
+ break;
405
+ }
406
+ if (globalParams.u_interpModes.data[_1801] == 1)
407
+ {
408
+ _1861 = globalParams.u_bandBounds.data[_1801].x <= 0.0;
409
+ }
410
+ else
411
+ {
412
+ _1861 = false;
413
+ }
414
+ if (_1861)
415
+ {
416
+ _1860 = globalParams.u_errorColor;
417
+ break;
418
+ }
419
+ if (globalParams.u_interpModes.data[_1801] == 1)
420
+ {
421
+ if (0.0 < globalParams.u_bandBounds.data[_1801].x)
422
+ {
423
+ _1884 = globalParams.u_bandBounds.data[_1801].x < globalParams.u_bandBounds.data[_1801].y;
424
+ }
425
+ else
426
+ {
427
+ _1884 = false;
428
+ }
429
+ if (_1884)
430
+ {
431
+ _1884 = _1766 > 0.0;
432
+ }
433
+ else
434
+ {
435
+ _1884 = false;
436
+ }
437
+ if (_1884)
438
+ {
439
+ _1883 = log(_1766 / globalParams.u_bandBounds.data[_1801].x) / log(globalParams.u_bandBounds.data[_1801].y / globalParams.u_bandBounds.data[_1801].x);
440
+ }
441
+ else
442
+ {
443
+ _1883 = 0.0;
444
+ }
445
+ }
446
+ else
447
+ {
448
+ highp float _1891 = globalParams.u_bandBounds.data[_1801].y - globalParams.u_bandBounds.data[_1801].x;
449
+ if (_1891 > 0.0)
450
+ {
451
+ _1883 = (_1766 - globalParams.u_bandBounds.data[_1801].x) / _1891;
452
+ }
453
+ else
454
+ {
455
+ _1883 = 0.0;
456
+ }
457
+ }
458
+ if (_1883 != _1883)
459
+ {
460
+ _1883 = 0.0;
461
+ }
462
+ highp float _1925 = _1883;
463
+ highp float _1926 = clamp(_1925, 0.0, 1.0);
464
+ if (globalParams.u_interpSteps > 1)
465
+ {
466
+ highp float _1930 = float(globalParams.u_interpSteps);
467
+ highp float _1933 = _1930 - 1.0;
468
+ _1883 = min(floor(_1926 * _1930), _1933) / _1933;
469
+ }
470
+ else
471
+ {
472
+ _1883 = _1926;
473
+ }
474
+ _1860 = mix(globalParams.u_lowerColors.data[_1801], globalParams.u_upperColors.data[_1801], vec4(_1883));
475
+ break;
476
+ } while(false);
477
+ _1799 = true;
478
+ _1800 = _1860;
479
+ break;
480
+ }
481
+ _1801++;
482
+ continue;
483
+ }
484
+ if (_1799)
485
+ {
486
+ break;
487
+ }
488
+ _1799 = true;
489
+ _1800 = globalParams.u_uncoveredColor;
490
+ break;
491
+ } while(false);
492
+ if (globalParams.u_colorSource == 1)
493
+ {
494
+ highp vec3 _1939;
495
+ do
496
+ {
497
+ bool _1954;
498
+ if (!_1382)
499
+ {
500
+ _1954 = v6 != 0;
501
+ }
502
+ else
503
+ {
504
+ _1954 = false;
505
+ }
506
+ if (_1954)
507
+ {
508
+ _1939 = (_1800.xyz * (1.0 - globalParams.u_capTint.w)) + (globalParams.u_capTint.xyz * globalParams.u_capTint.w);
509
+ break;
510
+ }
511
+ _1939 = _1800.xyz;
512
+ break;
513
+ } while(false);
514
+ entryPointParam_fragmentMain = vec4(_1939, _1800.w * globalParams.u_opacity);
515
+ break;
516
+ }
517
+ if (globalParams.u_colorSource == 2)
518
+ {
519
+ _2354 = mix(_1800.xyz * vec3(0.077399380505084991455078125), pow((_1800.xyz + vec3(0.054999999701976776123046875)) * vec3(0.947867333889007568359375), vec3(2.400000095367431640625)), step(vec3(0.040449999272823333740234375), _1800.xyz));
520
+ }
521
+ highp vec3 _1975;
522
+ do
523
+ {
524
+ bool _1990;
525
+ if (!_1382)
526
+ {
527
+ _1990 = v6 != 0;
528
+ }
529
+ else
530
+ {
531
+ _1990 = false;
532
+ }
533
+ if (_1990)
534
+ {
535
+ _1975 = (_2354 * (1.0 - globalParams.u_capTint.w)) + (globalParams.u_capTint.xyz * globalParams.u_capTint.w);
536
+ break;
537
+ }
538
+ _1975 = _2354;
539
+ break;
540
+ } while(false);
541
+ _2354 = _1975;
542
+ if (globalParams.u_colorSource == 3)
543
+ {
544
+ entryPointParam_fragmentMain = vec4(_2354, globalParams.u_opacity);
545
+ break;
546
+ }
547
+ bool _1999;
548
+ if (!_1382)
549
+ {
550
+ _1999 = v6 != 0;
551
+ }
552
+ else
553
+ {
554
+ _1999 = false;
555
+ }
556
+ highp vec3 N;
557
+ if (_1999)
558
+ {
559
+ N = normalize((-globalParams.u_clipPlanes.data[max(_1392, 0)].xyz) * mat3(spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[0].xyz, spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[1].xyz, spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[2].xyz));
560
+ }
561
+ else
562
+ {
563
+ N = normalize(v2);
564
+ }
565
+ highp vec3 _2015 = normalize(globalParams.u_viewPosition - v1);
566
+ highp vec3 _2417 = _2354;
567
+ highp float _2418 = _2355;
568
+ highp float _2419 = _2356;
569
+ highp float _2420 = _2357;
570
+ highp vec3 _2421 = _2358;
571
+ highp vec3 _2427 = globalParams.u_environmentSky;
572
+ highp vec3 _2428 = globalParams.u_environmentGround;
573
+ highp vec3 _2429 = globalParams.u_environmentUp;
574
+ int _2016 = 0;
575
+ highp vec3 _2017 = vec3(0.0);
576
+ highp vec3 _2058;
577
+ highp vec3 _2059;
578
+ highp vec3 _2060;
579
+ highp float _2061;
580
+ for (;;)
581
+ {
582
+ if (!(_2016 < 4))
583
+ {
584
+ break;
585
+ }
586
+ if (_2016 < globalParams.u_lightCount)
587
+ {
588
+ do
589
+ {
590
+ bool _2066 = globalParams.u_lightPositions.data[_2016].w == 0.0;
591
+ if (_2066)
592
+ {
593
+ _2059 = globalParams.u_lightPositions.data[_2016].xyz;
594
+ }
595
+ else
596
+ {
597
+ _2059 = globalParams.u_lightPositions.data[_2016].xyz - v1;
598
+ }
599
+ highp float _2075 = dot(_2059, _2059);
600
+ if (_2066)
601
+ {
602
+ _2060 = normalize(globalParams.u_lightPositions.data[_2016].xyz);
603
+ }
604
+ else
605
+ {
606
+ _2060 = _2059 * inversesqrt(_2075);
607
+ }
608
+ if (_2066)
609
+ {
610
+ _2061 = 1.0;
611
+ }
612
+ else
613
+ {
614
+ _2061 = 1.0 / _2075;
615
+ }
616
+ highp float _2091 = dot(N, _2060);
617
+ if (_2091 <= 0.0)
618
+ {
619
+ _2058 = vec3(0.0);
620
+ break;
621
+ }
622
+ highp vec3 _2096 = _2015 + _2060;
623
+ highp float _2097 = dot(_2096, _2096);
624
+ if (_2097 <= 9.9999999600419720025001879548654e-13)
625
+ {
626
+ _2058 = vec3(0.0);
627
+ break;
628
+ }
629
+ highp vec3 _2102 = _2096 * inversesqrt(_2097);
630
+ highp float _2104 = max(dot(N, _2015), 0.0);
631
+ highp float _2106 = max(dot(N, _2102), 0.0);
632
+ highp float _2111 = max(_2419, 0.039999999105930328369140625);
633
+ highp vec3 _2143 = mix(vec3(0.039999999105930328369140625), _2417, vec3(_2418));
634
+ highp float _2146 = _2111 * _2111;
635
+ highp float _2147 = _2146 * _2146;
636
+ highp float _2151 = ((_2106 * _2106) * (_2147 - 1.0)) + 1.0;
637
+ highp float _2162 = _2111 + 1.0;
638
+ highp float _2164 = (_2162 * _2162) * 0.125;
639
+ highp float _2171 = _2111 + 1.0;
640
+ highp float _2173 = (_2171 * _2171) * 0.125;
641
+ highp vec3 _2186 = _2143 + ((vec3(1.0) - _2143) * pow(clamp(1.0 - max(dot(_2102, _2015), 0.0), 0.0, 1.0), 5.0));
642
+ _2058 = ((((clamp((vec3(1.0) - _2186) * (1.0 - _2418), vec3(0.0), vec3(1.0)) * _2417) * vec3(0.3183098733425140380859375)) + ((_2186 * ((_2147 / ((3.1415927410125732421875 * _2151) * _2151)) * ((_2104 / ((_2104 * (1.0 - _2164)) + _2164)) * (_2091 / ((_2091 * (1.0 - _2173)) + _2173))))) / vec3(((4.0 * _2104) * _2091) + 9.9999997473787516355514526367188e-05))) * (globalParams.u_lightColors.data[_2016] * _2061)) * _2091;
643
+ break;
644
+ } while(false);
645
+ _2017 += _2058;
646
+ }
647
+ _2016++;
648
+ continue;
649
+ }
650
+ highp vec3 _2222 = mix(vec3(0.039999999105930328369140625), _2417, vec3(_2418));
651
+ highp vec3 _2233 = _2222 + ((max(vec3(1.0 - max(_2419, 0.039999999105930328369140625)), _2222) - _2222) * pow(clamp(1.0 - max(dot(N, _2015), 0.0), 0.0, 1.0), 5.0));
652
+ highp vec3 _2056 = (((((clamp((vec3(1.0) - _2233) * (1.0 - _2418), vec3(0.0), vec3(1.0)) * mix(_2428, _2427, vec3((dot(N, _2429) * 0.5) + 0.5))) * _2417) + (mix(_2428, _2427, vec3((dot(reflect(-_2015, N), _2429) * 0.5) + 0.5)) * _2233)) * _2420) + _2017) + _2421;
653
+ entryPointParam_fragmentMain = vec4(pow(_2056 / (_2056 + vec3(1.0)), vec3(0.454545438289642333984375)), globalParams.u_opacity);
654
+ break;
655
+ } while(false);
656
+ }
657
+