@vcollab/shader-artifacts 1.0.0 → 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 (172) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +2 -2
  3. package/dist/generated/set.d.ts +4 -4
  4. package/dist/index.cjs +5 -5
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.js +5 -5
  7. package/dist/index.js.map +1 -1
  8. package/package.json +1 -1
  9. package/set/SHA256SUMS +163 -163
  10. package/set/pipelines/category.capped.json +125 -43
  11. package/set/pipelines/category.json +123 -41
  12. package/set/pipelines/deform3.category.capped.json +125 -43
  13. package/set/pipelines/deform3.category.json +123 -41
  14. package/set/pipelines/deform3.dof6.capped.json +132 -50
  15. package/set/pipelines/deform3.dof6.json +130 -48
  16. package/set/pipelines/deform3.pick.capped.json +69 -18
  17. package/set/pipelines/deform3.pick.json +69 -18
  18. package/set/pipelines/deform3.scalar.capped.json +133 -51
  19. package/set/pipelines/deform3.scalar.json +131 -49
  20. package/set/pipelines/deform3.surface.capped.json +121 -39
  21. package/set/pipelines/deform3.surface.json +119 -37
  22. package/set/pipelines/deform3.symtensor.capped.json +133 -51
  23. package/set/pipelines/deform3.symtensor.json +131 -49
  24. package/set/pipelines/deform3.textured-normal.capped.json +93 -42
  25. package/set/pipelines/deform3.textured-normal.json +91 -40
  26. package/set/pipelines/deform3.textured.capped.json +91 -40
  27. package/set/pipelines/deform3.textured.json +89 -38
  28. package/set/pipelines/deform3.vector.capped.json +132 -50
  29. package/set/pipelines/deform3.vector.json +130 -48
  30. package/set/pipelines/deform6.category.capped.json +125 -43
  31. package/set/pipelines/deform6.category.json +123 -41
  32. package/set/pipelines/deform6.dof6.capped.json +132 -50
  33. package/set/pipelines/deform6.dof6.json +130 -48
  34. package/set/pipelines/deform6.pick.capped.json +69 -18
  35. package/set/pipelines/deform6.pick.json +69 -18
  36. package/set/pipelines/deform6.scalar.capped.json +133 -51
  37. package/set/pipelines/deform6.scalar.json +131 -49
  38. package/set/pipelines/deform6.surface.capped.json +121 -39
  39. package/set/pipelines/deform6.surface.json +119 -37
  40. package/set/pipelines/deform6.symtensor.capped.json +133 -51
  41. package/set/pipelines/deform6.symtensor.json +131 -49
  42. package/set/pipelines/deform6.textured-normal.capped.json +93 -42
  43. package/set/pipelines/deform6.textured-normal.json +91 -40
  44. package/set/pipelines/deform6.textured.capped.json +91 -40
  45. package/set/pipelines/deform6.textured.json +89 -38
  46. package/set/pipelines/deform6.vector.capped.json +132 -50
  47. package/set/pipelines/deform6.vector.json +130 -48
  48. package/set/pipelines/dof6.capped.json +132 -50
  49. package/set/pipelines/dof6.json +130 -48
  50. package/set/pipelines/pick.capped.json +69 -18
  51. package/set/pipelines/pick.json +69 -18
  52. package/set/pipelines/scalar.capped.json +133 -51
  53. package/set/pipelines/scalar.json +131 -49
  54. package/set/pipelines/surface.capped.json +121 -39
  55. package/set/pipelines/surface.json +119 -37
  56. package/set/pipelines/symtensor.capped.json +133 -51
  57. package/set/pipelines/symtensor.json +131 -49
  58. package/set/pipelines/textured-normal.capped.json +93 -42
  59. package/set/pipelines/textured-normal.json +91 -40
  60. package/set/pipelines/textured.capped.json +91 -40
  61. package/set/pipelines/textured.json +89 -38
  62. package/set/pipelines/vector.capped.json +132 -50
  63. package/set/pipelines/vector.json +130 -48
  64. package/set/registry.json +147 -55
  65. package/set/shaders/category.capped.fragment.glsl +6 -0
  66. package/set/shaders/category.capped.vertex.glsl +55 -45
  67. package/set/shaders/category.fragment.glsl +12 -6
  68. package/set/shaders/category.vertex.glsl +48 -38
  69. package/set/shaders/deform3.category.capped.fragment.glsl +6 -0
  70. package/set/shaders/deform3.category.capped.vertex.glsl +56 -46
  71. package/set/shaders/deform3.category.fragment.glsl +12 -6
  72. package/set/shaders/deform3.category.vertex.glsl +49 -39
  73. package/set/shaders/deform3.dof6.capped.fragment.glsl +6 -0
  74. package/set/shaders/deform3.dof6.capped.vertex.glsl +57 -47
  75. package/set/shaders/deform3.dof6.fragment.glsl +6 -0
  76. package/set/shaders/deform3.dof6.vertex.glsl +50 -40
  77. package/set/shaders/deform3.pick.capped.fragment.glsl +26 -21
  78. package/set/shaders/deform3.pick.capped.vertex.glsl +47 -37
  79. package/set/shaders/deform3.pick.fragment.glsl +20 -15
  80. package/set/shaders/deform3.pick.vertex.glsl +38 -28
  81. package/set/shaders/deform3.scalar.capped.fragment.glsl +6 -0
  82. package/set/shaders/deform3.scalar.capped.vertex.glsl +56 -46
  83. package/set/shaders/deform3.scalar.fragment.glsl +6 -0
  84. package/set/shaders/deform3.scalar.vertex.glsl +49 -39
  85. package/set/shaders/deform3.surface.capped.fragment.glsl +6 -0
  86. package/set/shaders/deform3.surface.capped.vertex.glsl +55 -45
  87. package/set/shaders/deform3.surface.fragment.glsl +12 -6
  88. package/set/shaders/deform3.surface.vertex.glsl +48 -38
  89. package/set/shaders/deform3.symtensor.capped.fragment.glsl +6 -0
  90. package/set/shaders/deform3.symtensor.capped.vertex.glsl +57 -47
  91. package/set/shaders/deform3.symtensor.fragment.glsl +6 -0
  92. package/set/shaders/deform3.symtensor.vertex.glsl +50 -40
  93. package/set/shaders/deform3.textured-normal.capped.fragment.glsl +4 -0
  94. package/set/shaders/deform3.textured-normal.capped.vertex.glsl +65 -57
  95. package/set/shaders/deform3.textured-normal.fragment.glsl +4 -0
  96. package/set/shaders/deform3.textured-normal.vertex.glsl +58 -50
  97. package/set/shaders/deform3.textured.capped.fragment.glsl +4 -0
  98. package/set/shaders/deform3.textured.capped.vertex.glsl +51 -44
  99. package/set/shaders/deform3.textured.fragment.glsl +10 -6
  100. package/set/shaders/deform3.textured.vertex.glsl +44 -37
  101. package/set/shaders/deform3.vector.capped.fragment.glsl +6 -0
  102. package/set/shaders/deform3.vector.capped.vertex.glsl +56 -46
  103. package/set/shaders/deform3.vector.fragment.glsl +6 -0
  104. package/set/shaders/deform3.vector.vertex.glsl +49 -39
  105. package/set/shaders/deform6.category.capped.fragment.glsl +6 -0
  106. package/set/shaders/deform6.category.capped.vertex.glsl +64 -54
  107. package/set/shaders/deform6.category.fragment.glsl +12 -6
  108. package/set/shaders/deform6.category.vertex.glsl +57 -47
  109. package/set/shaders/deform6.dof6.capped.fragment.glsl +6 -0
  110. package/set/shaders/deform6.dof6.capped.vertex.glsl +65 -55
  111. package/set/shaders/deform6.dof6.fragment.glsl +6 -0
  112. package/set/shaders/deform6.dof6.vertex.glsl +58 -48
  113. package/set/shaders/deform6.pick.capped.fragment.glsl +26 -21
  114. package/set/shaders/deform6.pick.capped.vertex.glsl +55 -45
  115. package/set/shaders/deform6.pick.fragment.glsl +20 -15
  116. package/set/shaders/deform6.pick.vertex.glsl +46 -36
  117. package/set/shaders/deform6.scalar.capped.fragment.glsl +6 -0
  118. package/set/shaders/deform6.scalar.capped.vertex.glsl +64 -54
  119. package/set/shaders/deform6.scalar.fragment.glsl +6 -0
  120. package/set/shaders/deform6.scalar.vertex.glsl +57 -47
  121. package/set/shaders/deform6.surface.capped.fragment.glsl +6 -0
  122. package/set/shaders/deform6.surface.capped.vertex.glsl +63 -53
  123. package/set/shaders/deform6.surface.fragment.glsl +12 -6
  124. package/set/shaders/deform6.surface.vertex.glsl +56 -46
  125. package/set/shaders/deform6.symtensor.capped.fragment.glsl +6 -0
  126. package/set/shaders/deform6.symtensor.capped.vertex.glsl +65 -55
  127. package/set/shaders/deform6.symtensor.fragment.glsl +6 -0
  128. package/set/shaders/deform6.symtensor.vertex.glsl +58 -48
  129. package/set/shaders/deform6.textured-normal.capped.fragment.glsl +4 -0
  130. package/set/shaders/deform6.textured-normal.capped.vertex.glsl +73 -65
  131. package/set/shaders/deform6.textured-normal.fragment.glsl +4 -0
  132. package/set/shaders/deform6.textured-normal.vertex.glsl +66 -58
  133. package/set/shaders/deform6.textured.capped.fragment.glsl +4 -0
  134. package/set/shaders/deform6.textured.capped.vertex.glsl +59 -52
  135. package/set/shaders/deform6.textured.fragment.glsl +10 -6
  136. package/set/shaders/deform6.textured.vertex.glsl +52 -45
  137. package/set/shaders/deform6.vector.capped.fragment.glsl +6 -0
  138. package/set/shaders/deform6.vector.capped.vertex.glsl +64 -54
  139. package/set/shaders/deform6.vector.fragment.glsl +6 -0
  140. package/set/shaders/deform6.vector.vertex.glsl +57 -47
  141. package/set/shaders/dof6.capped.fragment.glsl +6 -0
  142. package/set/shaders/dof6.capped.vertex.glsl +56 -46
  143. package/set/shaders/dof6.fragment.glsl +6 -0
  144. package/set/shaders/dof6.vertex.glsl +49 -39
  145. package/set/shaders/pick.capped.fragment.glsl +26 -21
  146. package/set/shaders/pick.capped.vertex.glsl +46 -36
  147. package/set/shaders/pick.fragment.glsl +20 -15
  148. package/set/shaders/pick.vertex.glsl +37 -27
  149. package/set/shaders/scalar.capped.fragment.glsl +6 -0
  150. package/set/shaders/scalar.capped.vertex.glsl +55 -45
  151. package/set/shaders/scalar.fragment.glsl +6 -0
  152. package/set/shaders/scalar.vertex.glsl +48 -38
  153. package/set/shaders/surface.capped.fragment.glsl +6 -0
  154. package/set/shaders/surface.capped.vertex.glsl +54 -44
  155. package/set/shaders/surface.fragment.glsl +12 -6
  156. package/set/shaders/surface.vertex.glsl +47 -37
  157. package/set/shaders/symtensor.capped.fragment.glsl +6 -0
  158. package/set/shaders/symtensor.capped.vertex.glsl +56 -46
  159. package/set/shaders/symtensor.fragment.glsl +6 -0
  160. package/set/shaders/symtensor.vertex.glsl +49 -39
  161. package/set/shaders/textured-normal.capped.fragment.glsl +4 -0
  162. package/set/shaders/textured-normal.capped.vertex.glsl +64 -56
  163. package/set/shaders/textured-normal.fragment.glsl +4 -0
  164. package/set/shaders/textured-normal.vertex.glsl +57 -49
  165. package/set/shaders/textured.capped.fragment.glsl +4 -0
  166. package/set/shaders/textured.capped.vertex.glsl +50 -43
  167. package/set/shaders/textured.fragment.glsl +10 -6
  168. package/set/shaders/textured.vertex.glsl +43 -36
  169. package/set/shaders/vector.capped.fragment.glsl +6 -0
  170. package/set/shaders/vector.capped.vertex.glsl +55 -45
  171. package/set/shaders/vector.fragment.glsl +6 -0
  172. package/set/shaders/vector.vertex.glsl +48 -38
@@ -2,7 +2,7 @@
2
2
  "schemaVersion": 3,
3
3
  "generator": {
4
4
  "name": "vcti-shader-foundry",
5
- "version": "7.0.0",
5
+ "version": "9.0.0",
6
6
  "toolchain": {
7
7
  "slangc": "2026.12.0.1",
8
8
  "spirvCross": "vulkan-sdk-1.4.357.0",
@@ -16,6 +16,7 @@
16
16
  "deform6",
17
17
  "symtensor",
18
18
  "fringe-float",
19
+ "material-map-r16ui",
19
20
  "material",
20
21
  "material-table",
21
22
  "material-surface-finish",
@@ -23,6 +24,7 @@
23
24
  "mask-lut-r8ui",
24
25
  "transform",
25
26
  "transform-lut-r32ui",
27
+ "transform-map-r16ui",
26
28
  "clip"
27
29
  ],
28
30
  "inputs": [
@@ -42,25 +44,15 @@
42
44
  "semantic": "rotation"
43
45
  },
44
46
  {
45
- "name": "a_maskId",
47
+ "name": "a_atomId",
46
48
  "type": "int",
47
- "semantic": "mask-id"
48
- },
49
- {
50
- "name": "a_componentId",
51
- "type": "int",
52
- "semantic": "component-id"
49
+ "semantic": "atom-id"
53
50
  },
54
51
  {
55
52
  "name": "a_normal",
56
53
  "type": "vec3",
57
54
  "semantic": "normal"
58
55
  },
59
- {
60
- "name": "a_materialId",
61
- "type": "int",
62
- "semantic": "material-id"
63
- },
64
56
  {
65
57
  "name": "a_result0",
66
58
  "type": "vec3",
@@ -93,6 +85,10 @@
93
85
  "name": "u_maskLutWidth",
94
86
  "type": "int"
95
87
  },
88
+ {
89
+ "name": "u_maskLutBase",
90
+ "type": "int"
91
+ },
96
92
  {
97
93
  "name": "u_transformLutWidth",
98
94
  "type": "int"
@@ -101,6 +97,18 @@
101
97
  "name": "u_transformLutStride",
102
98
  "type": "int"
103
99
  },
100
+ {
101
+ "name": "u_transformLutBase",
102
+ "type": "int"
103
+ },
104
+ {
105
+ "name": "u_transformMapWidth",
106
+ "type": "int"
107
+ },
108
+ {
109
+ "name": "u_transformMapBase",
110
+ "type": "int"
111
+ },
104
112
  {
105
113
  "name": "u_clipPlanes",
106
114
  "type": "vec4[6]"
@@ -189,6 +197,14 @@
189
197
  "name": "u_errorColor",
190
198
  "type": "vec4"
191
199
  },
200
+ {
201
+ "name": "u_materialMapWidth",
202
+ "type": "int"
203
+ },
204
+ {
205
+ "name": "u_materialMapBase",
206
+ "type": "int"
207
+ },
192
208
  {
193
209
  "name": "u_viewPosition",
194
210
  "type": "vec3"
@@ -264,6 +280,18 @@
264
280
  "format": "r32ui",
265
281
  "semantic": "transform"
266
282
  },
283
+ {
284
+ "name": "u_transformMap",
285
+ "type": "Texture2D<uint4>",
286
+ "format": "r16ui",
287
+ "semantic": "transform-map"
288
+ },
289
+ {
290
+ "name": "u_materialMap",
291
+ "type": "Texture2D<uint4>",
292
+ "format": "r16ui",
293
+ "semantic": "material-map"
294
+ },
267
295
  {
268
296
  "name": "u_materialTable",
269
297
  "type": "Texture2D<float4>",
@@ -274,10 +302,10 @@
274
302
  "textures": [],
275
303
  "samplers": []
276
304
  },
277
- "contractSha256": "f58d29684c192f3ab0daa157b1c7efcc9ff05fb4c882c54fa15ab09db69c0d72",
305
+ "contractSha256": "22220f8012e441cc97e4190a863cdfb319feb1ac63005071f807cac39da1846a",
278
306
  "languages": {
279
307
  "glsl": {
280
- "blockSize": 5312,
308
+ "blockSize": 5344,
281
309
  "layout": {
282
310
  "u_mvpMatrix": {
283
311
  "offset": 0,
@@ -311,170 +339,206 @@
311
339
  "elementStride": 0,
312
340
  "encoding": "int"
313
341
  },
314
- "u_transformLutWidth": {
342
+ "u_maskLutBase": {
315
343
  "offset": 160,
316
344
  "size": 4,
317
345
  "elementStride": 0,
318
346
  "encoding": "int"
319
347
  },
320
- "u_transformLutStride": {
348
+ "u_transformLutWidth": {
321
349
  "offset": 164,
322
350
  "size": 4,
323
351
  "elementStride": 0,
324
352
  "encoding": "int"
325
353
  },
326
- "u_clipPlanes": {
354
+ "u_transformLutStride": {
355
+ "offset": 168,
356
+ "size": 4,
357
+ "elementStride": 0,
358
+ "encoding": "int"
359
+ },
360
+ "u_transformLutBase": {
361
+ "offset": 172,
362
+ "size": 4,
363
+ "elementStride": 0,
364
+ "encoding": "int"
365
+ },
366
+ "u_transformMapWidth": {
327
367
  "offset": 176,
368
+ "size": 4,
369
+ "elementStride": 0,
370
+ "encoding": "int"
371
+ },
372
+ "u_transformMapBase": {
373
+ "offset": 180,
374
+ "size": 4,
375
+ "elementStride": 0,
376
+ "encoding": "int"
377
+ },
378
+ "u_clipPlanes": {
379
+ "offset": 192,
328
380
  "size": 96,
329
381
  "elementStride": 16,
330
382
  "encoding": "vec4[]"
331
383
  },
332
384
  "u_clipPlaneCount": {
333
- "offset": 272,
385
+ "offset": 288,
334
386
  "size": 4,
335
387
  "elementStride": 0,
336
388
  "encoding": "int"
337
389
  },
338
390
  "u_componentOrder": {
339
- "offset": 288,
391
+ "offset": 304,
340
392
  "size": 96,
341
393
  "elementStride": 16,
342
394
  "encoding": "int[]"
343
395
  },
344
396
  "u_derivedType": {
345
- "offset": 384,
397
+ "offset": 400,
346
398
  "size": 4,
347
399
  "elementStride": 0,
348
400
  "encoding": "int"
349
401
  },
350
402
  "u_nu": {
351
- "offset": 388,
403
+ "offset": 404,
352
404
  "size": 4,
353
405
  "elementStride": 0,
354
406
  "encoding": "float"
355
407
  },
356
408
  "u_bandBounds": {
357
- "offset": 400,
409
+ "offset": 416,
358
410
  "size": 1152,
359
411
  "elementStride": 16,
360
412
  "encoding": "vec2[]"
361
413
  },
362
414
  "u_numBands": {
363
- "offset": 1552,
415
+ "offset": 1568,
364
416
  "size": 4,
365
417
  "elementStride": 0,
366
418
  "encoding": "int"
367
419
  },
368
420
  "u_lowerColors": {
369
- "offset": 1568,
421
+ "offset": 1584,
370
422
  "size": 1152,
371
423
  "elementStride": 16,
372
424
  "encoding": "vec4[]"
373
425
  },
374
426
  "u_upperColors": {
375
- "offset": 2720,
427
+ "offset": 2736,
376
428
  "size": 1152,
377
429
  "elementStride": 16,
378
430
  "encoding": "vec4[]"
379
431
  },
380
432
  "u_interpModes": {
381
- "offset": 3872,
433
+ "offset": 3888,
382
434
  "size": 1152,
383
435
  "elementStride": 16,
384
436
  "encoding": "int[]"
385
437
  },
386
438
  "u_interpSteps": {
387
- "offset": 5024,
439
+ "offset": 5040,
388
440
  "size": 4,
389
441
  "elementStride": 0,
390
442
  "encoding": "int"
391
443
  },
392
444
  "u_nanColor": {
393
- "offset": 5040,
445
+ "offset": 5056,
394
446
  "size": 16,
395
447
  "elementStride": 4,
396
448
  "encoding": "vec4"
397
449
  },
398
450
  "u_uncoveredColor": {
399
- "offset": 5056,
451
+ "offset": 5072,
400
452
  "size": 16,
401
453
  "elementStride": 4,
402
454
  "encoding": "vec4"
403
455
  },
404
456
  "u_errorColor": {
405
- "offset": 5072,
457
+ "offset": 5088,
406
458
  "size": 16,
407
459
  "elementStride": 4,
408
460
  "encoding": "vec4"
409
461
  },
462
+ "u_materialMapWidth": {
463
+ "offset": 5104,
464
+ "size": 4,
465
+ "elementStride": 0,
466
+ "encoding": "int"
467
+ },
468
+ "u_materialMapBase": {
469
+ "offset": 5108,
470
+ "size": 4,
471
+ "elementStride": 0,
472
+ "encoding": "int"
473
+ },
410
474
  "u_viewPosition": {
411
- "offset": 5088,
475
+ "offset": 5120,
412
476
  "size": 12,
413
477
  "elementStride": 4,
414
478
  "encoding": "vec3"
415
479
  },
416
480
  "u_environmentSky": {
417
- "offset": 5104,
481
+ "offset": 5136,
418
482
  "size": 12,
419
483
  "elementStride": 4,
420
484
  "encoding": "vec3"
421
485
  },
422
486
  "u_environmentGround": {
423
- "offset": 5120,
487
+ "offset": 5152,
424
488
  "size": 12,
425
489
  "elementStride": 4,
426
490
  "encoding": "vec3"
427
491
  },
428
492
  "u_environmentUp": {
429
- "offset": 5136,
493
+ "offset": 5168,
430
494
  "size": 12,
431
495
  "elementStride": 4,
432
496
  "encoding": "vec3"
433
497
  },
434
498
  "u_lightPositions": {
435
- "offset": 5152,
499
+ "offset": 5184,
436
500
  "size": 64,
437
501
  "elementStride": 16,
438
502
  "encoding": "vec4[]"
439
503
  },
440
504
  "u_lightColors": {
441
- "offset": 5216,
505
+ "offset": 5248,
442
506
  "size": 64,
443
507
  "elementStride": 16,
444
508
  "encoding": "vec3[]"
445
509
  },
446
510
  "u_lightCount": {
447
- "offset": 5280,
511
+ "offset": 5312,
448
512
  "size": 4,
449
513
  "elementStride": 0,
450
514
  "encoding": "int"
451
515
  },
452
516
  "u_surfaceFinishScale": {
453
- "offset": 5284,
517
+ "offset": 5316,
454
518
  "size": 4,
455
519
  "elementStride": 0,
456
520
  "encoding": "float"
457
521
  },
458
522
  "u_surfaceFinishRoughness": {
459
- "offset": 5288,
523
+ "offset": 5320,
460
524
  "size": 4,
461
525
  "elementStride": 0,
462
526
  "encoding": "float"
463
527
  },
464
528
  "u_surfaceFinishColor": {
465
- "offset": 5292,
529
+ "offset": 5324,
466
530
  "size": 4,
467
531
  "elementStride": 0,
468
532
  "encoding": "float"
469
533
  },
470
534
  "u_colorSource": {
471
- "offset": 5296,
535
+ "offset": 5328,
472
536
  "size": 4,
473
537
  "elementStride": 0,
474
538
  "encoding": "int"
475
539
  },
476
540
  "u_opacity": {
477
- "offset": 5300,
541
+ "offset": 5332,
478
542
  "size": 4,
479
543
  "elementStride": 0,
480
544
  "encoding": "float"
@@ -490,6 +554,15 @@
490
554
  "stage": "vertex",
491
555
  "unit": 0
492
556
  },
557
+ {
558
+ "semantic": "material-map",
559
+ "texture": "u_materialMap",
560
+ "sampler": null,
561
+ "uniform": "SPIRV_Cross_Combinedu_materialMapSPIRV_Cross_DummySampler",
562
+ "component": "uint",
563
+ "stage": "vertex",
564
+ "unit": 1
565
+ },
493
566
  {
494
567
  "semantic": "transform",
495
568
  "texture": "u_transformLut",
@@ -497,7 +570,16 @@
497
570
  "uniform": "SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler",
498
571
  "component": "uint",
499
572
  "stage": "vertex",
500
- "unit": 1
573
+ "unit": 2
574
+ },
575
+ {
576
+ "semantic": "transform-map",
577
+ "texture": "u_transformMap",
578
+ "sampler": null,
579
+ "uniform": "SPIRV_Cross_Combinedu_transformMapSPIRV_Cross_DummySampler",
580
+ "component": "uint",
581
+ "stage": "vertex",
582
+ "unit": 3
501
583
  },
502
584
  {
503
585
  "semantic": "material",
@@ -506,17 +588,17 @@
506
588
  "uniform": "SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler",
507
589
  "component": "float",
508
590
  "stage": "fragment",
509
- "unit": 2
591
+ "unit": 4
510
592
  }
511
593
  ],
512
594
  "stages": {
513
595
  "vertex": {
514
- "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_int6\n{\n int data[6];\n};\n\nstruct _Array_std140_vector_float_2_72\n{\n vec2 data[72];\n};\n\nstruct _Array_std140_vector_float_4_72\n{\n vec4 data[72];\n};\n\nstruct _Array_std140_int72\n{\n int data[72];\n};\n\nstruct _Array_std140_vector_float_4_4\n{\n vec4 data[4];\n};\n\nstruct _Array_std140_vector_float_3_4\n{\n vec3 data[4];\n};\n\nlayout(std140) uniform GlobalParams_std140\n{\n layout(row_major) mat4 u_mvpMatrix;\n layout(row_major) mat4 u_modelViewMatrix;\n vec3 u_deformScale;\n vec3 u_deformRotationCenter;\n int u_maskLutWidth;\n int u_transformLutWidth;\n int u_transformLutStride;\n _Array_std140_vector_float_4_6 u_clipPlanes;\n int u_clipPlaneCount;\n _Array_std140_int6 u_componentOrder;\n int u_derivedType;\n float u_nu;\n _Array_std140_vector_float_2_72 u_bandBounds;\n int u_numBands;\n _Array_std140_vector_float_4_72 u_lowerColors;\n _Array_std140_vector_float_4_72 u_upperColors;\n _Array_std140_int72 u_interpModes;\n int u_interpSteps;\n vec4 u_nanColor;\n vec4 u_uncoveredColor;\n vec4 u_errorColor;\n vec3 u_viewPosition;\n vec3 u_environmentSky;\n vec3 u_environmentGround;\n vec3 u_environmentUp;\n _Array_std140_vector_float_4_4 u_lightPositions;\n _Array_std140_vector_float_3_4 u_lightColors;\n int u_lightCount;\n float u_surfaceFinishScale;\n float u_surfaceFinishRoughness;\n float u_surfaceFinishColor;\n int u_colorSource;\n float u_opacity;\n} globalParams;\n\nuniform highp usampler2D SPIRV_Cross_Combinedu_maskLutSPIRV_Cross_DummySampler;\nuniform highp usampler2D SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler;\n\nlayout(location = 3) in int a_maskId;\nout vec3 v0;\nout vec3 v1;\nout vec3 v2;\nout vec3 v3;\nflat out int v4;\nout vec3 v5;\nout vec3 v6;\nlayout(location = 0) in vec3 a_position;\nlayout(location = 1) in vec3 a_deformation;\nlayout(location = 2) in vec3 a_rotation;\nlayout(location = 4) in int a_componentId;\nlayout(location = 5) in vec3 a_normal;\nlayout(location = 6) in int a_materialId;\nlayout(location = 7) in vec3 a_result0;\nlayout(location = 8) in vec3 a_result1;\n\nhighp mat4 spvWorkaroundRowMajor(highp mat4 wrap) { return wrap; }\nmediump mat4 spvWorkaroundRowMajorMP(mediump mat4 wrap) { return wrap; }\n\nvoid main()\n{\n do\n {\n if (!(texelFetch(SPIRV_Cross_Combinedu_maskLutSPIRV_Cross_DummySampler, ivec2(a_maskId - globalParams.u_maskLutWidth * (a_maskId / globalParams.u_maskLutWidth), a_maskId / globalParams.u_maskLutWidth), 0).x != 0u))\n {\n gl_Position = vec4(2.0, 2.0, 2.0, 1.0);\n v0 = vec3(0.0);\n v1 = vec3(0.0);\n v2 = vec3(0.0);\n v3 = vec3(0.0);\n v4 = 0;\n v5 = vec3(0.0);\n v6 = vec3(0.0);\n break;\n }\n vec3 _464 = a_position - globalParams.u_deformRotationCenter;\n float _465 = length(a_rotation);\n vec3 _461;\n if (_465 > 9.9999999392252902907785028219223e-09)\n {\n vec3 _469 = a_rotation / vec3(_465);\n float _470 = cos(_465);\n _461 = ((_464 * _470) + (cross(_469, _464) * sin(_465))) + ((_469 * dot(_469, _464)) * (1.0 - _470));\n }\n else\n {\n _461 = _464;\n }\n vec3 _486 = (globalParams.u_deformRotationCenter + _461) + (globalParams.u_deformScale * a_deformation);\n int _569 = a_componentId * globalParams.u_transformLutStride;\n vec3 _487;\n vec3 _488;\n if (texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_569 - globalParams.u_transformLutWidth * (_569 / globalParams.u_transformLutWidth), _569 / globalParams.u_transformLutWidth), 0).x != 0u)\n {\n int _584 = (a_componentId * globalParams.u_transformLutStride) + 1;\n int _595 = (a_componentId * globalParams.u_transformLutStride) + 2;\n int _606 = (a_componentId * globalParams.u_transformLutStride) + 3;\n int _623 = (a_componentId * globalParams.u_transformLutStride) + 4;\n int _634 = (a_componentId * globalParams.u_transformLutStride) + 5;\n int _645 = (a_componentId * globalParams.u_transformLutStride) + 6;\n int _656 = (a_componentId * globalParams.u_transformLutStride) + 7;\n vec4 _670 = vec4(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_623 - globalParams.u_transformLutWidth * (_623 / globalParams.u_transformLutWidth), _623 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_634 - globalParams.u_transformLutWidth * (_634 / globalParams.u_transformLutWidth), _634 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_645 - globalParams.u_transformLutWidth * (_645 / globalParams.u_transformLutWidth), _645 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_656 - globalParams.u_transformLutWidth * (_656 / globalParams.u_transformLutWidth), _656 / globalParams.u_transformLutWidth), 0).x));\n int _674 = (a_componentId * globalParams.u_transformLutStride) + 8;\n int _685 = (a_componentId * globalParams.u_transformLutStride) + 9;\n int _696 = (a_componentId * globalParams.u_transformLutStride) + 10;\n vec3 _709 = vec3(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_674 - globalParams.u_transformLutWidth * (_674 / globalParams.u_transformLutWidth), _674 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_685 - globalParams.u_transformLutWidth * (_685 / globalParams.u_transformLutWidth), _685 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_696 - globalParams.u_transformLutWidth * (_696 / globalParams.u_transformLutWidth), _696 / globalParams.u_transformLutWidth), 0).x));\n vec3 _712 = _709 * _486;\n vec3 _717 = _670.xyz;\n vec3 _719 = cross(_717, _712) * 2.0;\n vec3 _727 = a_normal / _709;\n vec3 _732 = _670.xyz;\n vec3 _734 = cross(_732, _727) * 2.0;\n _487 = ((_712 + (_719 * _670.w)) + cross(_717, _719)) + vec3(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_584 - globalParams.u_transformLutWidth * (_584 / globalParams.u_transformLutWidth), _584 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_595 - globalParams.u_transformLutWidth * (_595 / globalParams.u_transformLutWidth), _595 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_606 - globalParams.u_transformLutWidth * (_606 / globalParams.u_transformLutWidth), _606 / globalParams.u_transformLutWidth), 0).x));\n _488 = normalize((_727 + (_734 * _670.w)) + cross(_732, _734));\n }\n else\n {\n _487 = _486;\n _488 = a_normal;\n }\n vec4 _549 = vec4(_487, 1.0);\n gl_Position = _549 * spvWorkaroundRowMajor(globalParams.u_mvpMatrix);\n v0 = _487;\n v1 = (_549 * spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)).xyz;\n v2 = _488 * mat3(spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[0].xyz, spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[1].xyz, spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[2].xyz);\n v3 = a_position;\n v4 = a_materialId;\n v5 = a_result0;\n v6 = a_result1;\n break;\n } while(false);\n}\n\n",
515
- "sha256": "077503eb44068aa13ec960b351f6171e873e88da4feab5c6baeb13baf987eb1a"
596
+ "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_int6\n{\n int data[6];\n};\n\nstruct _Array_std140_vector_float_2_72\n{\n vec2 data[72];\n};\n\nstruct _Array_std140_vector_float_4_72\n{\n vec4 data[72];\n};\n\nstruct _Array_std140_int72\n{\n int data[72];\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 _Array_std140_int6 u_componentOrder;\n int u_derivedType;\n float u_nu;\n _Array_std140_vector_float_2_72 u_bandBounds;\n int u_numBands;\n _Array_std140_vector_float_4_72 u_lowerColors;\n _Array_std140_vector_float_4_72 u_upperColors;\n _Array_std140_int72 u_interpModes;\n int u_interpSteps;\n vec4 u_nanColor;\n vec4 u_uncoveredColor;\n vec4 u_errorColor;\n int u_materialMapWidth;\n int u_materialMapBase;\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;\nuniform highp usampler2D SPIRV_Cross_Combinedu_materialMapSPIRV_Cross_DummySampler;\n\nlayout(location = 3) in int a_atomId;\nout vec3 v0;\nout vec3 v1;\nout vec3 v2;\nout vec3 v3;\nflat out int v4;\nout vec3 v5;\nout vec3 v6;\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 vec3 a_result0;\nlayout(location = 6) in vec3 a_result1;\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 _494 = globalParams.u_maskLutBase + a_atomId;\n if (!(texelFetch(SPIRV_Cross_Combinedu_maskLutSPIRV_Cross_DummySampler, ivec2(_494 - globalParams.u_maskLutWidth * (_494 / globalParams.u_maskLutWidth), _494 / globalParams.u_maskLutWidth), 0).x != 0u))\n {\n gl_Position = vec4(2.0, 2.0, 2.0, 1.0);\n v0 = vec3(0.0);\n v1 = vec3(0.0);\n v2 = vec3(0.0);\n v3 = vec3(0.0);\n v4 = 0;\n v5 = vec3(0.0);\n v6 = vec3(0.0);\n break;\n }\n vec3 _524 = a_position - globalParams.u_deformRotationCenter;\n float _525 = length(a_rotation);\n vec3 _521;\n if (_525 > 9.9999999392252902907785028219223e-09)\n {\n vec3 _529 = a_rotation / vec3(_525);\n float _530 = cos(_525);\n _521 = ((_524 * _530) + (cross(_529, _524) * sin(_525))) + ((_529 * dot(_529, _524)) * (1.0 - _530));\n }\n else\n {\n _521 = _524;\n }\n vec3 _546 = (globalParams.u_deformRotationCenter + _521) + (globalParams.u_deformScale * a_deformation);\n int _651 = globalParams.u_transformMapBase + a_atomId;\n int _659 = int(texelFetch(SPIRV_Cross_Combinedu_transformMapSPIRV_Cross_DummySampler, ivec2(_651 - globalParams.u_transformMapWidth * (_651 / globalParams.u_transformMapWidth), _651 / globalParams.u_transformMapWidth), 0).x);\n int _663 = (globalParams.u_transformLutBase + _659) * globalParams.u_transformLutStride;\n vec3 _547;\n vec3 _548;\n if (texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_663 - globalParams.u_transformLutWidth * (_663 / globalParams.u_transformLutWidth), _663 / globalParams.u_transformLutWidth), 0).x != 0u)\n {\n int _679 = ((globalParams.u_transformLutBase + _659) * globalParams.u_transformLutStride) + 1;\n int _691 = ((globalParams.u_transformLutBase + _659) * globalParams.u_transformLutStride) + 2;\n int _703 = ((globalParams.u_transformLutBase + _659) * globalParams.u_transformLutStride) + 3;\n int _721 = ((globalParams.u_transformLutBase + _659) * globalParams.u_transformLutStride) + 4;\n int _733 = ((globalParams.u_transformLutBase + _659) * globalParams.u_transformLutStride) + 5;\n int _745 = ((globalParams.u_transformLutBase + _659) * globalParams.u_transformLutStride) + 6;\n int _757 = ((globalParams.u_transformLutBase + _659) * globalParams.u_transformLutStride) + 7;\n vec4 _771 = vec4(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_721 - globalParams.u_transformLutWidth * (_721 / globalParams.u_transformLutWidth), _721 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_733 - globalParams.u_transformLutWidth * (_733 / globalParams.u_transformLutWidth), _733 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_745 - globalParams.u_transformLutWidth * (_745 / globalParams.u_transformLutWidth), _745 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_757 - globalParams.u_transformLutWidth * (_757 / globalParams.u_transformLutWidth), _757 / globalParams.u_transformLutWidth), 0).x));\n int _776 = ((globalParams.u_transformLutBase + _659) * globalParams.u_transformLutStride) + 8;\n int _788 = ((globalParams.u_transformLutBase + _659) * globalParams.u_transformLutStride) + 9;\n int _800 = ((globalParams.u_transformLutBase + _659) * globalParams.u_transformLutStride) + 10;\n vec3 _813 = vec3(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_776 - globalParams.u_transformLutWidth * (_776 / globalParams.u_transformLutWidth), _776 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_788 - globalParams.u_transformLutWidth * (_788 / globalParams.u_transformLutWidth), _788 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_800 - globalParams.u_transformLutWidth * (_800 / globalParams.u_transformLutWidth), _800 / globalParams.u_transformLutWidth), 0).x));\n vec3 _816 = _813 * _546;\n vec3 _821 = _771.xyz;\n vec3 _823 = cross(_821, _816) * 2.0;\n vec3 _831 = a_normal / _813;\n vec3 _836 = _771.xyz;\n vec3 _838 = cross(_836, _831) * 2.0;\n _547 = ((_816 + (_823 * _771.w)) + cross(_821, _823)) + vec3(uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_679 - globalParams.u_transformLutWidth * (_679 / globalParams.u_transformLutWidth), _679 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_691 - globalParams.u_transformLutWidth * (_691 / globalParams.u_transformLutWidth), _691 / globalParams.u_transformLutWidth), 0).x), uintBitsToFloat(texelFetch(SPIRV_Cross_Combinedu_transformLutSPIRV_Cross_DummySampler, ivec2(_703 - globalParams.u_transformLutWidth * (_703 / globalParams.u_transformLutWidth), _703 / globalParams.u_transformLutWidth), 0).x));\n _548 = normalize((_831 + (_838 * _771.w)) + cross(_836, _838));\n }\n else\n {\n _547 = _546;\n _548 = a_normal;\n }\n vec4 _626 = vec4(_547, 1.0);\n int _846 = globalParams.u_materialMapBase + a_atomId;\n gl_Position = _626 * spvWorkaroundRowMajor(globalParams.u_mvpMatrix);\n v0 = _547;\n v1 = (_626 * spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)).xyz;\n v2 = _548 * mat3(spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[0].xyz, spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[1].xyz, spvWorkaroundRowMajor(globalParams.u_modelViewMatrix)[2].xyz);\n v3 = a_position;\n v4 = int(texelFetch(SPIRV_Cross_Combinedu_materialMapSPIRV_Cross_DummySampler, ivec2(_846 - globalParams.u_materialMapWidth * (_846 / globalParams.u_materialMapWidth), _846 / globalParams.u_materialMapWidth), 0).x);\n v5 = a_result0;\n v6 = a_result1;\n break;\n } while(false);\n}\n\n",
597
+ "sha256": "f4e961eace6071cdb1c7e69e37bf2a1403194447fe8ed143a8176aa2d77602a6"
516
598
  },
517
599
  "fragment": {
518
- "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_int6\n{\n int data[6];\n};\n\nstruct _Array_std140_vector_float_2_72\n{\n highp vec2 data[72];\n};\n\nstruct _Array_std140_vector_float_4_72\n{\n highp vec4 data[72];\n};\n\nstruct _Array_std140_int72\n{\n int data[72];\n};\n\nstruct _Array_std140_vector_float_4_4\n{\n highp vec4 data[4];\n};\n\nstruct _Array_std140_vector_float_3_4\n{\n highp vec3 data[4];\n};\n\nlayout(std140) uniform GlobalParams_std140\n{\n layout(row_major) highp mat4 u_mvpMatrix;\n layout(row_major) highp mat4 u_modelViewMatrix;\n highp vec3 u_deformScale;\n highp vec3 u_deformRotationCenter;\n int u_maskLutWidth;\n int u_transformLutWidth;\n int u_transformLutStride;\n _Array_std140_vector_float_4_6 u_clipPlanes;\n int u_clipPlaneCount;\n _Array_std140_int6 u_componentOrder;\n int u_derivedType;\n highp float u_nu;\n _Array_std140_vector_float_2_72 u_bandBounds;\n int u_numBands;\n _Array_std140_vector_float_4_72 u_lowerColors;\n _Array_std140_vector_float_4_72 u_upperColors;\n _Array_std140_int72 u_interpModes;\n int u_interpSteps;\n highp vec4 u_nanColor;\n highp vec4 u_uncoveredColor;\n highp vec4 u_errorColor;\n highp vec3 u_viewPosition;\n highp vec3 u_environmentSky;\n highp vec3 u_environmentGround;\n highp vec3 u_environmentUp;\n _Array_std140_vector_float_4_4 u_lightPositions;\n _Array_std140_vector_float_3_4 u_lightColors;\n int u_lightCount;\n highp float u_surfaceFinishScale;\n highp float u_surfaceFinishRoughness;\n highp float u_surfaceFinishColor;\n int u_colorSource;\n highp float u_opacity;\n} globalParams;\n\nuniform highp sampler2D SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler;\n\nin highp vec3 v0;\nflat in int v4;\nin highp vec3 v3;\nin highp vec3 v5;\nin highp vec3 v6;\nlayout(location = 0) out highp vec4 entryPointParam_fragmentMain;\nin highp vec3 v2;\nin highp vec3 v1;\n\nvoid main()\n{\n bool _3580 = false;\n bool _1863 = false;\n bool _1518 = false;\n do\n {\n _1518 = false;\n bool _1519;\n do\n {\n int _1520 = 0;\n for (;;)\n {\n if (!(_1520 < 6))\n {\n break;\n }\n if (_1520 >= globalParams.u_clipPlaneCount)\n {\n break;\n }\n if ((dot(globalParams.u_clipPlanes.data[_1520].xyz, v0) + globalParams.u_clipPlanes.data[_1520].w) < 0.0)\n {\n _1518 = true;\n _1519 = false;\n break;\n }\n _1520++;\n continue;\n }\n if (_1518)\n {\n break;\n }\n _1518 = true;\n _1519 = true;\n break;\n } while(false);\n if (!_1519)\n {\n discard;\n }\n highp vec4 _1566 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 0), 0);\n highp vec4 _1570 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 1), 0);\n highp vec4 _1574 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 2), 0);\n highp vec3 _1577 = _1566.xyz;\n highp float _1579 = _1566.w;\n highp vec3 _1581 = _1570.xyz;\n highp float _1583 = _1570.w;\n highp float _1585 = _1574.x;\n highp vec3 _4325 = _1577;\n highp float _4326 = _1579;\n highp float _4327 = _1583;\n highp float _4328 = _1585;\n highp vec3 _4329 = _1581;\n highp vec3 _4353 = _1577;\n highp float _4354 = _1579;\n highp float _4355 = _1583;\n highp float _4356 = _1585;\n highp vec3 _4357 = _1581;\n highp float _4375 = globalParams.u_surfaceFinishScale;\n highp float _4376 = globalParams.u_surfaceFinishRoughness;\n highp float _4377 = globalParams.u_surfaceFinishColor;\n highp vec3 _4245;\n highp float _4246;\n highp float _4247;\n highp float _4248;\n highp vec3 _4249;\n do\n {\n if (_4375 <= 0.0)\n {\n _4245 = _4353;\n _4246 = _4354;\n _4247 = _4355;\n _4248 = _4356;\n _4249 = _4357;\n break;\n }\n highp vec3 _1600 = v3 / vec3(_4375);\n highp vec3 _1627 = floor(_1600);\n highp vec3 _1628 = _1600 - _1627;\n highp vec3 _1633 = (_1628 * _1628) * (vec3(3.0) - (_1628 * 2.0));\n ivec3 _1634 = ivec3(_1627);\n uint _1673 = (((uint(_1634.x) * 2376512323u) + (uint(_1634.y) * 3625334849u)) + (uint(_1634.z) * 3407524639u)) + 2654435769u;\n uint _1676 = (_1673 ^ (_1673 >> uint(15))) * 739982445u;\n uint _1679 = (_1676 ^ (_1676 >> uint(12))) * 695872825u;\n ivec3 _1636 = _1634 + ivec3(1, 0, 0);\n uint _1698 = (((uint(_1636.x) * 2376512323u) + (uint(_1636.y) * 3625334849u)) + (uint(_1636.z) * 3407524639u)) + 2654435769u;\n uint _1701 = (_1698 ^ (_1698 >> uint(15))) * 739982445u;\n uint _1704 = (_1701 ^ (_1701 >> uint(12))) * 695872825u;\n ivec3 _1638 = _1634 + ivec3(0, 1, 0);\n uint _1723 = (((uint(_1638.x) * 2376512323u) + (uint(_1638.y) * 3625334849u)) + (uint(_1638.z) * 3407524639u)) + 2654435769u;\n uint _1726 = (_1723 ^ (_1723 >> uint(15))) * 739982445u;\n uint _1729 = (_1726 ^ (_1726 >> uint(12))) * 695872825u;\n ivec3 _1640 = _1634 + ivec3(1, 1, 0);\n uint _1748 = (((uint(_1640.x) * 2376512323u) + (uint(_1640.y) * 3625334849u)) + (uint(_1640.z) * 3407524639u)) + 2654435769u;\n uint _1751 = (_1748 ^ (_1748 >> uint(15))) * 739982445u;\n uint _1754 = (_1751 ^ (_1751 >> uint(12))) * 695872825u;\n ivec3 _1642 = _1634 + ivec3(0, 0, 1);\n uint _1773 = (((uint(_1642.x) * 2376512323u) + (uint(_1642.y) * 3625334849u)) + (uint(_1642.z) * 3407524639u)) + 2654435769u;\n uint _1776 = (_1773 ^ (_1773 >> uint(15))) * 739982445u;\n uint _1779 = (_1776 ^ (_1776 >> uint(12))) * 695872825u;\n ivec3 _1644 = _1634 + ivec3(1, 0, 1);\n uint _1798 = (((uint(_1644.x) * 2376512323u) + (uint(_1644.y) * 3625334849u)) + (uint(_1644.z) * 3407524639u)) + 2654435769u;\n uint _1801 = (_1798 ^ (_1798 >> uint(15))) * 739982445u;\n uint _1804 = (_1801 ^ (_1801 >> uint(12))) * 695872825u;\n ivec3 _1646 = _1634 + ivec3(0, 1, 1);\n uint _1823 = (((uint(_1646.x) * 2376512323u) + (uint(_1646.y) * 3625334849u)) + (uint(_1646.z) * 3407524639u)) + 2654435769u;\n uint _1826 = (_1823 ^ (_1823 >> uint(15))) * 739982445u;\n uint _1829 = (_1826 ^ (_1826 >> uint(12))) * 695872825u;\n ivec3 _1648 = _1634 + ivec3(1);\n uint _1848 = (((uint(_1648.x) * 2376512323u) + (uint(_1648.y) * 3625334849u)) + (uint(_1648.z) * 3407524639u)) + 2654435769u;\n uint _1851 = (_1848 ^ (_1848 >> uint(15))) * 739982445u;\n uint _1854 = (_1851 ^ (_1851 >> uint(12))) * 695872825u;\n highp float _1650 = _1633.x;\n highp float _1655 = _1633.y;\n highp float _1603 = (mix(mix(mix(float((_1679 ^ (_1679 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1704 ^ (_1704 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1650), mix(float((_1729 ^ (_1729 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1754 ^ (_1754 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1650), _1655), mix(mix(float((_1779 ^ (_1779 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1804 ^ (_1804 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1650), mix(float((_1829 ^ (_1829 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1854 ^ (_1854 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1650), _1655), _1633.z) * 2.0) - 1.0;\n _4245 = clamp(_4353 * (1.0 + (_1603 * _4377)), vec3(0.0), vec3(1.0));\n _4246 = _4354;\n _4247 = clamp(_4355 + (_1603 * _4376), 0.0, 1.0);\n _4248 = _4356;\n _4249 = _4357;\n break;\n } while(false);\n _4325 = _4245;\n _4326 = _4246;\n _4327 = _4247;\n _4328 = _4248;\n _4329 = _4249;\n _1863 = false;\n highp float _1864;\n do\n {\n highp float _1865[6] = float[](v5.x, v5.y, v5.z, v6.x, v6.y, v6.z);\n int _1867 = 0;\n highp float _1866[6];\n for (;;)\n {\n if (!(_1867 < 6))\n {\n break;\n }\n _1866[_1867] = _1865[globalParams.u_componentOrder.data[_1867]];\n _1867++;\n continue;\n }\n switch (globalParams.u_derivedType)\n {\n case 0:\n {\n _1863 = true;\n _1864 = _1866[0];\n break;\n }\n case 1:\n {\n _1863 = true;\n _1864 = _1866[1];\n break;\n }\n case 2:\n {\n _1863 = true;\n _1864 = _1866[2];\n break;\n }\n case 3:\n {\n _1863 = true;\n _1864 = _1866[3];\n break;\n }\n case 4:\n {\n _1863 = true;\n _1864 = _1866[4];\n break;\n }\n case 5:\n {\n _1863 = true;\n _1864 = _1866[5];\n break;\n }\n case 6:\n {\n _1863 = true;\n _1864 = ((_1866[0] + _1866[1]) + _1866[2]) * 0.3333333432674407958984375;\n break;\n }\n case 7:\n {\n highp float _3543 = _1866[0] - _1866[1];\n highp float _3547 = _1866[1] - _1866[2];\n highp float _3550 = _1866[2] - _1866[0];\n _1863 = true;\n _1864 = sqrt((0.5 * (((_3543 * _3543) + (_3547 * _3547)) + (_3550 * _3550))) + (3.0 * (((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]))));\n break;\n }\n case 8:\n {\n highp float _3510 = _1866[0] - _1866[1];\n highp float _3514 = _1866[1] - _1866[2];\n highp float _3517 = _1866[2] - _1866[0];\n _1863 = true;\n _1864 = sqrt((0.5 * (((_3510 * _3510) + (_3514 * _3514)) + (_3517 * _3517))) + (3.0 * (((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5])))) / (1.0 + globalParams.u_nu);\n break;\n }\n case 9:\n {\n highp float _3477 = _1866[0] - _1866[1];\n highp float _3481 = _1866[1] - _1866[2];\n highp float _3484 = _1866[2] - _1866[0];\n _1863 = true;\n _1864 = sqrt((0.5 * (((_3477 * _3477) + (_3481 * _3481)) + (_3484 * _3484))) + (0.75 * (((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5])))) / (1.0 + globalParams.u_nu);\n break;\n }\n case 10:\n {\n highp float _3444 = _1866[0] - _1866[1];\n highp float _3448 = _1866[1] - _1866[2];\n highp float _3451 = _1866[2] - _1866[0];\n _1863 = true;\n _1864 = 0.4714045226573944091796875 * sqrt((0.5 * (((_3444 * _3444) + (_3448 * _3448)) + (_3451 * _3451))) + (3.0 * (((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]))));\n break;\n }\n case 11:\n {\n highp vec3 _3363;\n do\n {\n highp float _3371 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);\n if (_3371 <= 0.0)\n {\n highp float _3375 = min(_1866[0], min(_1866[1], _1866[2]));\n highp float _3377 = max(_1866[0], max(_1866[1], _1866[2]));\n _3363 = vec3(_3375, (((_1866[0] + _1866[1]) + _1866[2]) - _3375) - _3377, _3377);\n break;\n }\n highp float _3385 = (_1866[0] + _1866[1]) + _1866[2];\n highp float _3386 = _3385 * 0.3333333432674407958984375;\n highp float _3387 = _1866[0] - _3386;\n highp float _3389 = _1866[1] - _3386;\n highp float _3392 = _1866[2] - _3386;\n highp float _3398 = sqrt(((((_3387 * _3387) + (_3389 * _3389)) + (_3392 * _3392)) + (2.0 * _3371)) * 0.16666667163372039794921875);\n highp float _3400 = _3389 / _3398;\n highp float _3401 = _3392 / _3398;\n highp float _3402 = _1866[3] / _3398;\n highp float _3403 = _1866[4] / _3398;\n highp float _3404 = _1866[5] / _3398;\n highp float _3422 = acos(clamp(0.5 * ((((_3387 / _3398) * ((_3400 * _3401) - (_3403 * _3403))) - (_3402 * ((_3402 * _3401) - (_3403 * _3404)))) + (_3404 * ((_3402 * _3403) - (_3400 * _3404)))), -1.0, 1.0)) * 0.3333333432674407958984375;\n highp float _3423 = 2.0 * _3398;\n highp float _3426 = _3386 + (_3423 * cos(_3422));\n highp float _3430 = _3386 + (_3423 * cos(_3422 + 2.094395160675048828125));\n _3363 = vec3(_3430, (_3385 - _3426) - _3430, _3426);\n break;\n } while(false);\n _1863 = true;\n _1864 = 0.5 * (_3363.z - _3363.x);\n break;\n }\n case 12:\n {\n highp vec3 _3270;\n do\n {\n highp float _3278 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);\n if (_3278 <= 0.0)\n {\n highp float _3282 = min(_1866[0], min(_1866[1], _1866[2]));\n highp float _3284 = max(_1866[0], max(_1866[1], _1866[2]));\n _3270 = vec3(_3282, (((_1866[0] + _1866[1]) + _1866[2]) - _3282) - _3284, _3284);\n break;\n }\n highp float _3292 = (_1866[0] + _1866[1]) + _1866[2];\n highp float _3293 = _3292 * 0.3333333432674407958984375;\n highp float _3294 = _1866[0] - _3293;\n highp float _3296 = _1866[1] - _3293;\n highp float _3299 = _1866[2] - _3293;\n highp float _3305 = sqrt(((((_3294 * _3294) + (_3296 * _3296)) + (_3299 * _3299)) + (2.0 * _3278)) * 0.16666667163372039794921875);\n highp float _3307 = _3296 / _3305;\n highp float _3308 = _3299 / _3305;\n highp float _3309 = _1866[3] / _3305;\n highp float _3310 = _1866[4] / _3305;\n highp float _3311 = _1866[5] / _3305;\n highp float _3329 = acos(clamp(0.5 * ((((_3294 / _3305) * ((_3307 * _3308) - (_3310 * _3310))) - (_3309 * ((_3309 * _3308) - (_3310 * _3311)))) + (_3311 * ((_3309 * _3310) - (_3307 * _3311)))), -1.0, 1.0)) * 0.3333333432674407958984375;\n highp float _3330 = 2.0 * _3305;\n highp float _3333 = _3293 + (_3330 * cos(_3329));\n highp float _3337 = _3293 + (_3330 * cos(_3329 + 2.094395160675048828125));\n _3270 = vec3(_3337, (_3292 - _3333) - _3337, _3333);\n break;\n } while(false);\n _1863 = true;\n _1864 = 0.5 * (_3270.z + _3270.x);\n break;\n }\n case 13:\n {\n highp vec3 _3177;\n do\n {\n highp float _3185 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);\n if (_3185 <= 0.0)\n {\n highp float _3189 = min(_1866[0], min(_1866[1], _1866[2]));\n highp float _3191 = max(_1866[0], max(_1866[1], _1866[2]));\n _3177 = vec3(_3189, (((_1866[0] + _1866[1]) + _1866[2]) - _3189) - _3191, _3191);\n break;\n }\n highp float _3199 = (_1866[0] + _1866[1]) + _1866[2];\n highp float _3200 = _3199 * 0.3333333432674407958984375;\n highp float _3201 = _1866[0] - _3200;\n highp float _3203 = _1866[1] - _3200;\n highp float _3206 = _1866[2] - _3200;\n highp float _3212 = sqrt(((((_3201 * _3201) + (_3203 * _3203)) + (_3206 * _3206)) + (2.0 * _3185)) * 0.16666667163372039794921875);\n highp float _3214 = _3203 / _3212;\n highp float _3215 = _3206 / _3212;\n highp float _3216 = _1866[3] / _3212;\n highp float _3217 = _1866[4] / _3212;\n highp float _3218 = _1866[5] / _3212;\n highp float _3236 = acos(clamp(0.5 * ((((_3201 / _3212) * ((_3214 * _3215) - (_3217 * _3217))) - (_3216 * ((_3216 * _3215) - (_3217 * _3218)))) + (_3218 * ((_3216 * _3217) - (_3214 * _3218)))), -1.0, 1.0)) * 0.3333333432674407958984375;\n highp float _3237 = 2.0 * _3212;\n highp float _3240 = _3200 + (_3237 * cos(_3236));\n highp float _3244 = _3200 + (_3237 * cos(_3236 + 2.094395160675048828125));\n _3177 = vec3(_3244, (_3199 - _3240) - _3244, _3240);\n break;\n } while(false);\n _1863 = true;\n _1864 = _3177.z - _3177.x;\n break;\n }\n case 14:\n {\n highp vec3 _3071;\n do\n {\n highp float _3079 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);\n if (_3079 <= 0.0)\n {\n highp float _3083 = min(_1866[0], min(_1866[1], _1866[2]));\n highp float _3085 = max(_1866[0], max(_1866[1], _1866[2]));\n _3071 = vec3(_3083, (((_1866[0] + _1866[1]) + _1866[2]) - _3083) - _3085, _3085);\n break;\n }\n highp float _3093 = (_1866[0] + _1866[1]) + _1866[2];\n highp float _3094 = _3093 * 0.3333333432674407958984375;\n highp float _3095 = _1866[0] - _3094;\n highp float _3097 = _1866[1] - _3094;\n highp float _3100 = _1866[2] - _3094;\n highp float _3106 = sqrt(((((_3095 * _3095) + (_3097 * _3097)) + (_3100 * _3100)) + (2.0 * _3079)) * 0.16666667163372039794921875);\n highp float _3108 = _3097 / _3106;\n highp float _3109 = _3100 / _3106;\n highp float _3110 = _1866[3] / _3106;\n highp float _3111 = _1866[4] / _3106;\n highp float _3112 = _1866[5] / _3106;\n highp float _3130 = acos(clamp(0.5 * ((((_3095 / _3106) * ((_3108 * _3109) - (_3111 * _3111))) - (_3110 * ((_3110 * _3109) - (_3111 * _3112)))) + (_3112 * ((_3110 * _3111) - (_3108 * _3112)))), -1.0, 1.0)) * 0.3333333432674407958984375;\n highp float _3131 = 2.0 * _3106;\n highp float _3134 = _3094 + (_3131 * cos(_3130));\n highp float _3138 = _3094 + (_3131 * cos(_3130 + 2.094395160675048828125));\n _3071 = vec3(_3138, (_3093 - _3134) - _3138, _3134);\n break;\n } while(false);\n highp float _3145;\n if (abs(_3071.x) > (abs(_3071.z) * 1.000010013580322265625))\n {\n _3145 = _3071.x;\n }\n else\n {\n _3145 = _3071.z;\n }\n _1863 = true;\n _1864 = _3145;\n break;\n }\n case 15:\n {\n highp vec3 _2965;\n do\n {\n highp float _4435 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);\n if ((0.25 * _4435) <= 0.0)\n {\n highp float _2977 = min(_1866[0], min(_1866[1], _1866[2]));\n highp float _2979 = max(_1866[0], max(_1866[1], _1866[2]));\n _2965 = vec3(_2977, (((_1866[0] + _1866[1]) + _1866[2]) - _2977) - _2979, _2979);\n break;\n }\n highp float _2987 = (_1866[0] + _1866[1]) + _1866[2];\n highp float _2988 = _2987 * 0.3333333432674407958984375;\n highp float _2989 = _1866[0] - _2988;\n highp float _2991 = _1866[1] - _2988;\n highp float _2994 = _1866[2] - _2988;\n highp float _3000 = sqrt(((((_2989 * _2989) + (_2991 * _2991)) + (_2994 * _2994)) + (_4435 * 0.5)) * 0.16666667163372039794921875);\n highp float _3002 = _2991 / _3000;\n highp float _3003 = _2994 / _3000;\n highp float _3004 = (0.5 * _1866[3]) / _3000;\n highp float _3005 = (0.5 * _1866[4]) / _3000;\n highp float _3006 = (0.5 * _1866[5]) / _3000;\n highp float _3024 = acos(clamp(0.5 * ((((_2989 / _3000) * ((_3002 * _3003) - (_3005 * _3005))) - (_3004 * ((_3004 * _3003) - (_3005 * _3006)))) + (_3006 * ((_3004 * _3005) - (_3002 * _3006)))), -1.0, 1.0)) * 0.3333333432674407958984375;\n highp float _3025 = 2.0 * _3000;\n highp float _3028 = _2988 + (_3025 * cos(_3024));\n highp float _3032 = _2988 + (_3025 * cos(_3024 + 2.094395160675048828125));\n _2965 = vec3(_3032, (_2987 - _3028) - _3032, _3028);\n break;\n } while(false);\n highp float _3039;\n if (abs(_2965.x) > (abs(_2965.z) * 1.000010013580322265625))\n {\n _3039 = _2965.x;\n }\n else\n {\n _3039 = _2965.z;\n }\n _1863 = true;\n _1864 = _3039;\n break;\n }\n case 16:\n {\n _1863 = true;\n _1864 = (((((_1866[0] * _1866[1]) * _1866[2]) + (((2.0 * _1866[3]) * _1866[4]) * _1866[5])) - ((_1866[3] * _1866[3]) * _1866[2])) - ((_1866[4] * _1866[4]) * _1866[0])) - ((_1866[5] * _1866[5]) * _1866[1]);\n break;\n }\n case 17:\n {\n highp vec3 _2843;\n do\n {\n highp float _2851 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);\n if (_2851 <= 0.0)\n {\n highp float _2855 = min(_1866[0], min(_1866[1], _1866[2]));\n highp float _2857 = max(_1866[0], max(_1866[1], _1866[2]));\n _2843 = vec3(_2855, (((_1866[0] + _1866[1]) + _1866[2]) - _2855) - _2857, _2857);\n break;\n }\n highp float _2865 = (_1866[0] + _1866[1]) + _1866[2];\n highp float _2866 = _2865 * 0.3333333432674407958984375;\n highp float _2867 = _1866[0] - _2866;\n highp float _2869 = _1866[1] - _2866;\n highp float _2872 = _1866[2] - _2866;\n highp float _2878 = sqrt(((((_2867 * _2867) + (_2869 * _2869)) + (_2872 * _2872)) + (2.0 * _2851)) * 0.16666667163372039794921875);\n highp float _2880 = _2869 / _2878;\n highp float _2881 = _2872 / _2878;\n highp float _2882 = _1866[3] / _2878;\n highp float _2883 = _1866[4] / _2878;\n highp float _2884 = _1866[5] / _2878;\n highp float _2902 = acos(clamp(0.5 * ((((_2867 / _2878) * ((_2880 * _2881) - (_2883 * _2883))) - (_2882 * ((_2882 * _2881) - (_2883 * _2884)))) + (_2884 * ((_2882 * _2883) - (_2880 * _2884)))), -1.0, 1.0)) * 0.3333333432674407958984375;\n highp float _2903 = 2.0 * _2878;\n highp float _2906 = _2866 + (_2903 * cos(_2902));\n highp float _2910 = _2866 + (_2903 * cos(_2902 + 2.094395160675048828125));\n _2843 = vec3(_2910, (_2865 - _2906) - _2910, _2906);\n break;\n } while(false);\n _1863 = true;\n _1864 = _2843.x;\n break;\n }\n case 18:\n {\n highp vec3 _2750;\n do\n {\n highp float _4430 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);\n if ((0.25 * _4430) <= 0.0)\n {\n highp float _2762 = min(_1866[0], min(_1866[1], _1866[2]));\n highp float _2764 = max(_1866[0], max(_1866[1], _1866[2]));\n _2750 = vec3(_2762, (((_1866[0] + _1866[1]) + _1866[2]) - _2762) - _2764, _2764);\n break;\n }\n highp float _2772 = (_1866[0] + _1866[1]) + _1866[2];\n highp float _2773 = _2772 * 0.3333333432674407958984375;\n highp float _2774 = _1866[0] - _2773;\n highp float _2776 = _1866[1] - _2773;\n highp float _2779 = _1866[2] - _2773;\n highp float _2785 = sqrt(((((_2774 * _2774) + (_2776 * _2776)) + (_2779 * _2779)) + (_4430 * 0.5)) * 0.16666667163372039794921875);\n highp float _2787 = _2776 / _2785;\n highp float _2788 = _2779 / _2785;\n highp float _2789 = (0.5 * _1866[3]) / _2785;\n highp float _2790 = (0.5 * _1866[4]) / _2785;\n highp float _2791 = (0.5 * _1866[5]) / _2785;\n highp float _2809 = acos(clamp(0.5 * ((((_2774 / _2785) * ((_2787 * _2788) - (_2790 * _2790))) - (_2789 * ((_2789 * _2788) - (_2790 * _2791)))) + (_2791 * ((_2789 * _2790) - (_2787 * _2791)))), -1.0, 1.0)) * 0.3333333432674407958984375;\n highp float _2810 = 2.0 * _2785;\n highp float _2813 = _2773 + (_2810 * cos(_2809));\n highp float _2817 = _2773 + (_2810 * cos(_2809 + 2.094395160675048828125));\n _2750 = vec3(_2817, (_2772 - _2813) - _2817, _2813);\n break;\n } while(false);\n _1863 = true;\n _1864 = _2750.x;\n break;\n }\n case 19:\n {\n highp vec3 _2646;\n do\n {\n highp float _2654 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);\n if (_2654 <= 0.0)\n {\n highp float _2658 = min(_1866[0], min(_1866[1], _1866[2]));\n highp float _2660 = max(_1866[0], max(_1866[1], _1866[2]));\n _2646 = vec3(_2658, (((_1866[0] + _1866[1]) + _1866[2]) - _2658) - _2660, _2660);\n break;\n }\n highp float _2668 = (_1866[0] + _1866[1]) + _1866[2];\n highp float _2669 = _2668 * 0.3333333432674407958984375;\n highp float _2670 = _1866[0] - _2669;\n highp float _2672 = _1866[1] - _2669;\n highp float _2675 = _1866[2] - _2669;\n highp float _2681 = sqrt(((((_2670 * _2670) + (_2672 * _2672)) + (_2675 * _2675)) + (2.0 * _2654)) * 0.16666667163372039794921875);\n highp float _2683 = _2672 / _2681;\n highp float _2684 = _2675 / _2681;\n highp float _2685 = _1866[3] / _2681;\n highp float _2686 = _1866[4] / _2681;\n highp float _2687 = _1866[5] / _2681;\n highp float _2705 = acos(clamp(0.5 * ((((_2670 / _2681) * ((_2683 * _2684) - (_2686 * _2686))) - (_2685 * ((_2685 * _2684) - (_2686 * _2687)))) + (_2687 * ((_2685 * _2686) - (_2683 * _2687)))), -1.0, 1.0)) * 0.3333333432674407958984375;\n highp float _2706 = 2.0 * _2681;\n highp float _2709 = _2669 + (_2706 * cos(_2705));\n highp float _2713 = _2669 + (_2706 * cos(_2705 + 2.094395160675048828125));\n _2646 = vec3(_2713, (_2668 - _2709) - _2713, _2709);\n break;\n } while(false);\n _1863 = true;\n _1864 = _2646.x - (((_1866[0] + _1866[1]) + _1866[2]) * 0.3333333432674407958984375);\n break;\n }\n case 20:\n {\n highp vec3 _2553;\n do\n {\n highp float _2561 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);\n if (_2561 <= 0.0)\n {\n highp float _2565 = min(_1866[0], min(_1866[1], _1866[2]));\n highp float _2567 = max(_1866[0], max(_1866[1], _1866[2]));\n _2553 = vec3(_2565, (((_1866[0] + _1866[1]) + _1866[2]) - _2565) - _2567, _2567);\n break;\n }\n highp float _2575 = (_1866[0] + _1866[1]) + _1866[2];\n highp float _2576 = _2575 * 0.3333333432674407958984375;\n highp float _2577 = _1866[0] - _2576;\n highp float _2579 = _1866[1] - _2576;\n highp float _2582 = _1866[2] - _2576;\n highp float _2588 = sqrt(((((_2577 * _2577) + (_2579 * _2579)) + (_2582 * _2582)) + (2.0 * _2561)) * 0.16666667163372039794921875);\n highp float _2590 = _2579 / _2588;\n highp float _2591 = _2582 / _2588;\n highp float _2592 = _1866[3] / _2588;\n highp float _2593 = _1866[4] / _2588;\n highp float _2594 = _1866[5] / _2588;\n highp float _2612 = acos(clamp(0.5 * ((((_2577 / _2588) * ((_2590 * _2591) - (_2593 * _2593))) - (_2592 * ((_2592 * _2591) - (_2593 * _2594)))) + (_2594 * ((_2592 * _2593) - (_2590 * _2594)))), -1.0, 1.0)) * 0.3333333432674407958984375;\n highp float _2613 = 2.0 * _2588;\n highp float _2616 = _2576 + (_2613 * cos(_2612));\n highp float _2620 = _2576 + (_2613 * cos(_2612 + 2.094395160675048828125));\n _2553 = vec3(_2620, (_2575 - _2616) - _2620, _2616);\n break;\n } while(false);\n _1863 = true;\n _1864 = _2553.y;\n break;\n }\n case 21:\n {\n highp vec3 _2460;\n do\n {\n highp float _4425 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);\n if ((0.25 * _4425) <= 0.0)\n {\n highp float _2472 = min(_1866[0], min(_1866[1], _1866[2]));\n highp float _2474 = max(_1866[0], max(_1866[1], _1866[2]));\n _2460 = vec3(_2472, (((_1866[0] + _1866[1]) + _1866[2]) - _2472) - _2474, _2474);\n break;\n }\n highp float _2482 = (_1866[0] + _1866[1]) + _1866[2];\n highp float _2483 = _2482 * 0.3333333432674407958984375;\n highp float _2484 = _1866[0] - _2483;\n highp float _2486 = _1866[1] - _2483;\n highp float _2489 = _1866[2] - _2483;\n highp float _2495 = sqrt(((((_2484 * _2484) + (_2486 * _2486)) + (_2489 * _2489)) + (_4425 * 0.5)) * 0.16666667163372039794921875);\n highp float _2497 = _2486 / _2495;\n highp float _2498 = _2489 / _2495;\n highp float _2499 = (0.5 * _1866[3]) / _2495;\n highp float _2500 = (0.5 * _1866[4]) / _2495;\n highp float _2501 = (0.5 * _1866[5]) / _2495;\n highp float _2519 = acos(clamp(0.5 * ((((_2484 / _2495) * ((_2497 * _2498) - (_2500 * _2500))) - (_2499 * ((_2499 * _2498) - (_2500 * _2501)))) + (_2501 * ((_2499 * _2500) - (_2497 * _2501)))), -1.0, 1.0)) * 0.3333333432674407958984375;\n highp float _2520 = 2.0 * _2495;\n highp float _2523 = _2483 + (_2520 * cos(_2519));\n highp float _2527 = _2483 + (_2520 * cos(_2519 + 2.094395160675048828125));\n _2460 = vec3(_2527, (_2482 - _2523) - _2527, _2523);\n break;\n } while(false);\n _1863 = true;\n _1864 = _2460.y;\n break;\n }\n case 22:\n {\n highp vec3 _2356;\n do\n {\n highp float _2364 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);\n if (_2364 <= 0.0)\n {\n highp float _2368 = min(_1866[0], min(_1866[1], _1866[2]));\n highp float _2370 = max(_1866[0], max(_1866[1], _1866[2]));\n _2356 = vec3(_2368, (((_1866[0] + _1866[1]) + _1866[2]) - _2368) - _2370, _2370);\n break;\n }\n highp float _2378 = (_1866[0] + _1866[1]) + _1866[2];\n highp float _2379 = _2378 * 0.3333333432674407958984375;\n highp float _2380 = _1866[0] - _2379;\n highp float _2382 = _1866[1] - _2379;\n highp float _2385 = _1866[2] - _2379;\n highp float _2391 = sqrt(((((_2380 * _2380) + (_2382 * _2382)) + (_2385 * _2385)) + (2.0 * _2364)) * 0.16666667163372039794921875);\n highp float _2393 = _2382 / _2391;\n highp float _2394 = _2385 / _2391;\n highp float _2395 = _1866[3] / _2391;\n highp float _2396 = _1866[4] / _2391;\n highp float _2397 = _1866[5] / _2391;\n highp float _2415 = acos(clamp(0.5 * ((((_2380 / _2391) * ((_2393 * _2394) - (_2396 * _2396))) - (_2395 * ((_2395 * _2394) - (_2396 * _2397)))) + (_2397 * ((_2395 * _2396) - (_2393 * _2397)))), -1.0, 1.0)) * 0.3333333432674407958984375;\n highp float _2416 = 2.0 * _2391;\n highp float _2419 = _2379 + (_2416 * cos(_2415));\n highp float _2423 = _2379 + (_2416 * cos(_2415 + 2.094395160675048828125));\n _2356 = vec3(_2423, (_2378 - _2419) - _2423, _2419);\n break;\n } while(false);\n _1863 = true;\n _1864 = _2356.y - (((_1866[0] + _1866[1]) + _1866[2]) * 0.3333333432674407958984375);\n break;\n }\n case 23:\n {\n highp vec3 _2263;\n do\n {\n highp float _2271 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);\n if (_2271 <= 0.0)\n {\n highp float _2275 = min(_1866[0], min(_1866[1], _1866[2]));\n highp float _2277 = max(_1866[0], max(_1866[1], _1866[2]));\n _2263 = vec3(_2275, (((_1866[0] + _1866[1]) + _1866[2]) - _2275) - _2277, _2277);\n break;\n }\n highp float _2285 = (_1866[0] + _1866[1]) + _1866[2];\n highp float _2286 = _2285 * 0.3333333432674407958984375;\n highp float _2287 = _1866[0] - _2286;\n highp float _2289 = _1866[1] - _2286;\n highp float _2292 = _1866[2] - _2286;\n highp float _2298 = sqrt(((((_2287 * _2287) + (_2289 * _2289)) + (_2292 * _2292)) + (2.0 * _2271)) * 0.16666667163372039794921875);\n highp float _2300 = _2289 / _2298;\n highp float _2301 = _2292 / _2298;\n highp float _2302 = _1866[3] / _2298;\n highp float _2303 = _1866[4] / _2298;\n highp float _2304 = _1866[5] / _2298;\n highp float _2322 = acos(clamp(0.5 * ((((_2287 / _2298) * ((_2300 * _2301) - (_2303 * _2303))) - (_2302 * ((_2302 * _2301) - (_2303 * _2304)))) + (_2304 * ((_2302 * _2303) - (_2300 * _2304)))), -1.0, 1.0)) * 0.3333333432674407958984375;\n highp float _2323 = 2.0 * _2298;\n highp float _2326 = _2286 + (_2323 * cos(_2322));\n highp float _2330 = _2286 + (_2323 * cos(_2322 + 2.094395160675048828125));\n _2263 = vec3(_2330, (_2285 - _2326) - _2330, _2326);\n break;\n } while(false);\n _1863 = true;\n _1864 = _2263.z;\n break;\n }\n case 24:\n {\n highp vec3 _2170;\n do\n {\n highp float _4420 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);\n if ((0.25 * _4420) <= 0.0)\n {\n highp float _2182 = min(_1866[0], min(_1866[1], _1866[2]));\n highp float _2184 = max(_1866[0], max(_1866[1], _1866[2]));\n _2170 = vec3(_2182, (((_1866[0] + _1866[1]) + _1866[2]) - _2182) - _2184, _2184);\n break;\n }\n highp float _2192 = (_1866[0] + _1866[1]) + _1866[2];\n highp float _2193 = _2192 * 0.3333333432674407958984375;\n highp float _2194 = _1866[0] - _2193;\n highp float _2196 = _1866[1] - _2193;\n highp float _2199 = _1866[2] - _2193;\n highp float _2205 = sqrt(((((_2194 * _2194) + (_2196 * _2196)) + (_2199 * _2199)) + (_4420 * 0.5)) * 0.16666667163372039794921875);\n highp float _2207 = _2196 / _2205;\n highp float _2208 = _2199 / _2205;\n highp float _2209 = (0.5 * _1866[3]) / _2205;\n highp float _2210 = (0.5 * _1866[4]) / _2205;\n highp float _2211 = (0.5 * _1866[5]) / _2205;\n highp float _2229 = acos(clamp(0.5 * ((((_2194 / _2205) * ((_2207 * _2208) - (_2210 * _2210))) - (_2209 * ((_2209 * _2208) - (_2210 * _2211)))) + (_2211 * ((_2209 * _2210) - (_2207 * _2211)))), -1.0, 1.0)) * 0.3333333432674407958984375;\n highp float _2230 = 2.0 * _2205;\n highp float _2233 = _2193 + (_2230 * cos(_2229));\n highp float _2237 = _2193 + (_2230 * cos(_2229 + 2.094395160675048828125));\n _2170 = vec3(_2237, (_2192 - _2233) - _2237, _2233);\n break;\n } while(false);\n _1863 = true;\n _1864 = _2170.z;\n break;\n }\n case 25:\n {\n highp vec3 _2066;\n do\n {\n highp float _2074 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);\n if (_2074 <= 0.0)\n {\n highp float _2078 = min(_1866[0], min(_1866[1], _1866[2]));\n highp float _2080 = max(_1866[0], max(_1866[1], _1866[2]));\n _2066 = vec3(_2078, (((_1866[0] + _1866[1]) + _1866[2]) - _2078) - _2080, _2080);\n break;\n }\n highp float _2088 = (_1866[0] + _1866[1]) + _1866[2];\n highp float _2089 = _2088 * 0.3333333432674407958984375;\n highp float _2090 = _1866[0] - _2089;\n highp float _2092 = _1866[1] - _2089;\n highp float _2095 = _1866[2] - _2089;\n highp float _2101 = sqrt(((((_2090 * _2090) + (_2092 * _2092)) + (_2095 * _2095)) + (2.0 * _2074)) * 0.16666667163372039794921875);\n highp float _2103 = _2092 / _2101;\n highp float _2104 = _2095 / _2101;\n highp float _2105 = _1866[3] / _2101;\n highp float _2106 = _1866[4] / _2101;\n highp float _2107 = _1866[5] / _2101;\n highp float _2125 = acos(clamp(0.5 * ((((_2090 / _2101) * ((_2103 * _2104) - (_2106 * _2106))) - (_2105 * ((_2105 * _2104) - (_2106 * _2107)))) + (_2107 * ((_2105 * _2106) - (_2103 * _2107)))), -1.0, 1.0)) * 0.3333333432674407958984375;\n highp float _2126 = 2.0 * _2101;\n highp float _2129 = _2089 + (_2126 * cos(_2125));\n highp float _2133 = _2089 + (_2126 * cos(_2125 + 2.094395160675048828125));\n _2066 = vec3(_2133, (_2088 - _2129) - _2133, _2129);\n break;\n } while(false);\n _1863 = true;\n _1864 = _2066.z - (((_1866[0] + _1866[1]) + _1866[2]) * 0.3333333432674407958984375);\n break;\n }\n default:\n {\n _1863 = true;\n _1864 = uintBitsToFloat(0x7fc00000u /* nan */);\n break;\n }\n }\n if (_1863)\n {\n break;\n }\n break;\n } while(false);\n _3580 = false;\n highp vec4 _3581;\n do\n {\n if (_1864 != _1864)\n {\n _3580 = true;\n _3581 = globalParams.u_nanColor;\n break;\n }\n int _3582 = 0;\n bool _3583;\n highp vec4 _3641;\n bool _3642;\n highp float _3664;\n bool _3665;\n for (;;)\n {\n if (!(_3582 < globalParams.u_numBands))\n {\n break;\n }\n if (_1864 >= globalParams.u_bandBounds.data[_3582].x)\n {\n _3583 = _1864 < globalParams.u_bandBounds.data[_3582].y;\n }\n else\n {\n _3583 = false;\n }\n if (_3583)\n {\n do\n {\n if (all(equal(globalParams.u_lowerColors.data[_3582], globalParams.u_upperColors.data[_3582])))\n {\n _3641 = globalParams.u_lowerColors.data[_3582];\n break;\n }\n if (globalParams.u_interpModes.data[_3582] == 1)\n {\n _3642 = globalParams.u_bandBounds.data[_3582].x <= 0.0;\n }\n else\n {\n _3642 = false;\n }\n if (_3642)\n {\n _3641 = globalParams.u_errorColor;\n break;\n }\n if (globalParams.u_interpModes.data[_3582] == 1)\n {\n if (0.0 < globalParams.u_bandBounds.data[_3582].x)\n {\n _3665 = globalParams.u_bandBounds.data[_3582].x < globalParams.u_bandBounds.data[_3582].y;\n }\n else\n {\n _3665 = false;\n }\n if (_3665)\n {\n _3665 = _1864 > 0.0;\n }\n else\n {\n _3665 = false;\n }\n if (_3665)\n {\n _3664 = log(_1864 / globalParams.u_bandBounds.data[_3582].x) / log(globalParams.u_bandBounds.data[_3582].y / globalParams.u_bandBounds.data[_3582].x);\n }\n else\n {\n _3664 = 0.0;\n }\n }\n else\n {\n highp float _3672 = globalParams.u_bandBounds.data[_3582].y - globalParams.u_bandBounds.data[_3582].x;\n if (_3672 > 0.0)\n {\n _3664 = (_1864 - globalParams.u_bandBounds.data[_3582].x) / _3672;\n }\n else\n {\n _3664 = 0.0;\n }\n }\n if (_3664 != _3664)\n {\n _3664 = 0.0;\n }\n highp float _3706 = _3664;\n highp float _3707 = clamp(_3706, 0.0, 1.0);\n if (globalParams.u_interpSteps > 1)\n {\n highp float _3711 = float(globalParams.u_interpSteps);\n highp float _3714 = _3711 - 1.0;\n _3664 = min(floor(_3707 * _3711), _3714) / _3714;\n }\n else\n {\n _3664 = _3707;\n }\n _3641 = mix(globalParams.u_lowerColors.data[_3582], globalParams.u_upperColors.data[_3582], vec4(_3664));\n break;\n } while(false);\n _3580 = true;\n _3581 = _3641;\n break;\n }\n _3582++;\n continue;\n }\n if (_3580)\n {\n break;\n }\n _3580 = true;\n _3581 = globalParams.u_uncoveredColor;\n break;\n } while(false);\n if (globalParams.u_colorSource == 1)\n {\n entryPointParam_fragmentMain = vec4(_3581.xyz, _3581.w * globalParams.u_opacity);\n break;\n }\n if (globalParams.u_colorSource == 2)\n {\n _4325 = mix(_3581.xyz * vec3(0.077399380505084991455078125), pow((_3581.xyz + vec3(0.054999999701976776123046875)) * vec3(0.947867333889007568359375), vec3(2.400000095367431640625)), step(vec3(0.040449999272823333740234375), _3581.xyz));\n }\n if (globalParams.u_colorSource == 3)\n {\n entryPointParam_fragmentMain = vec4(_4325, globalParams.u_opacity);\n break;\n }\n highp vec3 _1098 = normalize(v2);\n highp vec3 _3733 = normalize(globalParams.u_viewPosition - v1);\n highp vec3 _4388 = _4325;\n highp float _4389 = _4326;\n highp float _4390 = _4327;\n highp float _4391 = _4328;\n highp vec3 _4392 = _4329;\n highp vec3 _4398 = globalParams.u_environmentSky;\n highp vec3 _4399 = globalParams.u_environmentGround;\n highp vec3 _4400 = globalParams.u_environmentUp;\n int _3734 = 0;\n highp vec3 _3735 = vec3(0.0);\n highp vec3 _3776;\n highp vec3 _3777;\n highp vec3 _3778;\n highp float _3779;\n for (;;)\n {\n if (!(_3734 < 4))\n {\n break;\n }\n if (_3734 < globalParams.u_lightCount)\n {\n do\n {\n bool _3784 = globalParams.u_lightPositions.data[_3734].w == 0.0;\n if (_3784)\n {\n _3777 = globalParams.u_lightPositions.data[_3734].xyz;\n }\n else\n {\n _3777 = globalParams.u_lightPositions.data[_3734].xyz - v1;\n }\n highp float _3793 = dot(_3777, _3777);\n if (_3784)\n {\n _3778 = normalize(globalParams.u_lightPositions.data[_3734].xyz);\n }\n else\n {\n _3778 = _3777 * inversesqrt(_3793);\n }\n if (_3784)\n {\n _3779 = 1.0;\n }\n else\n {\n _3779 = 1.0 / _3793;\n }\n highp float _3809 = dot(_1098, _3778);\n if (_3809 <= 0.0)\n {\n _3776 = vec3(0.0);\n break;\n }\n highp vec3 _3814 = _3733 + _3778;\n highp float _3815 = dot(_3814, _3814);\n if (_3815 <= 9.9999999600419720025001879548654e-13)\n {\n _3776 = vec3(0.0);\n break;\n }\n highp vec3 _3820 = _3814 * inversesqrt(_3815);\n highp float _3822 = max(dot(_1098, _3733), 0.0);\n highp float _3824 = max(dot(_1098, _3820), 0.0);\n highp float _3829 = max(_4390, 0.039999999105930328369140625);\n highp vec3 _3861 = mix(vec3(0.039999999105930328369140625), _4388, vec3(_4389));\n highp float _3864 = _3829 * _3829;\n highp float _3865 = _3864 * _3864;\n highp float _3869 = ((_3824 * _3824) * (_3865 - 1.0)) + 1.0;\n highp float _3880 = _3829 + 1.0;\n highp float _3882 = (_3880 * _3880) * 0.125;\n highp float _3889 = _3829 + 1.0;\n highp float _3891 = (_3889 * _3889) * 0.125;\n highp vec3 _3904 = _3861 + ((vec3(1.0) - _3861) * pow(clamp(1.0 - max(dot(_3820, _3733), 0.0), 0.0, 1.0), 5.0));\n _3776 = ((((clamp((vec3(1.0) - _3904) * (1.0 - _4389), vec3(0.0), vec3(1.0)) * _4388) * vec3(0.3183098733425140380859375)) + ((_3904 * ((_3865 / ((3.1415927410125732421875 * _3869) * _3869)) * ((_3822 / ((_3822 * (1.0 - _3882)) + _3882)) * (_3809 / ((_3809 * (1.0 - _3891)) + _3891))))) / vec3(((4.0 * _3822) * _3809) + 9.9999997473787516355514526367188e-05))) * (globalParams.u_lightColors.data[_3734] * _3779)) * _3809;\n break;\n } while(false);\n _3735 += _3776;\n }\n _3734++;\n continue;\n }\n highp vec3 _3940 = mix(vec3(0.039999999105930328369140625), _4388, vec3(_4389));\n highp vec3 _3951 = _3940 + ((max(vec3(1.0 - max(_4390, 0.039999999105930328369140625)), _3940) - _3940) * pow(clamp(1.0 - max(dot(_1098, _3733), 0.0), 0.0, 1.0), 5.0));\n highp vec3 _3774 = (((((clamp((vec3(1.0) - _3951) * (1.0 - _4389), vec3(0.0), vec3(1.0)) * mix(_4399, _4398, vec3((dot(_1098, _4400) * 0.5) + 0.5))) * _4388) + (mix(_4399, _4398, vec3((dot(reflect(-_3733, _1098), _4400) * 0.5) + 0.5)) * _3951)) * _4391) + _3735) + _4392;\n entryPointParam_fragmentMain = vec4(pow(_3774 / (_3774 + vec3(1.0)), vec3(0.454545438289642333984375)), globalParams.u_opacity);\n break;\n } while(false);\n}\n\n",
519
- "sha256": "c80fdfb8ba7d364f1554e68cb057edac94fbf08ae2ff9b0dd2fb3b639ed890b0"
600
+ "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_int6\n{\n int data[6];\n};\n\nstruct _Array_std140_vector_float_2_72\n{\n highp vec2 data[72];\n};\n\nstruct _Array_std140_vector_float_4_72\n{\n highp vec4 data[72];\n};\n\nstruct _Array_std140_int72\n{\n int data[72];\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 _Array_std140_int6 u_componentOrder;\n int u_derivedType;\n highp float u_nu;\n _Array_std140_vector_float_2_72 u_bandBounds;\n int u_numBands;\n _Array_std140_vector_float_4_72 u_lowerColors;\n _Array_std140_vector_float_4_72 u_upperColors;\n _Array_std140_int72 u_interpModes;\n int u_interpSteps;\n highp vec4 u_nanColor;\n highp vec4 u_uncoveredColor;\n highp vec4 u_errorColor;\n int u_materialMapWidth;\n int u_materialMapBase;\n highp vec3 u_viewPosition;\n highp vec3 u_environmentSky;\n highp vec3 u_environmentGround;\n highp vec3 u_environmentUp;\n _Array_std140_vector_float_4_4 u_lightPositions;\n _Array_std140_vector_float_3_4 u_lightColors;\n int u_lightCount;\n highp float u_surfaceFinishScale;\n highp float u_surfaceFinishRoughness;\n highp float u_surfaceFinishColor;\n int u_colorSource;\n highp float u_opacity;\n} globalParams;\n\nuniform highp sampler2D SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler;\n\nin highp vec3 v0;\nflat in int v4;\nin highp vec3 v3;\nin highp vec3 v5;\nin highp vec3 v6;\nlayout(location = 0) out highp vec4 entryPointParam_fragmentMain;\nin highp vec3 v2;\nin highp vec3 v1;\n\nvoid main()\n{\n bool _3580 = false;\n bool _1863 = false;\n bool _1518 = false;\n do\n {\n _1518 = false;\n bool _1519;\n do\n {\n int _1520 = 0;\n for (;;)\n {\n if (!(_1520 < 6))\n {\n break;\n }\n if (_1520 >= globalParams.u_clipPlaneCount)\n {\n break;\n }\n if ((dot(globalParams.u_clipPlanes.data[_1520].xyz, v0) + globalParams.u_clipPlanes.data[_1520].w) < 0.0)\n {\n _1518 = true;\n _1519 = false;\n break;\n }\n _1520++;\n continue;\n }\n if (_1518)\n {\n break;\n }\n _1518 = true;\n _1519 = true;\n break;\n } while(false);\n if (!_1519)\n {\n discard;\n }\n highp vec4 _1566 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 0), 0);\n highp vec4 _1570 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 1), 0);\n highp vec4 _1574 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 2), 0);\n highp vec3 _1577 = _1566.xyz;\n highp float _1579 = _1566.w;\n highp vec3 _1581 = _1570.xyz;\n highp float _1583 = _1570.w;\n highp float _1585 = _1574.x;\n highp vec3 _4325 = _1577;\n highp float _4326 = _1579;\n highp float _4327 = _1583;\n highp float _4328 = _1585;\n highp vec3 _4329 = _1581;\n highp vec3 _4353 = _1577;\n highp float _4354 = _1579;\n highp float _4355 = _1583;\n highp float _4356 = _1585;\n highp vec3 _4357 = _1581;\n highp float _4375 = globalParams.u_surfaceFinishScale;\n highp float _4376 = globalParams.u_surfaceFinishRoughness;\n highp float _4377 = globalParams.u_surfaceFinishColor;\n highp vec3 _4245;\n highp float _4246;\n highp float _4247;\n highp float _4248;\n highp vec3 _4249;\n do\n {\n if (_4375 <= 0.0)\n {\n _4245 = _4353;\n _4246 = _4354;\n _4247 = _4355;\n _4248 = _4356;\n _4249 = _4357;\n break;\n }\n highp vec3 _1600 = v3 / vec3(_4375);\n highp vec3 _1627 = floor(_1600);\n highp vec3 _1628 = _1600 - _1627;\n highp vec3 _1633 = (_1628 * _1628) * (vec3(3.0) - (_1628 * 2.0));\n ivec3 _1634 = ivec3(_1627);\n uint _1673 = (((uint(_1634.x) * 2376512323u) + (uint(_1634.y) * 3625334849u)) + (uint(_1634.z) * 3407524639u)) + 2654435769u;\n uint _1676 = (_1673 ^ (_1673 >> uint(15))) * 739982445u;\n uint _1679 = (_1676 ^ (_1676 >> uint(12))) * 695872825u;\n ivec3 _1636 = _1634 + ivec3(1, 0, 0);\n uint _1698 = (((uint(_1636.x) * 2376512323u) + (uint(_1636.y) * 3625334849u)) + (uint(_1636.z) * 3407524639u)) + 2654435769u;\n uint _1701 = (_1698 ^ (_1698 >> uint(15))) * 739982445u;\n uint _1704 = (_1701 ^ (_1701 >> uint(12))) * 695872825u;\n ivec3 _1638 = _1634 + ivec3(0, 1, 0);\n uint _1723 = (((uint(_1638.x) * 2376512323u) + (uint(_1638.y) * 3625334849u)) + (uint(_1638.z) * 3407524639u)) + 2654435769u;\n uint _1726 = (_1723 ^ (_1723 >> uint(15))) * 739982445u;\n uint _1729 = (_1726 ^ (_1726 >> uint(12))) * 695872825u;\n ivec3 _1640 = _1634 + ivec3(1, 1, 0);\n uint _1748 = (((uint(_1640.x) * 2376512323u) + (uint(_1640.y) * 3625334849u)) + (uint(_1640.z) * 3407524639u)) + 2654435769u;\n uint _1751 = (_1748 ^ (_1748 >> uint(15))) * 739982445u;\n uint _1754 = (_1751 ^ (_1751 >> uint(12))) * 695872825u;\n ivec3 _1642 = _1634 + ivec3(0, 0, 1);\n uint _1773 = (((uint(_1642.x) * 2376512323u) + (uint(_1642.y) * 3625334849u)) + (uint(_1642.z) * 3407524639u)) + 2654435769u;\n uint _1776 = (_1773 ^ (_1773 >> uint(15))) * 739982445u;\n uint _1779 = (_1776 ^ (_1776 >> uint(12))) * 695872825u;\n ivec3 _1644 = _1634 + ivec3(1, 0, 1);\n uint _1798 = (((uint(_1644.x) * 2376512323u) + (uint(_1644.y) * 3625334849u)) + (uint(_1644.z) * 3407524639u)) + 2654435769u;\n uint _1801 = (_1798 ^ (_1798 >> uint(15))) * 739982445u;\n uint _1804 = (_1801 ^ (_1801 >> uint(12))) * 695872825u;\n ivec3 _1646 = _1634 + ivec3(0, 1, 1);\n uint _1823 = (((uint(_1646.x) * 2376512323u) + (uint(_1646.y) * 3625334849u)) + (uint(_1646.z) * 3407524639u)) + 2654435769u;\n uint _1826 = (_1823 ^ (_1823 >> uint(15))) * 739982445u;\n uint _1829 = (_1826 ^ (_1826 >> uint(12))) * 695872825u;\n ivec3 _1648 = _1634 + ivec3(1);\n uint _1848 = (((uint(_1648.x) * 2376512323u) + (uint(_1648.y) * 3625334849u)) + (uint(_1648.z) * 3407524639u)) + 2654435769u;\n uint _1851 = (_1848 ^ (_1848 >> uint(15))) * 739982445u;\n uint _1854 = (_1851 ^ (_1851 >> uint(12))) * 695872825u;\n highp float _1650 = _1633.x;\n highp float _1655 = _1633.y;\n highp float _1603 = (mix(mix(mix(float((_1679 ^ (_1679 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1704 ^ (_1704 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1650), mix(float((_1729 ^ (_1729 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1754 ^ (_1754 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1650), _1655), mix(mix(float((_1779 ^ (_1779 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1804 ^ (_1804 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1650), mix(float((_1829 ^ (_1829 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, float((_1854 ^ (_1854 >> uint(15))) & 16777215u) * 5.9604644775390625e-08, _1650), _1655), _1633.z) * 2.0) - 1.0;\n _4245 = clamp(_4353 * (1.0 + (_1603 * _4377)), vec3(0.0), vec3(1.0));\n _4246 = _4354;\n _4247 = clamp(_4355 + (_1603 * _4376), 0.0, 1.0);\n _4248 = _4356;\n _4249 = _4357;\n break;\n } while(false);\n _4325 = _4245;\n _4326 = _4246;\n _4327 = _4247;\n _4328 = _4248;\n _4329 = _4249;\n _1863 = false;\n highp float _1864;\n do\n {\n highp float _1865[6] = float[](v5.x, v5.y, v5.z, v6.x, v6.y, v6.z);\n int _1867 = 0;\n highp float _1866[6];\n for (;;)\n {\n if (!(_1867 < 6))\n {\n break;\n }\n _1866[_1867] = _1865[globalParams.u_componentOrder.data[_1867]];\n _1867++;\n continue;\n }\n switch (globalParams.u_derivedType)\n {\n case 0:\n {\n _1863 = true;\n _1864 = _1866[0];\n break;\n }\n case 1:\n {\n _1863 = true;\n _1864 = _1866[1];\n break;\n }\n case 2:\n {\n _1863 = true;\n _1864 = _1866[2];\n break;\n }\n case 3:\n {\n _1863 = true;\n _1864 = _1866[3];\n break;\n }\n case 4:\n {\n _1863 = true;\n _1864 = _1866[4];\n break;\n }\n case 5:\n {\n _1863 = true;\n _1864 = _1866[5];\n break;\n }\n case 6:\n {\n _1863 = true;\n _1864 = ((_1866[0] + _1866[1]) + _1866[2]) * 0.3333333432674407958984375;\n break;\n }\n case 7:\n {\n highp float _3543 = _1866[0] - _1866[1];\n highp float _3547 = _1866[1] - _1866[2];\n highp float _3550 = _1866[2] - _1866[0];\n _1863 = true;\n _1864 = sqrt((0.5 * (((_3543 * _3543) + (_3547 * _3547)) + (_3550 * _3550))) + (3.0 * (((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]))));\n break;\n }\n case 8:\n {\n highp float _3510 = _1866[0] - _1866[1];\n highp float _3514 = _1866[1] - _1866[2];\n highp float _3517 = _1866[2] - _1866[0];\n _1863 = true;\n _1864 = sqrt((0.5 * (((_3510 * _3510) + (_3514 * _3514)) + (_3517 * _3517))) + (3.0 * (((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5])))) / (1.0 + globalParams.u_nu);\n break;\n }\n case 9:\n {\n highp float _3477 = _1866[0] - _1866[1];\n highp float _3481 = _1866[1] - _1866[2];\n highp float _3484 = _1866[2] - _1866[0];\n _1863 = true;\n _1864 = sqrt((0.5 * (((_3477 * _3477) + (_3481 * _3481)) + (_3484 * _3484))) + (0.75 * (((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5])))) / (1.0 + globalParams.u_nu);\n break;\n }\n case 10:\n {\n highp float _3444 = _1866[0] - _1866[1];\n highp float _3448 = _1866[1] - _1866[2];\n highp float _3451 = _1866[2] - _1866[0];\n _1863 = true;\n _1864 = 0.4714045226573944091796875 * sqrt((0.5 * (((_3444 * _3444) + (_3448 * _3448)) + (_3451 * _3451))) + (3.0 * (((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]))));\n break;\n }\n case 11:\n {\n highp vec3 _3363;\n do\n {\n highp float _3371 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);\n if (_3371 <= 0.0)\n {\n highp float _3375 = min(_1866[0], min(_1866[1], _1866[2]));\n highp float _3377 = max(_1866[0], max(_1866[1], _1866[2]));\n _3363 = vec3(_3375, (((_1866[0] + _1866[1]) + _1866[2]) - _3375) - _3377, _3377);\n break;\n }\n highp float _3385 = (_1866[0] + _1866[1]) + _1866[2];\n highp float _3386 = _3385 * 0.3333333432674407958984375;\n highp float _3387 = _1866[0] - _3386;\n highp float _3389 = _1866[1] - _3386;\n highp float _3392 = _1866[2] - _3386;\n highp float _3398 = sqrt(((((_3387 * _3387) + (_3389 * _3389)) + (_3392 * _3392)) + (2.0 * _3371)) * 0.16666667163372039794921875);\n highp float _3400 = _3389 / _3398;\n highp float _3401 = _3392 / _3398;\n highp float _3402 = _1866[3] / _3398;\n highp float _3403 = _1866[4] / _3398;\n highp float _3404 = _1866[5] / _3398;\n highp float _3422 = acos(clamp(0.5 * ((((_3387 / _3398) * ((_3400 * _3401) - (_3403 * _3403))) - (_3402 * ((_3402 * _3401) - (_3403 * _3404)))) + (_3404 * ((_3402 * _3403) - (_3400 * _3404)))), -1.0, 1.0)) * 0.3333333432674407958984375;\n highp float _3423 = 2.0 * _3398;\n highp float _3426 = _3386 + (_3423 * cos(_3422));\n highp float _3430 = _3386 + (_3423 * cos(_3422 + 2.094395160675048828125));\n _3363 = vec3(_3430, (_3385 - _3426) - _3430, _3426);\n break;\n } while(false);\n _1863 = true;\n _1864 = 0.5 * (_3363.z - _3363.x);\n break;\n }\n case 12:\n {\n highp vec3 _3270;\n do\n {\n highp float _3278 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);\n if (_3278 <= 0.0)\n {\n highp float _3282 = min(_1866[0], min(_1866[1], _1866[2]));\n highp float _3284 = max(_1866[0], max(_1866[1], _1866[2]));\n _3270 = vec3(_3282, (((_1866[0] + _1866[1]) + _1866[2]) - _3282) - _3284, _3284);\n break;\n }\n highp float _3292 = (_1866[0] + _1866[1]) + _1866[2];\n highp float _3293 = _3292 * 0.3333333432674407958984375;\n highp float _3294 = _1866[0] - _3293;\n highp float _3296 = _1866[1] - _3293;\n highp float _3299 = _1866[2] - _3293;\n highp float _3305 = sqrt(((((_3294 * _3294) + (_3296 * _3296)) + (_3299 * _3299)) + (2.0 * _3278)) * 0.16666667163372039794921875);\n highp float _3307 = _3296 / _3305;\n highp float _3308 = _3299 / _3305;\n highp float _3309 = _1866[3] / _3305;\n highp float _3310 = _1866[4] / _3305;\n highp float _3311 = _1866[5] / _3305;\n highp float _3329 = acos(clamp(0.5 * ((((_3294 / _3305) * ((_3307 * _3308) - (_3310 * _3310))) - (_3309 * ((_3309 * _3308) - (_3310 * _3311)))) + (_3311 * ((_3309 * _3310) - (_3307 * _3311)))), -1.0, 1.0)) * 0.3333333432674407958984375;\n highp float _3330 = 2.0 * _3305;\n highp float _3333 = _3293 + (_3330 * cos(_3329));\n highp float _3337 = _3293 + (_3330 * cos(_3329 + 2.094395160675048828125));\n _3270 = vec3(_3337, (_3292 - _3333) - _3337, _3333);\n break;\n } while(false);\n _1863 = true;\n _1864 = 0.5 * (_3270.z + _3270.x);\n break;\n }\n case 13:\n {\n highp vec3 _3177;\n do\n {\n highp float _3185 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);\n if (_3185 <= 0.0)\n {\n highp float _3189 = min(_1866[0], min(_1866[1], _1866[2]));\n highp float _3191 = max(_1866[0], max(_1866[1], _1866[2]));\n _3177 = vec3(_3189, (((_1866[0] + _1866[1]) + _1866[2]) - _3189) - _3191, _3191);\n break;\n }\n highp float _3199 = (_1866[0] + _1866[1]) + _1866[2];\n highp float _3200 = _3199 * 0.3333333432674407958984375;\n highp float _3201 = _1866[0] - _3200;\n highp float _3203 = _1866[1] - _3200;\n highp float _3206 = _1866[2] - _3200;\n highp float _3212 = sqrt(((((_3201 * _3201) + (_3203 * _3203)) + (_3206 * _3206)) + (2.0 * _3185)) * 0.16666667163372039794921875);\n highp float _3214 = _3203 / _3212;\n highp float _3215 = _3206 / _3212;\n highp float _3216 = _1866[3] / _3212;\n highp float _3217 = _1866[4] / _3212;\n highp float _3218 = _1866[5] / _3212;\n highp float _3236 = acos(clamp(0.5 * ((((_3201 / _3212) * ((_3214 * _3215) - (_3217 * _3217))) - (_3216 * ((_3216 * _3215) - (_3217 * _3218)))) + (_3218 * ((_3216 * _3217) - (_3214 * _3218)))), -1.0, 1.0)) * 0.3333333432674407958984375;\n highp float _3237 = 2.0 * _3212;\n highp float _3240 = _3200 + (_3237 * cos(_3236));\n highp float _3244 = _3200 + (_3237 * cos(_3236 + 2.094395160675048828125));\n _3177 = vec3(_3244, (_3199 - _3240) - _3244, _3240);\n break;\n } while(false);\n _1863 = true;\n _1864 = _3177.z - _3177.x;\n break;\n }\n case 14:\n {\n highp vec3 _3071;\n do\n {\n highp float _3079 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);\n if (_3079 <= 0.0)\n {\n highp float _3083 = min(_1866[0], min(_1866[1], _1866[2]));\n highp float _3085 = max(_1866[0], max(_1866[1], _1866[2]));\n _3071 = vec3(_3083, (((_1866[0] + _1866[1]) + _1866[2]) - _3083) - _3085, _3085);\n break;\n }\n highp float _3093 = (_1866[0] + _1866[1]) + _1866[2];\n highp float _3094 = _3093 * 0.3333333432674407958984375;\n highp float _3095 = _1866[0] - _3094;\n highp float _3097 = _1866[1] - _3094;\n highp float _3100 = _1866[2] - _3094;\n highp float _3106 = sqrt(((((_3095 * _3095) + (_3097 * _3097)) + (_3100 * _3100)) + (2.0 * _3079)) * 0.16666667163372039794921875);\n highp float _3108 = _3097 / _3106;\n highp float _3109 = _3100 / _3106;\n highp float _3110 = _1866[3] / _3106;\n highp float _3111 = _1866[4] / _3106;\n highp float _3112 = _1866[5] / _3106;\n highp float _3130 = acos(clamp(0.5 * ((((_3095 / _3106) * ((_3108 * _3109) - (_3111 * _3111))) - (_3110 * ((_3110 * _3109) - (_3111 * _3112)))) + (_3112 * ((_3110 * _3111) - (_3108 * _3112)))), -1.0, 1.0)) * 0.3333333432674407958984375;\n highp float _3131 = 2.0 * _3106;\n highp float _3134 = _3094 + (_3131 * cos(_3130));\n highp float _3138 = _3094 + (_3131 * cos(_3130 + 2.094395160675048828125));\n _3071 = vec3(_3138, (_3093 - _3134) - _3138, _3134);\n break;\n } while(false);\n highp float _3145;\n if (abs(_3071.x) > (abs(_3071.z) * 1.000010013580322265625))\n {\n _3145 = _3071.x;\n }\n else\n {\n _3145 = _3071.z;\n }\n _1863 = true;\n _1864 = _3145;\n break;\n }\n case 15:\n {\n highp vec3 _2965;\n do\n {\n highp float _4435 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);\n if ((0.25 * _4435) <= 0.0)\n {\n highp float _2977 = min(_1866[0], min(_1866[1], _1866[2]));\n highp float _2979 = max(_1866[0], max(_1866[1], _1866[2]));\n _2965 = vec3(_2977, (((_1866[0] + _1866[1]) + _1866[2]) - _2977) - _2979, _2979);\n break;\n }\n highp float _2987 = (_1866[0] + _1866[1]) + _1866[2];\n highp float _2988 = _2987 * 0.3333333432674407958984375;\n highp float _2989 = _1866[0] - _2988;\n highp float _2991 = _1866[1] - _2988;\n highp float _2994 = _1866[2] - _2988;\n highp float _3000 = sqrt(((((_2989 * _2989) + (_2991 * _2991)) + (_2994 * _2994)) + (_4435 * 0.5)) * 0.16666667163372039794921875);\n highp float _3002 = _2991 / _3000;\n highp float _3003 = _2994 / _3000;\n highp float _3004 = (0.5 * _1866[3]) / _3000;\n highp float _3005 = (0.5 * _1866[4]) / _3000;\n highp float _3006 = (0.5 * _1866[5]) / _3000;\n highp float _3024 = acos(clamp(0.5 * ((((_2989 / _3000) * ((_3002 * _3003) - (_3005 * _3005))) - (_3004 * ((_3004 * _3003) - (_3005 * _3006)))) + (_3006 * ((_3004 * _3005) - (_3002 * _3006)))), -1.0, 1.0)) * 0.3333333432674407958984375;\n highp float _3025 = 2.0 * _3000;\n highp float _3028 = _2988 + (_3025 * cos(_3024));\n highp float _3032 = _2988 + (_3025 * cos(_3024 + 2.094395160675048828125));\n _2965 = vec3(_3032, (_2987 - _3028) - _3032, _3028);\n break;\n } while(false);\n highp float _3039;\n if (abs(_2965.x) > (abs(_2965.z) * 1.000010013580322265625))\n {\n _3039 = _2965.x;\n }\n else\n {\n _3039 = _2965.z;\n }\n _1863 = true;\n _1864 = _3039;\n break;\n }\n case 16:\n {\n _1863 = true;\n _1864 = (((((_1866[0] * _1866[1]) * _1866[2]) + (((2.0 * _1866[3]) * _1866[4]) * _1866[5])) - ((_1866[3] * _1866[3]) * _1866[2])) - ((_1866[4] * _1866[4]) * _1866[0])) - ((_1866[5] * _1866[5]) * _1866[1]);\n break;\n }\n case 17:\n {\n highp vec3 _2843;\n do\n {\n highp float _2851 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);\n if (_2851 <= 0.0)\n {\n highp float _2855 = min(_1866[0], min(_1866[1], _1866[2]));\n highp float _2857 = max(_1866[0], max(_1866[1], _1866[2]));\n _2843 = vec3(_2855, (((_1866[0] + _1866[1]) + _1866[2]) - _2855) - _2857, _2857);\n break;\n }\n highp float _2865 = (_1866[0] + _1866[1]) + _1866[2];\n highp float _2866 = _2865 * 0.3333333432674407958984375;\n highp float _2867 = _1866[0] - _2866;\n highp float _2869 = _1866[1] - _2866;\n highp float _2872 = _1866[2] - _2866;\n highp float _2878 = sqrt(((((_2867 * _2867) + (_2869 * _2869)) + (_2872 * _2872)) + (2.0 * _2851)) * 0.16666667163372039794921875);\n highp float _2880 = _2869 / _2878;\n highp float _2881 = _2872 / _2878;\n highp float _2882 = _1866[3] / _2878;\n highp float _2883 = _1866[4] / _2878;\n highp float _2884 = _1866[5] / _2878;\n highp float _2902 = acos(clamp(0.5 * ((((_2867 / _2878) * ((_2880 * _2881) - (_2883 * _2883))) - (_2882 * ((_2882 * _2881) - (_2883 * _2884)))) + (_2884 * ((_2882 * _2883) - (_2880 * _2884)))), -1.0, 1.0)) * 0.3333333432674407958984375;\n highp float _2903 = 2.0 * _2878;\n highp float _2906 = _2866 + (_2903 * cos(_2902));\n highp float _2910 = _2866 + (_2903 * cos(_2902 + 2.094395160675048828125));\n _2843 = vec3(_2910, (_2865 - _2906) - _2910, _2906);\n break;\n } while(false);\n _1863 = true;\n _1864 = _2843.x;\n break;\n }\n case 18:\n {\n highp vec3 _2750;\n do\n {\n highp float _4430 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);\n if ((0.25 * _4430) <= 0.0)\n {\n highp float _2762 = min(_1866[0], min(_1866[1], _1866[2]));\n highp float _2764 = max(_1866[0], max(_1866[1], _1866[2]));\n _2750 = vec3(_2762, (((_1866[0] + _1866[1]) + _1866[2]) - _2762) - _2764, _2764);\n break;\n }\n highp float _2772 = (_1866[0] + _1866[1]) + _1866[2];\n highp float _2773 = _2772 * 0.3333333432674407958984375;\n highp float _2774 = _1866[0] - _2773;\n highp float _2776 = _1866[1] - _2773;\n highp float _2779 = _1866[2] - _2773;\n highp float _2785 = sqrt(((((_2774 * _2774) + (_2776 * _2776)) + (_2779 * _2779)) + (_4430 * 0.5)) * 0.16666667163372039794921875);\n highp float _2787 = _2776 / _2785;\n highp float _2788 = _2779 / _2785;\n highp float _2789 = (0.5 * _1866[3]) / _2785;\n highp float _2790 = (0.5 * _1866[4]) / _2785;\n highp float _2791 = (0.5 * _1866[5]) / _2785;\n highp float _2809 = acos(clamp(0.5 * ((((_2774 / _2785) * ((_2787 * _2788) - (_2790 * _2790))) - (_2789 * ((_2789 * _2788) - (_2790 * _2791)))) + (_2791 * ((_2789 * _2790) - (_2787 * _2791)))), -1.0, 1.0)) * 0.3333333432674407958984375;\n highp float _2810 = 2.0 * _2785;\n highp float _2813 = _2773 + (_2810 * cos(_2809));\n highp float _2817 = _2773 + (_2810 * cos(_2809 + 2.094395160675048828125));\n _2750 = vec3(_2817, (_2772 - _2813) - _2817, _2813);\n break;\n } while(false);\n _1863 = true;\n _1864 = _2750.x;\n break;\n }\n case 19:\n {\n highp vec3 _2646;\n do\n {\n highp float _2654 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);\n if (_2654 <= 0.0)\n {\n highp float _2658 = min(_1866[0], min(_1866[1], _1866[2]));\n highp float _2660 = max(_1866[0], max(_1866[1], _1866[2]));\n _2646 = vec3(_2658, (((_1866[0] + _1866[1]) + _1866[2]) - _2658) - _2660, _2660);\n break;\n }\n highp float _2668 = (_1866[0] + _1866[1]) + _1866[2];\n highp float _2669 = _2668 * 0.3333333432674407958984375;\n highp float _2670 = _1866[0] - _2669;\n highp float _2672 = _1866[1] - _2669;\n highp float _2675 = _1866[2] - _2669;\n highp float _2681 = sqrt(((((_2670 * _2670) + (_2672 * _2672)) + (_2675 * _2675)) + (2.0 * _2654)) * 0.16666667163372039794921875);\n highp float _2683 = _2672 / _2681;\n highp float _2684 = _2675 / _2681;\n highp float _2685 = _1866[3] / _2681;\n highp float _2686 = _1866[4] / _2681;\n highp float _2687 = _1866[5] / _2681;\n highp float _2705 = acos(clamp(0.5 * ((((_2670 / _2681) * ((_2683 * _2684) - (_2686 * _2686))) - (_2685 * ((_2685 * _2684) - (_2686 * _2687)))) + (_2687 * ((_2685 * _2686) - (_2683 * _2687)))), -1.0, 1.0)) * 0.3333333432674407958984375;\n highp float _2706 = 2.0 * _2681;\n highp float _2709 = _2669 + (_2706 * cos(_2705));\n highp float _2713 = _2669 + (_2706 * cos(_2705 + 2.094395160675048828125));\n _2646 = vec3(_2713, (_2668 - _2709) - _2713, _2709);\n break;\n } while(false);\n _1863 = true;\n _1864 = _2646.x - (((_1866[0] + _1866[1]) + _1866[2]) * 0.3333333432674407958984375);\n break;\n }\n case 20:\n {\n highp vec3 _2553;\n do\n {\n highp float _2561 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);\n if (_2561 <= 0.0)\n {\n highp float _2565 = min(_1866[0], min(_1866[1], _1866[2]));\n highp float _2567 = max(_1866[0], max(_1866[1], _1866[2]));\n _2553 = vec3(_2565, (((_1866[0] + _1866[1]) + _1866[2]) - _2565) - _2567, _2567);\n break;\n }\n highp float _2575 = (_1866[0] + _1866[1]) + _1866[2];\n highp float _2576 = _2575 * 0.3333333432674407958984375;\n highp float _2577 = _1866[0] - _2576;\n highp float _2579 = _1866[1] - _2576;\n highp float _2582 = _1866[2] - _2576;\n highp float _2588 = sqrt(((((_2577 * _2577) + (_2579 * _2579)) + (_2582 * _2582)) + (2.0 * _2561)) * 0.16666667163372039794921875);\n highp float _2590 = _2579 / _2588;\n highp float _2591 = _2582 / _2588;\n highp float _2592 = _1866[3] / _2588;\n highp float _2593 = _1866[4] / _2588;\n highp float _2594 = _1866[5] / _2588;\n highp float _2612 = acos(clamp(0.5 * ((((_2577 / _2588) * ((_2590 * _2591) - (_2593 * _2593))) - (_2592 * ((_2592 * _2591) - (_2593 * _2594)))) + (_2594 * ((_2592 * _2593) - (_2590 * _2594)))), -1.0, 1.0)) * 0.3333333432674407958984375;\n highp float _2613 = 2.0 * _2588;\n highp float _2616 = _2576 + (_2613 * cos(_2612));\n highp float _2620 = _2576 + (_2613 * cos(_2612 + 2.094395160675048828125));\n _2553 = vec3(_2620, (_2575 - _2616) - _2620, _2616);\n break;\n } while(false);\n _1863 = true;\n _1864 = _2553.y;\n break;\n }\n case 21:\n {\n highp vec3 _2460;\n do\n {\n highp float _4425 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);\n if ((0.25 * _4425) <= 0.0)\n {\n highp float _2472 = min(_1866[0], min(_1866[1], _1866[2]));\n highp float _2474 = max(_1866[0], max(_1866[1], _1866[2]));\n _2460 = vec3(_2472, (((_1866[0] + _1866[1]) + _1866[2]) - _2472) - _2474, _2474);\n break;\n }\n highp float _2482 = (_1866[0] + _1866[1]) + _1866[2];\n highp float _2483 = _2482 * 0.3333333432674407958984375;\n highp float _2484 = _1866[0] - _2483;\n highp float _2486 = _1866[1] - _2483;\n highp float _2489 = _1866[2] - _2483;\n highp float _2495 = sqrt(((((_2484 * _2484) + (_2486 * _2486)) + (_2489 * _2489)) + (_4425 * 0.5)) * 0.16666667163372039794921875);\n highp float _2497 = _2486 / _2495;\n highp float _2498 = _2489 / _2495;\n highp float _2499 = (0.5 * _1866[3]) / _2495;\n highp float _2500 = (0.5 * _1866[4]) / _2495;\n highp float _2501 = (0.5 * _1866[5]) / _2495;\n highp float _2519 = acos(clamp(0.5 * ((((_2484 / _2495) * ((_2497 * _2498) - (_2500 * _2500))) - (_2499 * ((_2499 * _2498) - (_2500 * _2501)))) + (_2501 * ((_2499 * _2500) - (_2497 * _2501)))), -1.0, 1.0)) * 0.3333333432674407958984375;\n highp float _2520 = 2.0 * _2495;\n highp float _2523 = _2483 + (_2520 * cos(_2519));\n highp float _2527 = _2483 + (_2520 * cos(_2519 + 2.094395160675048828125));\n _2460 = vec3(_2527, (_2482 - _2523) - _2527, _2523);\n break;\n } while(false);\n _1863 = true;\n _1864 = _2460.y;\n break;\n }\n case 22:\n {\n highp vec3 _2356;\n do\n {\n highp float _2364 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);\n if (_2364 <= 0.0)\n {\n highp float _2368 = min(_1866[0], min(_1866[1], _1866[2]));\n highp float _2370 = max(_1866[0], max(_1866[1], _1866[2]));\n _2356 = vec3(_2368, (((_1866[0] + _1866[1]) + _1866[2]) - _2368) - _2370, _2370);\n break;\n }\n highp float _2378 = (_1866[0] + _1866[1]) + _1866[2];\n highp float _2379 = _2378 * 0.3333333432674407958984375;\n highp float _2380 = _1866[0] - _2379;\n highp float _2382 = _1866[1] - _2379;\n highp float _2385 = _1866[2] - _2379;\n highp float _2391 = sqrt(((((_2380 * _2380) + (_2382 * _2382)) + (_2385 * _2385)) + (2.0 * _2364)) * 0.16666667163372039794921875);\n highp float _2393 = _2382 / _2391;\n highp float _2394 = _2385 / _2391;\n highp float _2395 = _1866[3] / _2391;\n highp float _2396 = _1866[4] / _2391;\n highp float _2397 = _1866[5] / _2391;\n highp float _2415 = acos(clamp(0.5 * ((((_2380 / _2391) * ((_2393 * _2394) - (_2396 * _2396))) - (_2395 * ((_2395 * _2394) - (_2396 * _2397)))) + (_2397 * ((_2395 * _2396) - (_2393 * _2397)))), -1.0, 1.0)) * 0.3333333432674407958984375;\n highp float _2416 = 2.0 * _2391;\n highp float _2419 = _2379 + (_2416 * cos(_2415));\n highp float _2423 = _2379 + (_2416 * cos(_2415 + 2.094395160675048828125));\n _2356 = vec3(_2423, (_2378 - _2419) - _2423, _2419);\n break;\n } while(false);\n _1863 = true;\n _1864 = _2356.y - (((_1866[0] + _1866[1]) + _1866[2]) * 0.3333333432674407958984375);\n break;\n }\n case 23:\n {\n highp vec3 _2263;\n do\n {\n highp float _2271 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);\n if (_2271 <= 0.0)\n {\n highp float _2275 = min(_1866[0], min(_1866[1], _1866[2]));\n highp float _2277 = max(_1866[0], max(_1866[1], _1866[2]));\n _2263 = vec3(_2275, (((_1866[0] + _1866[1]) + _1866[2]) - _2275) - _2277, _2277);\n break;\n }\n highp float _2285 = (_1866[0] + _1866[1]) + _1866[2];\n highp float _2286 = _2285 * 0.3333333432674407958984375;\n highp float _2287 = _1866[0] - _2286;\n highp float _2289 = _1866[1] - _2286;\n highp float _2292 = _1866[2] - _2286;\n highp float _2298 = sqrt(((((_2287 * _2287) + (_2289 * _2289)) + (_2292 * _2292)) + (2.0 * _2271)) * 0.16666667163372039794921875);\n highp float _2300 = _2289 / _2298;\n highp float _2301 = _2292 / _2298;\n highp float _2302 = _1866[3] / _2298;\n highp float _2303 = _1866[4] / _2298;\n highp float _2304 = _1866[5] / _2298;\n highp float _2322 = acos(clamp(0.5 * ((((_2287 / _2298) * ((_2300 * _2301) - (_2303 * _2303))) - (_2302 * ((_2302 * _2301) - (_2303 * _2304)))) + (_2304 * ((_2302 * _2303) - (_2300 * _2304)))), -1.0, 1.0)) * 0.3333333432674407958984375;\n highp float _2323 = 2.0 * _2298;\n highp float _2326 = _2286 + (_2323 * cos(_2322));\n highp float _2330 = _2286 + (_2323 * cos(_2322 + 2.094395160675048828125));\n _2263 = vec3(_2330, (_2285 - _2326) - _2330, _2326);\n break;\n } while(false);\n _1863 = true;\n _1864 = _2263.z;\n break;\n }\n case 24:\n {\n highp vec3 _2170;\n do\n {\n highp float _4420 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);\n if ((0.25 * _4420) <= 0.0)\n {\n highp float _2182 = min(_1866[0], min(_1866[1], _1866[2]));\n highp float _2184 = max(_1866[0], max(_1866[1], _1866[2]));\n _2170 = vec3(_2182, (((_1866[0] + _1866[1]) + _1866[2]) - _2182) - _2184, _2184);\n break;\n }\n highp float _2192 = (_1866[0] + _1866[1]) + _1866[2];\n highp float _2193 = _2192 * 0.3333333432674407958984375;\n highp float _2194 = _1866[0] - _2193;\n highp float _2196 = _1866[1] - _2193;\n highp float _2199 = _1866[2] - _2193;\n highp float _2205 = sqrt(((((_2194 * _2194) + (_2196 * _2196)) + (_2199 * _2199)) + (_4420 * 0.5)) * 0.16666667163372039794921875);\n highp float _2207 = _2196 / _2205;\n highp float _2208 = _2199 / _2205;\n highp float _2209 = (0.5 * _1866[3]) / _2205;\n highp float _2210 = (0.5 * _1866[4]) / _2205;\n highp float _2211 = (0.5 * _1866[5]) / _2205;\n highp float _2229 = acos(clamp(0.5 * ((((_2194 / _2205) * ((_2207 * _2208) - (_2210 * _2210))) - (_2209 * ((_2209 * _2208) - (_2210 * _2211)))) + (_2211 * ((_2209 * _2210) - (_2207 * _2211)))), -1.0, 1.0)) * 0.3333333432674407958984375;\n highp float _2230 = 2.0 * _2205;\n highp float _2233 = _2193 + (_2230 * cos(_2229));\n highp float _2237 = _2193 + (_2230 * cos(_2229 + 2.094395160675048828125));\n _2170 = vec3(_2237, (_2192 - _2233) - _2237, _2233);\n break;\n } while(false);\n _1863 = true;\n _1864 = _2170.z;\n break;\n }\n case 25:\n {\n highp vec3 _2066;\n do\n {\n highp float _2074 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);\n if (_2074 <= 0.0)\n {\n highp float _2078 = min(_1866[0], min(_1866[1], _1866[2]));\n highp float _2080 = max(_1866[0], max(_1866[1], _1866[2]));\n _2066 = vec3(_2078, (((_1866[0] + _1866[1]) + _1866[2]) - _2078) - _2080, _2080);\n break;\n }\n highp float _2088 = (_1866[0] + _1866[1]) + _1866[2];\n highp float _2089 = _2088 * 0.3333333432674407958984375;\n highp float _2090 = _1866[0] - _2089;\n highp float _2092 = _1866[1] - _2089;\n highp float _2095 = _1866[2] - _2089;\n highp float _2101 = sqrt(((((_2090 * _2090) + (_2092 * _2092)) + (_2095 * _2095)) + (2.0 * _2074)) * 0.16666667163372039794921875);\n highp float _2103 = _2092 / _2101;\n highp float _2104 = _2095 / _2101;\n highp float _2105 = _1866[3] / _2101;\n highp float _2106 = _1866[4] / _2101;\n highp float _2107 = _1866[5] / _2101;\n highp float _2125 = acos(clamp(0.5 * ((((_2090 / _2101) * ((_2103 * _2104) - (_2106 * _2106))) - (_2105 * ((_2105 * _2104) - (_2106 * _2107)))) + (_2107 * ((_2105 * _2106) - (_2103 * _2107)))), -1.0, 1.0)) * 0.3333333432674407958984375;\n highp float _2126 = 2.0 * _2101;\n highp float _2129 = _2089 + (_2126 * cos(_2125));\n highp float _2133 = _2089 + (_2126 * cos(_2125 + 2.094395160675048828125));\n _2066 = vec3(_2133, (_2088 - _2129) - _2133, _2129);\n break;\n } while(false);\n _1863 = true;\n _1864 = _2066.z - (((_1866[0] + _1866[1]) + _1866[2]) * 0.3333333432674407958984375);\n break;\n }\n default:\n {\n _1863 = true;\n _1864 = uintBitsToFloat(0x7fc00000u /* nan */);\n break;\n }\n }\n if (_1863)\n {\n break;\n }\n break;\n } while(false);\n _3580 = false;\n highp vec4 _3581;\n do\n {\n if (_1864 != _1864)\n {\n _3580 = true;\n _3581 = globalParams.u_nanColor;\n break;\n }\n int _3582 = 0;\n bool _3583;\n highp vec4 _3641;\n bool _3642;\n highp float _3664;\n bool _3665;\n for (;;)\n {\n if (!(_3582 < globalParams.u_numBands))\n {\n break;\n }\n if (_1864 >= globalParams.u_bandBounds.data[_3582].x)\n {\n _3583 = _1864 < globalParams.u_bandBounds.data[_3582].y;\n }\n else\n {\n _3583 = false;\n }\n if (_3583)\n {\n do\n {\n if (all(equal(globalParams.u_lowerColors.data[_3582], globalParams.u_upperColors.data[_3582])))\n {\n _3641 = globalParams.u_lowerColors.data[_3582];\n break;\n }\n if (globalParams.u_interpModes.data[_3582] == 1)\n {\n _3642 = globalParams.u_bandBounds.data[_3582].x <= 0.0;\n }\n else\n {\n _3642 = false;\n }\n if (_3642)\n {\n _3641 = globalParams.u_errorColor;\n break;\n }\n if (globalParams.u_interpModes.data[_3582] == 1)\n {\n if (0.0 < globalParams.u_bandBounds.data[_3582].x)\n {\n _3665 = globalParams.u_bandBounds.data[_3582].x < globalParams.u_bandBounds.data[_3582].y;\n }\n else\n {\n _3665 = false;\n }\n if (_3665)\n {\n _3665 = _1864 > 0.0;\n }\n else\n {\n _3665 = false;\n }\n if (_3665)\n {\n _3664 = log(_1864 / globalParams.u_bandBounds.data[_3582].x) / log(globalParams.u_bandBounds.data[_3582].y / globalParams.u_bandBounds.data[_3582].x);\n }\n else\n {\n _3664 = 0.0;\n }\n }\n else\n {\n highp float _3672 = globalParams.u_bandBounds.data[_3582].y - globalParams.u_bandBounds.data[_3582].x;\n if (_3672 > 0.0)\n {\n _3664 = (_1864 - globalParams.u_bandBounds.data[_3582].x) / _3672;\n }\n else\n {\n _3664 = 0.0;\n }\n }\n if (_3664 != _3664)\n {\n _3664 = 0.0;\n }\n highp float _3706 = _3664;\n highp float _3707 = clamp(_3706, 0.0, 1.0);\n if (globalParams.u_interpSteps > 1)\n {\n highp float _3711 = float(globalParams.u_interpSteps);\n highp float _3714 = _3711 - 1.0;\n _3664 = min(floor(_3707 * _3711), _3714) / _3714;\n }\n else\n {\n _3664 = _3707;\n }\n _3641 = mix(globalParams.u_lowerColors.data[_3582], globalParams.u_upperColors.data[_3582], vec4(_3664));\n break;\n } while(false);\n _3580 = true;\n _3581 = _3641;\n break;\n }\n _3582++;\n continue;\n }\n if (_3580)\n {\n break;\n }\n _3580 = true;\n _3581 = globalParams.u_uncoveredColor;\n break;\n } while(false);\n if (globalParams.u_colorSource == 1)\n {\n entryPointParam_fragmentMain = vec4(_3581.xyz, _3581.w * globalParams.u_opacity);\n break;\n }\n if (globalParams.u_colorSource == 2)\n {\n _4325 = mix(_3581.xyz * vec3(0.077399380505084991455078125), pow((_3581.xyz + vec3(0.054999999701976776123046875)) * vec3(0.947867333889007568359375), vec3(2.400000095367431640625)), step(vec3(0.040449999272823333740234375), _3581.xyz));\n }\n if (globalParams.u_colorSource == 3)\n {\n entryPointParam_fragmentMain = vec4(_4325, globalParams.u_opacity);\n break;\n }\n highp vec3 _1098 = normalize(v2);\n highp vec3 _3733 = normalize(globalParams.u_viewPosition - v1);\n highp vec3 _4388 = _4325;\n highp float _4389 = _4326;\n highp float _4390 = _4327;\n highp float _4391 = _4328;\n highp vec3 _4392 = _4329;\n highp vec3 _4398 = globalParams.u_environmentSky;\n highp vec3 _4399 = globalParams.u_environmentGround;\n highp vec3 _4400 = globalParams.u_environmentUp;\n int _3734 = 0;\n highp vec3 _3735 = vec3(0.0);\n highp vec3 _3776;\n highp vec3 _3777;\n highp vec3 _3778;\n highp float _3779;\n for (;;)\n {\n if (!(_3734 < 4))\n {\n break;\n }\n if (_3734 < globalParams.u_lightCount)\n {\n do\n {\n bool _3784 = globalParams.u_lightPositions.data[_3734].w == 0.0;\n if (_3784)\n {\n _3777 = globalParams.u_lightPositions.data[_3734].xyz;\n }\n else\n {\n _3777 = globalParams.u_lightPositions.data[_3734].xyz - v1;\n }\n highp float _3793 = dot(_3777, _3777);\n if (_3784)\n {\n _3778 = normalize(globalParams.u_lightPositions.data[_3734].xyz);\n }\n else\n {\n _3778 = _3777 * inversesqrt(_3793);\n }\n if (_3784)\n {\n _3779 = 1.0;\n }\n else\n {\n _3779 = 1.0 / _3793;\n }\n highp float _3809 = dot(_1098, _3778);\n if (_3809 <= 0.0)\n {\n _3776 = vec3(0.0);\n break;\n }\n highp vec3 _3814 = _3733 + _3778;\n highp float _3815 = dot(_3814, _3814);\n if (_3815 <= 9.9999999600419720025001879548654e-13)\n {\n _3776 = vec3(0.0);\n break;\n }\n highp vec3 _3820 = _3814 * inversesqrt(_3815);\n highp float _3822 = max(dot(_1098, _3733), 0.0);\n highp float _3824 = max(dot(_1098, _3820), 0.0);\n highp float _3829 = max(_4390, 0.039999999105930328369140625);\n highp vec3 _3861 = mix(vec3(0.039999999105930328369140625), _4388, vec3(_4389));\n highp float _3864 = _3829 * _3829;\n highp float _3865 = _3864 * _3864;\n highp float _3869 = ((_3824 * _3824) * (_3865 - 1.0)) + 1.0;\n highp float _3880 = _3829 + 1.0;\n highp float _3882 = (_3880 * _3880) * 0.125;\n highp float _3889 = _3829 + 1.0;\n highp float _3891 = (_3889 * _3889) * 0.125;\n highp vec3 _3904 = _3861 + ((vec3(1.0) - _3861) * pow(clamp(1.0 - max(dot(_3820, _3733), 0.0), 0.0, 1.0), 5.0));\n _3776 = ((((clamp((vec3(1.0) - _3904) * (1.0 - _4389), vec3(0.0), vec3(1.0)) * _4388) * vec3(0.3183098733425140380859375)) + ((_3904 * ((_3865 / ((3.1415927410125732421875 * _3869) * _3869)) * ((_3822 / ((_3822 * (1.0 - _3882)) + _3882)) * (_3809 / ((_3809 * (1.0 - _3891)) + _3891))))) / vec3(((4.0 * _3822) * _3809) + 9.9999997473787516355514526367188e-05))) * (globalParams.u_lightColors.data[_3734] * _3779)) * _3809;\n break;\n } while(false);\n _3735 += _3776;\n }\n _3734++;\n continue;\n }\n highp vec3 _3940 = mix(vec3(0.039999999105930328369140625), _4388, vec3(_4389));\n highp vec3 _3951 = _3940 + ((max(vec3(1.0 - max(_4390, 0.039999999105930328369140625)), _3940) - _3940) * pow(clamp(1.0 - max(dot(_1098, _3733), 0.0), 0.0, 1.0), 5.0));\n highp vec3 _3774 = (((((clamp((vec3(1.0) - _3951) * (1.0 - _4389), vec3(0.0), vec3(1.0)) * mix(_4399, _4398, vec3((dot(_1098, _4400) * 0.5) + 0.5))) * _4388) + (mix(_4399, _4398, vec3((dot(reflect(-_3733, _1098), _4400) * 0.5) + 0.5)) * _3951)) * _4391) + _3735) + _4392;\n entryPointParam_fragmentMain = vec4(pow(_3774 / (_3774 + vec3(1.0)), vec3(0.454545438289642333984375)), globalParams.u_opacity);\n break;\n } while(false);\n}\n\n",
601
+ "sha256": "cdbae1e58e04a298cc78a6e86b181c2ee7dcb574dfdfb061d67724bd06fe52b9"
520
602
  }
521
603
  }
522
604
  }