@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,676 @@
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_vector_float_2_72
11
+ {
12
+ highp vec2 data[72];
13
+ };
14
+
15
+ struct _Array_std140_vector_float_4_72
16
+ {
17
+ highp vec4 data[72];
18
+ };
19
+
20
+ struct _Array_std140_int72
21
+ {
22
+ int data[72];
23
+ };
24
+
25
+ struct _Array_std140_vector_float_4_4
26
+ {
27
+ highp vec4 data[4];
28
+ };
29
+
30
+ struct _Array_std140_vector_float_3_4
31
+ {
32
+ highp vec3 data[4];
33
+ };
34
+
35
+ layout(std140) uniform GlobalParams_std140
36
+ {
37
+ layout(row_major) highp mat4 u_mvpMatrix;
38
+ layout(row_major) highp mat4 u_modelViewMatrix;
39
+ highp vec3 u_deformScale;
40
+ highp vec3 u_deformRotationCenter;
41
+ int u_maskLutWidth;
42
+ int u_transformLutWidth;
43
+ int u_transformLutStride;
44
+ _Array_std140_vector_float_4_6 u_clipPlanes;
45
+ int u_clipPlaneCount;
46
+ int u_derivedType;
47
+ highp float u_scale;
48
+ highp float u_offset;
49
+ _Array_std140_vector_float_2_72 u_bandBounds;
50
+ int u_numBands;
51
+ _Array_std140_vector_float_4_72 u_lowerColors;
52
+ _Array_std140_vector_float_4_72 u_upperColors;
53
+ _Array_std140_int72 u_interpModes;
54
+ int u_interpSteps;
55
+ highp vec4 u_nanColor;
56
+ highp vec4 u_uncoveredColor;
57
+ highp vec4 u_errorColor;
58
+ highp vec3 u_viewPosition;
59
+ highp vec3 u_environmentSky;
60
+ highp vec3 u_environmentGround;
61
+ highp vec3 u_environmentUp;
62
+ _Array_std140_vector_float_4_4 u_lightPositions;
63
+ _Array_std140_vector_float_3_4 u_lightColors;
64
+ int u_lightCount;
65
+ highp float u_surfaceFinishScale;
66
+ highp float u_surfaceFinishRoughness;
67
+ highp float u_surfaceFinishColor;
68
+ int u_colorSource;
69
+ highp float u_opacity;
70
+ highp vec4 u_capTint;
71
+ highp vec3 u_modelEyePosition;
72
+ } globalParams;
73
+
74
+ uniform highp sampler2D SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler;
75
+
76
+ in highp vec3 v0;
77
+ flat in int v7;
78
+ flat in int v6;
79
+ flat in int v4;
80
+ in highp vec3 v3;
81
+ in highp float v5;
82
+ layout(location = 0) out highp vec4 entryPointParam_fragmentMain;
83
+ in highp vec3 v2;
84
+ in highp vec3 v1;
85
+
86
+ highp mat4 spvWorkaroundRowMajor(highp mat4 wrap) { return wrap; }
87
+ mediump mat4 spvWorkaroundRowMajorMP(mediump mat4 wrap) { return wrap; }
88
+
89
+ void main()
90
+ {
91
+ bool _1814 = false;
92
+ bool _1780 = false;
93
+ bool _1351 = false;
94
+ do
95
+ {
96
+ _1351 = false;
97
+ bool _1352;
98
+ do
99
+ {
100
+ int _1353 = 0;
101
+ for (;;)
102
+ {
103
+ if (!(_1353 < 6))
104
+ {
105
+ break;
106
+ }
107
+ if (_1353 >= globalParams.u_clipPlaneCount)
108
+ {
109
+ break;
110
+ }
111
+ if ((dot(globalParams.u_clipPlanes.data[_1353].xyz, v0) + globalParams.u_clipPlanes.data[_1353].w) < 0.0)
112
+ {
113
+ _1351 = true;
114
+ _1352 = false;
115
+ break;
116
+ }
117
+ _1353++;
118
+ continue;
119
+ }
120
+ if (_1351)
121
+ {
122
+ break;
123
+ }
124
+ _1351 = true;
125
+ _1352 = true;
126
+ break;
127
+ } while(false);
128
+ if (!_1352)
129
+ {
130
+ discard;
131
+ }
132
+ bool _1397 = gl_FrontFacing != (v7 != 0);
133
+ bool _1398;
134
+ if (!_1397)
135
+ {
136
+ _1398 = v6 == 0;
137
+ }
138
+ else
139
+ {
140
+ _1398 = false;
141
+ }
142
+ if (_1398)
143
+ {
144
+ discard;
145
+ }
146
+ highp vec3 _184 = v0 - globalParams.u_modelEyePosition;
147
+ int _1407 = -1;
148
+ highp float _1409 = 0.0;
149
+ int _1408 = 0;
150
+ bool _1410;
151
+ int _1411;
152
+ highp float _1412;
153
+ for (;;)
154
+ {
155
+ bool _1418_ladder_break = false;
156
+ do
157
+ {
158
+ if (!(_1408 < 6))
159
+ {
160
+ _1418_ladder_break = true;
161
+ break;
162
+ }
163
+ if (_1408 >= globalParams.u_clipPlaneCount)
164
+ {
165
+ _1418_ladder_break = true;
166
+ break;
167
+ }
168
+ highp float _1433 = dot(globalParams.u_clipPlanes.data[_1408].xyz, _184);
169
+ if (_1433 <= 0.0)
170
+ {
171
+ break;
172
+ }
173
+ highp float _1439 = (-(dot(globalParams.u_clipPlanes.data[_1408].xyz, globalParams.u_modelEyePosition) + globalParams.u_clipPlanes.data[_1408].w)) / _1433;
174
+ if (_1407 < 0)
175
+ {
176
+ _1410 = true;
177
+ }
178
+ else
179
+ {
180
+ _1410 = _1439 > _1409;
181
+ }
182
+ if (_1410)
183
+ {
184
+ _1411 = _1408;
185
+ _1412 = _1439;
186
+ }
187
+ else
188
+ {
189
+ _1411 = _1407;
190
+ _1412 = _1409;
191
+ }
192
+ _1407 = _1411;
193
+ _1409 = _1412;
194
+ break;
195
+ } while(false);
196
+ if (_1418_ladder_break)
197
+ {
198
+ break;
199
+ }
200
+ _1408++;
201
+ continue;
202
+ }
203
+ bool _7;
204
+ if (_1407 < 0)
205
+ {
206
+ bool _1469;
207
+ if (!_1397)
208
+ {
209
+ _1469 = v6 != 0;
210
+ }
211
+ else
212
+ {
213
+ _1469 = false;
214
+ }
215
+ _7 = _1469;
216
+ }
217
+ else
218
+ {
219
+ _7 = false;
220
+ }
221
+ if (_7)
222
+ {
223
+ discard;
224
+ }
225
+ highp vec4 _1483 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 0), 0);
226
+ highp vec4 _1487 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 1), 0);
227
+ highp vec4 _1491 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 2), 0);
228
+ highp vec3 _1494 = _1483.xyz;
229
+ highp float _1496 = _1483.w;
230
+ highp vec3 _1498 = _1487.xyz;
231
+ highp float _1500 = _1487.w;
232
+ highp float _1502 = _1491.x;
233
+ highp vec3 _2369 = _1494;
234
+ highp float _2370 = _1496;
235
+ highp float _2371 = _1500;
236
+ highp float _2372 = _1502;
237
+ highp vec3 _2373 = _1498;
238
+ highp vec3 _2397 = _1494;
239
+ highp float _2398 = _1496;
240
+ highp float _2399 = _1500;
241
+ highp float _2400 = _1502;
242
+ highp vec3 _2401 = _1498;
243
+ highp float _2419 = globalParams.u_surfaceFinishScale;
244
+ highp float _2420 = globalParams.u_surfaceFinishRoughness;
245
+ highp float _2421 = globalParams.u_surfaceFinishColor;
246
+ highp vec3 _2289;
247
+ highp float _2290;
248
+ highp float _2291;
249
+ highp float _2292;
250
+ highp vec3 _2293;
251
+ do
252
+ {
253
+ if (_2419 <= 0.0)
254
+ {
255
+ _2289 = _2397;
256
+ _2290 = _2398;
257
+ _2291 = _2399;
258
+ _2292 = _2400;
259
+ _2293 = _2401;
260
+ break;
261
+ }
262
+ highp vec3 _1517 = v3 / vec3(_2419);
263
+ highp vec3 _1544 = floor(_1517);
264
+ highp vec3 _1545 = _1517 - _1544;
265
+ highp vec3 _1550 = (_1545 * _1545) * (vec3(3.0) - (_1545 * 2.0));
266
+ ivec3 _1551 = ivec3(_1544);
267
+ uint _1590 = (((uint(_1551.x) * 2376512323u) + (uint(_1551.y) * 3625334849u)) + (uint(_1551.z) * 3407524639u)) + 2654435769u;
268
+ uint _1593 = (_1590 ^ (_1590 >> uint(15))) * 739982445u;
269
+ uint _1596 = (_1593 ^ (_1593 >> uint(12))) * 695872825u;
270
+ ivec3 _1553 = _1551 + ivec3(1, 0, 0);
271
+ uint _1615 = (((uint(_1553.x) * 2376512323u) + (uint(_1553.y) * 3625334849u)) + (uint(_1553.z) * 3407524639u)) + 2654435769u;
272
+ uint _1618 = (_1615 ^ (_1615 >> uint(15))) * 739982445u;
273
+ uint _1621 = (_1618 ^ (_1618 >> uint(12))) * 695872825u;
274
+ ivec3 _1555 = _1551 + ivec3(0, 1, 0);
275
+ uint _1640 = (((uint(_1555.x) * 2376512323u) + (uint(_1555.y) * 3625334849u)) + (uint(_1555.z) * 3407524639u)) + 2654435769u;
276
+ uint _1643 = (_1640 ^ (_1640 >> uint(15))) * 739982445u;
277
+ uint _1646 = (_1643 ^ (_1643 >> uint(12))) * 695872825u;
278
+ ivec3 _1557 = _1551 + ivec3(1, 1, 0);
279
+ uint _1665 = (((uint(_1557.x) * 2376512323u) + (uint(_1557.y) * 3625334849u)) + (uint(_1557.z) * 3407524639u)) + 2654435769u;
280
+ uint _1668 = (_1665 ^ (_1665 >> uint(15))) * 739982445u;
281
+ uint _1671 = (_1668 ^ (_1668 >> uint(12))) * 695872825u;
282
+ ivec3 _1559 = _1551 + ivec3(0, 0, 1);
283
+ uint _1690 = (((uint(_1559.x) * 2376512323u) + (uint(_1559.y) * 3625334849u)) + (uint(_1559.z) * 3407524639u)) + 2654435769u;
284
+ uint _1693 = (_1690 ^ (_1690 >> uint(15))) * 739982445u;
285
+ uint _1696 = (_1693 ^ (_1693 >> uint(12))) * 695872825u;
286
+ ivec3 _1561 = _1551 + ivec3(1, 0, 1);
287
+ uint _1715 = (((uint(_1561.x) * 2376512323u) + (uint(_1561.y) * 3625334849u)) + (uint(_1561.z) * 3407524639u)) + 2654435769u;
288
+ uint _1718 = (_1715 ^ (_1715 >> uint(15))) * 739982445u;
289
+ uint _1721 = (_1718 ^ (_1718 >> uint(12))) * 695872825u;
290
+ ivec3 _1563 = _1551 + ivec3(0, 1, 1);
291
+ uint _1740 = (((uint(_1563.x) * 2376512323u) + (uint(_1563.y) * 3625334849u)) + (uint(_1563.z) * 3407524639u)) + 2654435769u;
292
+ uint _1743 = (_1740 ^ (_1740 >> uint(15))) * 739982445u;
293
+ uint _1746 = (_1743 ^ (_1743 >> uint(12))) * 695872825u;
294
+ ivec3 _1565 = _1551 + ivec3(1);
295
+ uint _1765 = (((uint(_1565.x) * 2376512323u) + (uint(_1565.y) * 3625334849u)) + (uint(_1565.z) * 3407524639u)) + 2654435769u;
296
+ uint _1768 = (_1765 ^ (_1765 >> uint(15))) * 739982445u;
297
+ uint _1771 = (_1768 ^ (_1768 >> uint(12))) * 695872825u;
298
+ highp float _1567 = _1550.x;
299
+ highp float _1572 = _1550.y;
300
+ highp float _1520 = (mix(mix(mix(float((_1596 ^ (_1596 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1621 ^ (_1621 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1567), mix(float((_1646 ^ (_1646 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1671 ^ (_1671 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1567), _1572), mix(mix(float((_1696 ^ (_1696 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1721 ^ (_1721 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1567), mix(float((_1746 ^ (_1746 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1771 ^ (_1771 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1567), _1572), _1550.z) * 2.0) - 1.0;
301
+ _2289 = clamp(_2397 * (1.0 + (_1520 * _2421)), vec3(0.0), vec3(1.0));
302
+ _2290 = _2398;
303
+ _2291 = clamp(_2399 + (_1520 * _2420), 0.0, 1.0);
304
+ _2292 = _2400;
305
+ _2293 = _2401;
306
+ break;
307
+ } while(false);
308
+ _2369 = _2289;
309
+ _2370 = _2290;
310
+ _2371 = _2291;
311
+ _2372 = _2292;
312
+ _2373 = _2293;
313
+ _1780 = false;
314
+ highp float _1781;
315
+ do
316
+ {
317
+ switch (globalParams.u_derivedType)
318
+ {
319
+ case 0:
320
+ {
321
+ _1780 = true;
322
+ _1781 = v5;
323
+ break;
324
+ }
325
+ case 1:
326
+ {
327
+ _1780 = true;
328
+ _1781 = abs(v5);
329
+ break;
330
+ }
331
+ case 2:
332
+ {
333
+ _1780 = true;
334
+ _1781 = (globalParams.u_scale * v5) + globalParams.u_offset;
335
+ break;
336
+ }
337
+ case 3:
338
+ {
339
+ _1780 = true;
340
+ _1781 = v5 + 273.149993896484375;
341
+ break;
342
+ }
343
+ case 4:
344
+ {
345
+ _1780 = true;
346
+ _1781 = v5 - 273.149993896484375;
347
+ break;
348
+ }
349
+ case 5:
350
+ {
351
+ _1780 = true;
352
+ _1781 = (v5 * 0.5555555820465087890625) + 255.3722381591796875;
353
+ break;
354
+ }
355
+ case 6:
356
+ {
357
+ _1780 = true;
358
+ _1781 = (v5 * 1.7999999523162841796875) - 459.670013427734375;
359
+ break;
360
+ }
361
+ case 7:
362
+ {
363
+ _1780 = true;
364
+ _1781 = (v5 * 0.5555555820465087890625) - 17.77777862548828125;
365
+ break;
366
+ }
367
+ case 8:
368
+ {
369
+ _1780 = true;
370
+ _1781 = (v5 * 1.7999999523162841796875) + 32.0;
371
+ break;
372
+ }
373
+ default:
374
+ {
375
+ _1780 = true;
376
+ _1781 = uintBitsToFloat(0x7fc00000u /* nan */);
377
+ break;
378
+ }
379
+ }
380
+ if (_1780)
381
+ {
382
+ break;
383
+ }
384
+ break;
385
+ } while(false);
386
+ _1814 = false;
387
+ highp vec4 _1815;
388
+ do
389
+ {
390
+ if (_1781 != _1781)
391
+ {
392
+ _1814 = true;
393
+ _1815 = globalParams.u_nanColor;
394
+ break;
395
+ }
396
+ int _1816 = 0;
397
+ bool _1817;
398
+ highp vec4 _1875;
399
+ bool _1876;
400
+ highp float _1898;
401
+ bool _1899;
402
+ for (;;)
403
+ {
404
+ if (!(_1816 < globalParams.u_numBands))
405
+ {
406
+ break;
407
+ }
408
+ if (_1781 >= globalParams.u_bandBounds.data[_1816].x)
409
+ {
410
+ _1817 = _1781 < globalParams.u_bandBounds.data[_1816].y;
411
+ }
412
+ else
413
+ {
414
+ _1817 = false;
415
+ }
416
+ if (_1817)
417
+ {
418
+ do
419
+ {
420
+ if (all(equal(globalParams.u_lowerColors.data[_1816], globalParams.u_upperColors.data[_1816])))
421
+ {
422
+ _1875 = globalParams.u_lowerColors.data[_1816];
423
+ break;
424
+ }
425
+ if (globalParams.u_interpModes.data[_1816] == 1)
426
+ {
427
+ _1876 = globalParams.u_bandBounds.data[_1816].x <= 0.0;
428
+ }
429
+ else
430
+ {
431
+ _1876 = false;
432
+ }
433
+ if (_1876)
434
+ {
435
+ _1875 = globalParams.u_errorColor;
436
+ break;
437
+ }
438
+ if (globalParams.u_interpModes.data[_1816] == 1)
439
+ {
440
+ if (0.0 < globalParams.u_bandBounds.data[_1816].x)
441
+ {
442
+ _1899 = globalParams.u_bandBounds.data[_1816].x < globalParams.u_bandBounds.data[_1816].y;
443
+ }
444
+ else
445
+ {
446
+ _1899 = false;
447
+ }
448
+ if (_1899)
449
+ {
450
+ _1899 = _1781 > 0.0;
451
+ }
452
+ else
453
+ {
454
+ _1899 = false;
455
+ }
456
+ if (_1899)
457
+ {
458
+ _1898 = log(_1781 / globalParams.u_bandBounds.data[_1816].x) / log(globalParams.u_bandBounds.data[_1816].y / globalParams.u_bandBounds.data[_1816].x);
459
+ }
460
+ else
461
+ {
462
+ _1898 = 0.0;
463
+ }
464
+ }
465
+ else
466
+ {
467
+ highp float _1906 = globalParams.u_bandBounds.data[_1816].y - globalParams.u_bandBounds.data[_1816].x;
468
+ if (_1906 > 0.0)
469
+ {
470
+ _1898 = (_1781 - globalParams.u_bandBounds.data[_1816].x) / _1906;
471
+ }
472
+ else
473
+ {
474
+ _1898 = 0.0;
475
+ }
476
+ }
477
+ if (_1898 != _1898)
478
+ {
479
+ _1898 = 0.0;
480
+ }
481
+ highp float _1940 = _1898;
482
+ highp float _1941 = clamp(_1940, 0.0, 1.0);
483
+ if (globalParams.u_interpSteps > 1)
484
+ {
485
+ highp float _1945 = float(globalParams.u_interpSteps);
486
+ highp float _1948 = _1945 - 1.0;
487
+ _1898 = min(floor(_1941 * _1945), _1948) / _1948;
488
+ }
489
+ else
490
+ {
491
+ _1898 = _1941;
492
+ }
493
+ _1875 = mix(globalParams.u_lowerColors.data[_1816], globalParams.u_upperColors.data[_1816], vec4(_1898));
494
+ break;
495
+ } while(false);
496
+ _1814 = true;
497
+ _1815 = _1875;
498
+ break;
499
+ }
500
+ _1816++;
501
+ continue;
502
+ }
503
+ if (_1814)
504
+ {
505
+ break;
506
+ }
507
+ _1814 = true;
508
+ _1815 = globalParams.u_uncoveredColor;
509
+ break;
510
+ } while(false);
511
+ if (globalParams.u_colorSource == 1)
512
+ {
513
+ highp vec3 _1954;
514
+ do
515
+ {
516
+ bool _1969;
517
+ if (!_1397)
518
+ {
519
+ _1969 = v6 != 0;
520
+ }
521
+ else
522
+ {
523
+ _1969 = false;
524
+ }
525
+ if (_1969)
526
+ {
527
+ _1954 = (_1815.xyz * (1.0 - globalParams.u_capTint.w)) + (globalParams.u_capTint.xyz * globalParams.u_capTint.w);
528
+ break;
529
+ }
530
+ _1954 = _1815.xyz;
531
+ break;
532
+ } while(false);
533
+ entryPointParam_fragmentMain = vec4(_1954, _1815.w * globalParams.u_opacity);
534
+ break;
535
+ }
536
+ if (globalParams.u_colorSource == 2)
537
+ {
538
+ _2369 = mix(_1815.xyz * vec3(0.077399380505084991455078125), pow((_1815.xyz + vec3(0.054999999701976776123046875)) * vec3(0.947867333889007568359375), vec3(2.400000095367431640625)), step(vec3(0.040449999272823333740234375), _1815.xyz));
539
+ }
540
+ highp vec3 _1990;
541
+ do
542
+ {
543
+ bool _2005;
544
+ if (!_1397)
545
+ {
546
+ _2005 = v6 != 0;
547
+ }
548
+ else
549
+ {
550
+ _2005 = false;
551
+ }
552
+ if (_2005)
553
+ {
554
+ _1990 = (_2369 * (1.0 - globalParams.u_capTint.w)) + (globalParams.u_capTint.xyz * globalParams.u_capTint.w);
555
+ break;
556
+ }
557
+ _1990 = _2369;
558
+ break;
559
+ } while(false);
560
+ _2369 = _1990;
561
+ if (globalParams.u_colorSource == 3)
562
+ {
563
+ entryPointParam_fragmentMain = vec4(_2369, globalParams.u_opacity);
564
+ break;
565
+ }
566
+ bool _2014;
567
+ if (!_1397)
568
+ {
569
+ _2014 = v6 != 0;
570
+ }
571
+ else
572
+ {
573
+ _2014 = false;
574
+ }
575
+ highp vec3 N;
576
+ if (_2014)
577
+ {
578
+ N = normalize((-globalParams.u_clipPlanes.data[max(_1407, 0)].xyz) * mat3(spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[0].xyz, spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[1].xyz, spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[2].xyz));
579
+ }
580
+ else
581
+ {
582
+ N = normalize(v2);
583
+ }
584
+ highp vec3 _2030 = normalize(globalParams.u_viewPosition - v1);
585
+ highp vec3 _2432 = _2369;
586
+ highp float _2433 = _2370;
587
+ highp float _2434 = _2371;
588
+ highp float _2435 = _2372;
589
+ highp vec3 _2436 = _2373;
590
+ highp vec3 _2442 = globalParams.u_environmentSky;
591
+ highp vec3 _2443 = globalParams.u_environmentGround;
592
+ highp vec3 _2444 = globalParams.u_environmentUp;
593
+ int _2031 = 0;
594
+ highp vec3 _2032 = vec3(0.0);
595
+ highp vec3 _2073;
596
+ highp vec3 _2074;
597
+ highp vec3 _2075;
598
+ highp float _2076;
599
+ for (;;)
600
+ {
601
+ if (!(_2031 < 4))
602
+ {
603
+ break;
604
+ }
605
+ if (_2031 < globalParams.u_lightCount)
606
+ {
607
+ do
608
+ {
609
+ bool _2081 = globalParams.u_lightPositions.data[_2031].w == 0.0;
610
+ if (_2081)
611
+ {
612
+ _2074 = globalParams.u_lightPositions.data[_2031].xyz;
613
+ }
614
+ else
615
+ {
616
+ _2074 = globalParams.u_lightPositions.data[_2031].xyz - v1;
617
+ }
618
+ highp float _2090 = dot(_2074, _2074);
619
+ if (_2081)
620
+ {
621
+ _2075 = normalize(globalParams.u_lightPositions.data[_2031].xyz);
622
+ }
623
+ else
624
+ {
625
+ _2075 = _2074 * inversesqrt(_2090);
626
+ }
627
+ if (_2081)
628
+ {
629
+ _2076 = 1.0;
630
+ }
631
+ else
632
+ {
633
+ _2076 = 1.0 / _2090;
634
+ }
635
+ highp float _2106 = dot(N, _2075);
636
+ if (_2106 <= 0.0)
637
+ {
638
+ _2073 = vec3(0.0);
639
+ break;
640
+ }
641
+ highp vec3 _2111 = _2030 + _2075;
642
+ highp float _2112 = dot(_2111, _2111);
643
+ if (_2112 <= 9.9999999600419720025001879548654e-13)
644
+ {
645
+ _2073 = vec3(0.0);
646
+ break;
647
+ }
648
+ highp vec3 _2117 = _2111 * inversesqrt(_2112);
649
+ highp float _2119 = max(dot(N, _2030), 0.0);
650
+ highp float _2121 = max(dot(N, _2117), 0.0);
651
+ highp float _2126 = max(_2434, 0.039999999105930328369140625);
652
+ highp vec3 _2158 = mix(vec3(0.039999999105930328369140625), _2432, vec3(_2433));
653
+ highp float _2161 = _2126 * _2126;
654
+ highp float _2162 = _2161 * _2161;
655
+ highp float _2166 = ((_2121 * _2121) * (_2162 - 1.0)) + 1.0;
656
+ highp float _2177 = _2126 + 1.0;
657
+ highp float _2179 = (_2177 * _2177) * 0.125;
658
+ highp float _2186 = _2126 + 1.0;
659
+ highp float _2188 = (_2186 * _2186) * 0.125;
660
+ highp vec3 _2201 = _2158 + ((vec3(1.0) - _2158) * pow(clamp(1.0 - max(dot(_2117, _2030), 0.0), 0.0, 1.0), 5.0));
661
+ _2073 = ((((clamp((vec3(1.0) - _2201) * (1.0 - _2433), vec3(0.0), vec3(1.0)) * _2432) * vec3(0.3183098733425140380859375)) + ((_2201 * ((_2162 / ((3.1415927410125732421875 * _2166) * _2166)) * ((_2119 / ((_2119 * (1.0 - _2179)) + _2179)) * (_2106 / ((_2106 * (1.0 - _2188)) + _2188))))) / vec3(((4.0 * _2119) * _2106) + 9.9999997473787516355514526367188e-05))) * (globalParams.u_lightColors.data[_2031] * _2076)) * _2106;
662
+ break;
663
+ } while(false);
664
+ _2032 += _2073;
665
+ }
666
+ _2031++;
667
+ continue;
668
+ }
669
+ highp vec3 _2237 = mix(vec3(0.039999999105930328369140625), _2432, vec3(_2433));
670
+ highp vec3 _2248 = _2237 + ((max(vec3(1.0 - max(_2434, 0.039999999105930328369140625)), _2237) - _2237) * pow(clamp(1.0 - max(dot(N, _2030), 0.0), 0.0, 1.0), 5.0));
671
+ highp vec3 _2071 = (((((clamp((vec3(1.0) - _2248) * (1.0 - _2433), vec3(0.0), vec3(1.0)) * mix(_2443, _2442, vec3((dot(N, _2444) * 0.5) + 0.5))) * _2432) + (mix(_2443, _2442, vec3((dot(reflect(-_2030, N), _2444) * 0.5) + 0.5)) * _2248)) * _2435) + _2032) + _2436;
672
+ entryPointParam_fragmentMain = vec4(pow(_2071 / (_2071 + vec3(1.0)), vec3(0.454545438289642333984375)), globalParams.u_opacity);
673
+ break;
674
+ } while(false);
675
+ }
676
+