@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,694 @@
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_int6
11
+ {
12
+ int data[6];
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_int6 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 v8;
88
+ flat in int v7;
89
+ flat in int v4;
90
+ in highp vec3 v3;
91
+ in highp vec3 v5;
92
+ in highp vec3 v6;
93
+ layout(location = 0) out highp vec4 entryPointParam_fragmentMain;
94
+ in highp vec3 v2;
95
+ in highp vec3 v1;
96
+
97
+ highp mat4 spvWorkaroundRowMajor(highp mat4 wrap) { return wrap; }
98
+ mediump mat4 spvWorkaroundRowMajorMP(mediump mat4 wrap) { return wrap; }
99
+
100
+ void main()
101
+ {
102
+ bool _1911 = false;
103
+ bool _1830 = false;
104
+ bool _1401 = false;
105
+ do
106
+ {
107
+ _1401 = false;
108
+ bool _1402;
109
+ do
110
+ {
111
+ int _1403 = 0;
112
+ for (;;)
113
+ {
114
+ if (!(_1403 < 6))
115
+ {
116
+ break;
117
+ }
118
+ if (_1403 >= globalParams.u_clipPlaneCount)
119
+ {
120
+ break;
121
+ }
122
+ if ((dot(globalParams.u_clipPlanes.data[_1403].xyz, v0) + globalParams.u_clipPlanes.data[_1403].w) < 0.0)
123
+ {
124
+ _1401 = true;
125
+ _1402 = false;
126
+ break;
127
+ }
128
+ _1403++;
129
+ continue;
130
+ }
131
+ if (_1401)
132
+ {
133
+ break;
134
+ }
135
+ _1401 = true;
136
+ _1402 = true;
137
+ break;
138
+ } while(false);
139
+ if (!_1402)
140
+ {
141
+ discard;
142
+ }
143
+ bool _1447 = gl_FrontFacing != (v8 != 0);
144
+ bool _1448;
145
+ if (!_1447)
146
+ {
147
+ _1448 = v7 == 0;
148
+ }
149
+ else
150
+ {
151
+ _1448 = false;
152
+ }
153
+ if (_1448)
154
+ {
155
+ discard;
156
+ }
157
+ highp vec3 _186 = v0 - globalParams.u_modelEyePosition;
158
+ int _1457 = -1;
159
+ highp float _1459 = 0.0;
160
+ int _1458 = 0;
161
+ bool _1460;
162
+ int _1461;
163
+ highp float _1462;
164
+ for (;;)
165
+ {
166
+ bool _1468_ladder_break = false;
167
+ do
168
+ {
169
+ if (!(_1458 < 6))
170
+ {
171
+ _1468_ladder_break = true;
172
+ break;
173
+ }
174
+ if (_1458 >= globalParams.u_clipPlaneCount)
175
+ {
176
+ _1468_ladder_break = true;
177
+ break;
178
+ }
179
+ highp float _1483 = dot(globalParams.u_clipPlanes.data[_1458].xyz, _186);
180
+ if (_1483 <= 0.0)
181
+ {
182
+ break;
183
+ }
184
+ highp float _1489 = (-(dot(globalParams.u_clipPlanes.data[_1458].xyz, globalParams.u_modelEyePosition) + globalParams.u_clipPlanes.data[_1458].w)) / _1483;
185
+ if (_1457 < 0)
186
+ {
187
+ _1460 = true;
188
+ }
189
+ else
190
+ {
191
+ _1460 = _1489 > _1459;
192
+ }
193
+ if (_1460)
194
+ {
195
+ _1461 = _1458;
196
+ _1462 = _1489;
197
+ }
198
+ else
199
+ {
200
+ _1461 = _1457;
201
+ _1462 = _1459;
202
+ }
203
+ _1457 = _1461;
204
+ _1459 = _1462;
205
+ break;
206
+ } while(false);
207
+ if (_1468_ladder_break)
208
+ {
209
+ break;
210
+ }
211
+ _1458++;
212
+ continue;
213
+ }
214
+ bool _7;
215
+ if (_1457 < 0)
216
+ {
217
+ bool _1519;
218
+ if (!_1447)
219
+ {
220
+ _1519 = v7 != 0;
221
+ }
222
+ else
223
+ {
224
+ _1519 = false;
225
+ }
226
+ _7 = _1519;
227
+ }
228
+ else
229
+ {
230
+ _7 = false;
231
+ }
232
+ if (_7)
233
+ {
234
+ discard;
235
+ }
236
+ highp vec4 _1533 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 0), 0);
237
+ highp vec4 _1537 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 1), 0);
238
+ highp vec4 _1541 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 2), 0);
239
+ highp vec3 _1544 = _1533.xyz;
240
+ highp float _1546 = _1533.w;
241
+ highp vec3 _1548 = _1537.xyz;
242
+ highp float _1550 = _1537.w;
243
+ highp float _1552 = _1541.x;
244
+ highp vec3 _2466 = _1544;
245
+ highp float _2467 = _1546;
246
+ highp float _2468 = _1550;
247
+ highp float _2469 = _1552;
248
+ highp vec3 _2470 = _1548;
249
+ highp vec3 _2494 = _1544;
250
+ highp float _2495 = _1546;
251
+ highp float _2496 = _1550;
252
+ highp float _2497 = _1552;
253
+ highp vec3 _2498 = _1548;
254
+ highp float _2516 = globalParams.u_surfaceFinishScale;
255
+ highp float _2517 = globalParams.u_surfaceFinishRoughness;
256
+ highp float _2518 = globalParams.u_surfaceFinishColor;
257
+ highp vec3 _2386;
258
+ highp float _2387;
259
+ highp float _2388;
260
+ highp float _2389;
261
+ highp vec3 _2390;
262
+ do
263
+ {
264
+ if (_2516 <= 0.0)
265
+ {
266
+ _2386 = _2494;
267
+ _2387 = _2495;
268
+ _2388 = _2496;
269
+ _2389 = _2497;
270
+ _2390 = _2498;
271
+ break;
272
+ }
273
+ highp vec3 _1567 = v3 / vec3(_2516);
274
+ highp vec3 _1594 = floor(_1567);
275
+ highp vec3 _1595 = _1567 - _1594;
276
+ highp vec3 _1600 = (_1595 * _1595) * (vec3(3.0) - (_1595 * 2.0));
277
+ ivec3 _1601 = ivec3(_1594);
278
+ uint _1640 = (((uint(_1601.x) * 2376512323u) + (uint(_1601.y) * 3625334849u)) + (uint(_1601.z) * 3407524639u)) + 2654435769u;
279
+ uint _1643 = (_1640 ^ (_1640 >> uint(15))) * 739982445u;
280
+ uint _1646 = (_1643 ^ (_1643 >> uint(12))) * 695872825u;
281
+ ivec3 _1603 = _1601 + ivec3(1, 0, 0);
282
+ uint _1665 = (((uint(_1603.x) * 2376512323u) + (uint(_1603.y) * 3625334849u)) + (uint(_1603.z) * 3407524639u)) + 2654435769u;
283
+ uint _1668 = (_1665 ^ (_1665 >> uint(15))) * 739982445u;
284
+ uint _1671 = (_1668 ^ (_1668 >> uint(12))) * 695872825u;
285
+ ivec3 _1605 = _1601 + ivec3(0, 1, 0);
286
+ uint _1690 = (((uint(_1605.x) * 2376512323u) + (uint(_1605.y) * 3625334849u)) + (uint(_1605.z) * 3407524639u)) + 2654435769u;
287
+ uint _1693 = (_1690 ^ (_1690 >> uint(15))) * 739982445u;
288
+ uint _1696 = (_1693 ^ (_1693 >> uint(12))) * 695872825u;
289
+ ivec3 _1607 = _1601 + ivec3(1, 1, 0);
290
+ uint _1715 = (((uint(_1607.x) * 2376512323u) + (uint(_1607.y) * 3625334849u)) + (uint(_1607.z) * 3407524639u)) + 2654435769u;
291
+ uint _1718 = (_1715 ^ (_1715 >> uint(15))) * 739982445u;
292
+ uint _1721 = (_1718 ^ (_1718 >> uint(12))) * 695872825u;
293
+ ivec3 _1609 = _1601 + ivec3(0, 0, 1);
294
+ uint _1740 = (((uint(_1609.x) * 2376512323u) + (uint(_1609.y) * 3625334849u)) + (uint(_1609.z) * 3407524639u)) + 2654435769u;
295
+ uint _1743 = (_1740 ^ (_1740 >> uint(15))) * 739982445u;
296
+ uint _1746 = (_1743 ^ (_1743 >> uint(12))) * 695872825u;
297
+ ivec3 _1611 = _1601 + ivec3(1, 0, 1);
298
+ uint _1765 = (((uint(_1611.x) * 2376512323u) + (uint(_1611.y) * 3625334849u)) + (uint(_1611.z) * 3407524639u)) + 2654435769u;
299
+ uint _1768 = (_1765 ^ (_1765 >> uint(15))) * 739982445u;
300
+ uint _1771 = (_1768 ^ (_1768 >> uint(12))) * 695872825u;
301
+ ivec3 _1613 = _1601 + ivec3(0, 1, 1);
302
+ uint _1790 = (((uint(_1613.x) * 2376512323u) + (uint(_1613.y) * 3625334849u)) + (uint(_1613.z) * 3407524639u)) + 2654435769u;
303
+ uint _1793 = (_1790 ^ (_1790 >> uint(15))) * 739982445u;
304
+ uint _1796 = (_1793 ^ (_1793 >> uint(12))) * 695872825u;
305
+ ivec3 _1615 = _1601 + ivec3(1);
306
+ uint _1815 = (((uint(_1615.x) * 2376512323u) + (uint(_1615.y) * 3625334849u)) + (uint(_1615.z) * 3407524639u)) + 2654435769u;
307
+ uint _1818 = (_1815 ^ (_1815 >> uint(15))) * 739982445u;
308
+ uint _1821 = (_1818 ^ (_1818 >> uint(12))) * 695872825u;
309
+ highp float _1617 = _1600.x;
310
+ highp float _1622 = _1600.y;
311
+ highp float _1570 = (mix(mix(mix(float((_1646 ^ (_1646 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1671 ^ (_1671 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1617), mix(float((_1696 ^ (_1696 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1721 ^ (_1721 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1617), _1622), mix(mix(float((_1746 ^ (_1746 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1771 ^ (_1771 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1617), mix(float((_1796 ^ (_1796 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1821 ^ (_1821 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1617), _1622), _1600.z) * 2.0) - 1.0;
312
+ _2386 = clamp(_2494 * (1.0 + (_1570 * _2518)), vec3(0.0), vec3(1.0));
313
+ _2387 = _2495;
314
+ _2388 = clamp(_2496 + (_1570 * _2517), 0.0, 1.0);
315
+ _2389 = _2497;
316
+ _2390 = _2498;
317
+ break;
318
+ } while(false);
319
+ _2466 = _2386;
320
+ _2467 = _2387;
321
+ _2468 = _2388;
322
+ _2469 = _2389;
323
+ _2470 = _2390;
324
+ _1830 = false;
325
+ highp float _1831;
326
+ do
327
+ {
328
+ highp float _1832[6] = float[](v5.x, v5.y, v5.z, v6.x, v6.y, v6.z);
329
+ int _1834 = 0;
330
+ highp float _1833[6];
331
+ for (;;)
332
+ {
333
+ if (!(_1834 < 6))
334
+ {
335
+ break;
336
+ }
337
+ _1833[_1834] = _1832[globalParams.u_componentOrder.data[_1834]];
338
+ _1834++;
339
+ continue;
340
+ }
341
+ switch (globalParams.u_derivedType)
342
+ {
343
+ case 0:
344
+ {
345
+ _1830 = true;
346
+ _1831 = _1833[0];
347
+ break;
348
+ }
349
+ case 1:
350
+ {
351
+ _1830 = true;
352
+ _1831 = _1833[1];
353
+ break;
354
+ }
355
+ case 2:
356
+ {
357
+ _1830 = true;
358
+ _1831 = _1833[2];
359
+ break;
360
+ }
361
+ case 3:
362
+ {
363
+ _1830 = true;
364
+ _1831 = _1833[3];
365
+ break;
366
+ }
367
+ case 4:
368
+ {
369
+ _1830 = true;
370
+ _1831 = _1833[4];
371
+ break;
372
+ }
373
+ case 5:
374
+ {
375
+ _1830 = true;
376
+ _1831 = _1833[5];
377
+ break;
378
+ }
379
+ case 6:
380
+ {
381
+ _1830 = true;
382
+ _1831 = length(vec3(_1833[0], _1833[1], _1833[2]));
383
+ break;
384
+ }
385
+ case 7:
386
+ {
387
+ _1830 = true;
388
+ _1831 = length(vec3(_1833[3], _1833[4], _1833[5]));
389
+ break;
390
+ }
391
+ default:
392
+ {
393
+ _1830 = true;
394
+ _1831 = uintBitsToFloat(0x7fc00000u /* nan */);
395
+ break;
396
+ }
397
+ }
398
+ if (_1830)
399
+ {
400
+ break;
401
+ }
402
+ break;
403
+ } while(false);
404
+ _1911 = false;
405
+ highp vec4 _1912;
406
+ do
407
+ {
408
+ if (_1831 != _1831)
409
+ {
410
+ _1911 = true;
411
+ _1912 = globalParams.u_nanColor;
412
+ break;
413
+ }
414
+ int _1913 = 0;
415
+ bool _1914;
416
+ highp vec4 _1972;
417
+ bool _1973;
418
+ highp float _1995;
419
+ bool _1996;
420
+ for (;;)
421
+ {
422
+ if (!(_1913 < globalParams.u_numBands))
423
+ {
424
+ break;
425
+ }
426
+ if (_1831 >= globalParams.u_bandBounds.data[_1913].x)
427
+ {
428
+ _1914 = _1831 < globalParams.u_bandBounds.data[_1913].y;
429
+ }
430
+ else
431
+ {
432
+ _1914 = false;
433
+ }
434
+ if (_1914)
435
+ {
436
+ do
437
+ {
438
+ if (all(equal(globalParams.u_lowerColors.data[_1913], globalParams.u_upperColors.data[_1913])))
439
+ {
440
+ _1972 = globalParams.u_lowerColors.data[_1913];
441
+ break;
442
+ }
443
+ if (globalParams.u_interpModes.data[_1913] == 1)
444
+ {
445
+ _1973 = globalParams.u_bandBounds.data[_1913].x <= 0.0;
446
+ }
447
+ else
448
+ {
449
+ _1973 = false;
450
+ }
451
+ if (_1973)
452
+ {
453
+ _1972 = globalParams.u_errorColor;
454
+ break;
455
+ }
456
+ if (globalParams.u_interpModes.data[_1913] == 1)
457
+ {
458
+ if (0.0 < globalParams.u_bandBounds.data[_1913].x)
459
+ {
460
+ _1996 = globalParams.u_bandBounds.data[_1913].x < globalParams.u_bandBounds.data[_1913].y;
461
+ }
462
+ else
463
+ {
464
+ _1996 = false;
465
+ }
466
+ if (_1996)
467
+ {
468
+ _1996 = _1831 > 0.0;
469
+ }
470
+ else
471
+ {
472
+ _1996 = false;
473
+ }
474
+ if (_1996)
475
+ {
476
+ _1995 = log(_1831 / globalParams.u_bandBounds.data[_1913].x) / log(globalParams.u_bandBounds.data[_1913].y / globalParams.u_bandBounds.data[_1913].x);
477
+ }
478
+ else
479
+ {
480
+ _1995 = 0.0;
481
+ }
482
+ }
483
+ else
484
+ {
485
+ highp float _2003 = globalParams.u_bandBounds.data[_1913].y - globalParams.u_bandBounds.data[_1913].x;
486
+ if (_2003 > 0.0)
487
+ {
488
+ _1995 = (_1831 - globalParams.u_bandBounds.data[_1913].x) / _2003;
489
+ }
490
+ else
491
+ {
492
+ _1995 = 0.0;
493
+ }
494
+ }
495
+ if (_1995 != _1995)
496
+ {
497
+ _1995 = 0.0;
498
+ }
499
+ highp float _2037 = _1995;
500
+ highp float _2038 = clamp(_2037, 0.0, 1.0);
501
+ if (globalParams.u_interpSteps > 1)
502
+ {
503
+ highp float _2042 = float(globalParams.u_interpSteps);
504
+ highp float _2045 = _2042 - 1.0;
505
+ _1995 = min(floor(_2038 * _2042), _2045) / _2045;
506
+ }
507
+ else
508
+ {
509
+ _1995 = _2038;
510
+ }
511
+ _1972 = mix(globalParams.u_lowerColors.data[_1913], globalParams.u_upperColors.data[_1913], vec4(_1995));
512
+ break;
513
+ } while(false);
514
+ _1911 = true;
515
+ _1912 = _1972;
516
+ break;
517
+ }
518
+ _1913++;
519
+ continue;
520
+ }
521
+ if (_1911)
522
+ {
523
+ break;
524
+ }
525
+ _1911 = true;
526
+ _1912 = globalParams.u_uncoveredColor;
527
+ break;
528
+ } while(false);
529
+ if (globalParams.u_colorSource == 1)
530
+ {
531
+ highp vec3 _2051;
532
+ do
533
+ {
534
+ bool _2066;
535
+ if (!_1447)
536
+ {
537
+ _2066 = v7 != 0;
538
+ }
539
+ else
540
+ {
541
+ _2066 = false;
542
+ }
543
+ if (_2066)
544
+ {
545
+ _2051 = (_1912.xyz * (1.0 - globalParams.u_capTint.w)) + (globalParams.u_capTint.xyz * globalParams.u_capTint.w);
546
+ break;
547
+ }
548
+ _2051 = _1912.xyz;
549
+ break;
550
+ } while(false);
551
+ entryPointParam_fragmentMain = vec4(_2051, _1912.w * globalParams.u_opacity);
552
+ break;
553
+ }
554
+ if (globalParams.u_colorSource == 2)
555
+ {
556
+ _2466 = mix(_1912.xyz * vec3(0.077399380505084991455078125), pow((_1912.xyz + vec3(0.054999999701976776123046875)) * vec3(0.947867333889007568359375), vec3(2.400000095367431640625)), step(vec3(0.040449999272823333740234375), _1912.xyz));
557
+ }
558
+ highp vec3 _2087;
559
+ do
560
+ {
561
+ bool _2102;
562
+ if (!_1447)
563
+ {
564
+ _2102 = v7 != 0;
565
+ }
566
+ else
567
+ {
568
+ _2102 = false;
569
+ }
570
+ if (_2102)
571
+ {
572
+ _2087 = (_2466 * (1.0 - globalParams.u_capTint.w)) + (globalParams.u_capTint.xyz * globalParams.u_capTint.w);
573
+ break;
574
+ }
575
+ _2087 = _2466;
576
+ break;
577
+ } while(false);
578
+ _2466 = _2087;
579
+ if (globalParams.u_colorSource == 3)
580
+ {
581
+ entryPointParam_fragmentMain = vec4(_2466, globalParams.u_opacity);
582
+ break;
583
+ }
584
+ bool _2111;
585
+ if (!_1447)
586
+ {
587
+ _2111 = v7 != 0;
588
+ }
589
+ else
590
+ {
591
+ _2111 = false;
592
+ }
593
+ highp vec3 N;
594
+ if (_2111)
595
+ {
596
+ N = normalize((-globalParams.u_clipPlanes.data[max(_1457, 0)].xyz) * mat3(spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[0].xyz, spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[1].xyz, spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[2].xyz));
597
+ }
598
+ else
599
+ {
600
+ N = normalize(v2);
601
+ }
602
+ highp vec3 _2127 = normalize(globalParams.u_viewPosition - v1);
603
+ highp vec3 _2529 = _2466;
604
+ highp float _2530 = _2467;
605
+ highp float _2531 = _2468;
606
+ highp float _2532 = _2469;
607
+ highp vec3 _2533 = _2470;
608
+ highp vec3 _2539 = globalParams.u_environmentSky;
609
+ highp vec3 _2540 = globalParams.u_environmentGround;
610
+ highp vec3 _2541 = globalParams.u_environmentUp;
611
+ int _2128 = 0;
612
+ highp vec3 _2129 = vec3(0.0);
613
+ highp vec3 _2170;
614
+ highp vec3 _2171;
615
+ highp vec3 _2172;
616
+ highp float _2173;
617
+ for (;;)
618
+ {
619
+ if (!(_2128 < 4))
620
+ {
621
+ break;
622
+ }
623
+ if (_2128 < globalParams.u_lightCount)
624
+ {
625
+ do
626
+ {
627
+ bool _2178 = globalParams.u_lightPositions.data[_2128].w == 0.0;
628
+ if (_2178)
629
+ {
630
+ _2171 = globalParams.u_lightPositions.data[_2128].xyz;
631
+ }
632
+ else
633
+ {
634
+ _2171 = globalParams.u_lightPositions.data[_2128].xyz - v1;
635
+ }
636
+ highp float _2187 = dot(_2171, _2171);
637
+ if (_2178)
638
+ {
639
+ _2172 = normalize(globalParams.u_lightPositions.data[_2128].xyz);
640
+ }
641
+ else
642
+ {
643
+ _2172 = _2171 * inversesqrt(_2187);
644
+ }
645
+ if (_2178)
646
+ {
647
+ _2173 = 1.0;
648
+ }
649
+ else
650
+ {
651
+ _2173 = 1.0 / _2187;
652
+ }
653
+ highp float _2203 = dot(N, _2172);
654
+ if (_2203 <= 0.0)
655
+ {
656
+ _2170 = vec3(0.0);
657
+ break;
658
+ }
659
+ highp vec3 _2208 = _2127 + _2172;
660
+ highp float _2209 = dot(_2208, _2208);
661
+ if (_2209 <= 9.9999999600419720025001879548654e-13)
662
+ {
663
+ _2170 = vec3(0.0);
664
+ break;
665
+ }
666
+ highp vec3 _2214 = _2208 * inversesqrt(_2209);
667
+ highp float _2216 = max(dot(N, _2127), 0.0);
668
+ highp float _2218 = max(dot(N, _2214), 0.0);
669
+ highp float _2223 = max(_2531, 0.039999999105930328369140625);
670
+ highp vec3 _2255 = mix(vec3(0.039999999105930328369140625), _2529, vec3(_2530));
671
+ highp float _2258 = _2223 * _2223;
672
+ highp float _2259 = _2258 * _2258;
673
+ highp float _2263 = ((_2218 * _2218) * (_2259 - 1.0)) + 1.0;
674
+ highp float _2274 = _2223 + 1.0;
675
+ highp float _2276 = (_2274 * _2274) * 0.125;
676
+ highp float _2283 = _2223 + 1.0;
677
+ highp float _2285 = (_2283 * _2283) * 0.125;
678
+ highp vec3 _2298 = _2255 + ((vec3(1.0) - _2255) * pow(clamp(1.0 - max(dot(_2214, _2127), 0.0), 0.0, 1.0), 5.0));
679
+ _2170 = ((((clamp((vec3(1.0) - _2298) * (1.0 - _2530), vec3(0.0), vec3(1.0)) * _2529) * vec3(0.3183098733425140380859375)) + ((_2298 * ((_2259 / ((3.1415927410125732421875 * _2263) * _2263)) * ((_2216 / ((_2216 * (1.0 - _2276)) + _2276)) * (_2203 / ((_2203 * (1.0 - _2285)) + _2285))))) / vec3(((4.0 * _2216) * _2203) + 9.9999997473787516355514526367188e-05))) * (globalParams.u_lightColors.data[_2128] * _2173)) * _2203;
680
+ break;
681
+ } while(false);
682
+ _2129 += _2170;
683
+ }
684
+ _2128++;
685
+ continue;
686
+ }
687
+ highp vec3 _2334 = mix(vec3(0.039999999105930328369140625), _2529, vec3(_2530));
688
+ highp vec3 _2345 = _2334 + ((max(vec3(1.0 - max(_2531, 0.039999999105930328369140625)), _2334) - _2334) * pow(clamp(1.0 - max(dot(N, _2127), 0.0), 0.0, 1.0), 5.0));
689
+ highp vec3 _2168 = (((((clamp((vec3(1.0) - _2345) * (1.0 - _2530), vec3(0.0), vec3(1.0)) * mix(_2540, _2539, vec3((dot(N, _2541) * 0.5) + 0.5))) * _2529) + (mix(_2540, _2539, vec3((dot(reflect(-_2127, N), _2541) * 0.5) + 0.5)) * _2345)) * _2532) + _2129) + _2533;
690
+ entryPointParam_fragmentMain = vec4(pow(_2168 / (_2168 + vec3(1.0)), vec3(0.454545438289642333984375)), globalParams.u_opacity);
691
+ break;
692
+ } while(false);
693
+ }
694
+