@vcollab/shader-artifacts 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +33 -0
- package/LICENSE +8 -0
- package/README.md +96 -2
- package/dist/generated/set.d.ts +32 -0
- package/dist/index.cjs +190 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +146 -0
- package/dist/index.js.map +1 -0
- package/dist/version.d.ts +2 -0
- package/package.json +60 -3
- package/set/SHA256SUMS +163 -0
- package/set/pipelines/category.capped.json +413 -0
- package/set/pipelines/category.json +387 -0
- package/set/pipelines/deform3.category.capped.json +423 -0
- package/set/pipelines/deform3.category.json +397 -0
- package/set/pipelines/deform3.dof6.capped.json +513 -0
- package/set/pipelines/deform3.dof6.json +487 -0
- package/set/pipelines/deform3.pick.capped.json +209 -0
- package/set/pipelines/deform3.pick.json +203 -0
- package/set/pipelines/deform3.scalar.capped.json +519 -0
- package/set/pipelines/deform3.scalar.json +493 -0
- package/set/pipelines/deform3.surface.capped.json +375 -0
- package/set/pipelines/deform3.surface.json +349 -0
- package/set/pipelines/deform3.symtensor.capped.json +541 -0
- package/set/pipelines/deform3.symtensor.json +515 -0
- package/set/pipelines/deform3.textured-normal.capped.json +539 -0
- package/set/pipelines/deform3.textured-normal.json +513 -0
- package/set/pipelines/deform3.textured.capped.json +498 -0
- package/set/pipelines/deform3.textured.json +472 -0
- package/set/pipelines/deform3.vector.capped.json +504 -0
- package/set/pipelines/deform3.vector.json +478 -0
- package/set/pipelines/deform6.category.capped.json +432 -0
- package/set/pipelines/deform6.category.json +406 -0
- package/set/pipelines/deform6.dof6.capped.json +522 -0
- package/set/pipelines/deform6.dof6.json +496 -0
- package/set/pipelines/deform6.pick.capped.json +218 -0
- package/set/pipelines/deform6.pick.json +212 -0
- package/set/pipelines/deform6.scalar.capped.json +528 -0
- package/set/pipelines/deform6.scalar.json +502 -0
- package/set/pipelines/deform6.surface.capped.json +384 -0
- package/set/pipelines/deform6.surface.json +358 -0
- package/set/pipelines/deform6.symtensor.capped.json +550 -0
- package/set/pipelines/deform6.symtensor.json +524 -0
- package/set/pipelines/deform6.textured-normal.capped.json +548 -0
- package/set/pipelines/deform6.textured-normal.json +522 -0
- package/set/pipelines/deform6.textured.capped.json +507 -0
- package/set/pipelines/deform6.textured.json +481 -0
- package/set/pipelines/deform6.vector.capped.json +513 -0
- package/set/pipelines/deform6.vector.json +487 -0
- package/set/pipelines/dof6.capped.json +503 -0
- package/set/pipelines/dof6.json +477 -0
- package/set/pipelines/pick.capped.json +199 -0
- package/set/pipelines/pick.json +193 -0
- package/set/pipelines/scalar.capped.json +509 -0
- package/set/pipelines/scalar.json +483 -0
- package/set/pipelines/surface.capped.json +365 -0
- package/set/pipelines/surface.json +339 -0
- package/set/pipelines/symtensor.capped.json +531 -0
- package/set/pipelines/symtensor.json +505 -0
- package/set/pipelines/textured-normal.capped.json +529 -0
- package/set/pipelines/textured-normal.json +503 -0
- package/set/pipelines/textured.capped.json +488 -0
- package/set/pipelines/textured.json +462 -0
- package/set/pipelines/vector.capped.json +494 -0
- package/set/pipelines/vector.json +468 -0
- package/set/registry.json +1005 -0
- package/set/shaders/category.capped.fragment.glsl +501 -0
- package/set/shaders/category.capped.vertex.glsl +154 -0
- package/set/shaders/category.fragment.glsl +343 -0
- package/set/shaders/category.vertex.glsl +135 -0
- package/set/shaders/deform3.category.capped.fragment.glsl +501 -0
- package/set/shaders/deform3.category.capped.vertex.glsl +156 -0
- package/set/shaders/deform3.category.fragment.glsl +343 -0
- package/set/shaders/deform3.category.vertex.glsl +137 -0
- package/set/shaders/deform3.dof6.capped.fragment.glsl +688 -0
- package/set/shaders/deform3.dof6.capped.vertex.glsl +177 -0
- package/set/shaders/deform3.dof6.fragment.glsl +530 -0
- package/set/shaders/deform3.dof6.vertex.glsl +158 -0
- package/set/shaders/deform3.pick.capped.fragment.glsl +84 -0
- package/set/shaders/deform3.pick.capped.vertex.glsl +101 -0
- package/set/shaders/deform3.pick.fragment.glsl +69 -0
- package/set/shaders/deform3.pick.vertex.glsl +83 -0
- package/set/shaders/deform3.scalar.capped.fragment.glsl +676 -0
- package/set/shaders/deform3.scalar.capped.vertex.glsl +169 -0
- package/set/shaders/deform3.scalar.fragment.glsl +518 -0
- package/set/shaders/deform3.scalar.vertex.glsl +150 -0
- package/set/shaders/deform3.surface.capped.fragment.glsl +419 -0
- package/set/shaders/deform3.surface.capped.vertex.glsl +138 -0
- package/set/shaders/deform3.surface.fragment.glsl +265 -0
- package/set/shaders/deform3.surface.vertex.glsl +119 -0
- package/set/shaders/deform3.symtensor.capped.fragment.glsl +1233 -0
- package/set/shaders/deform3.symtensor.capped.vertex.glsl +178 -0
- package/set/shaders/deform3.symtensor.fragment.glsl +1075 -0
- package/set/shaders/deform3.symtensor.vertex.glsl +159 -0
- package/set/shaders/deform3.textured-normal.capped.fragment.glsl +433 -0
- package/set/shaders/deform3.textured-normal.capped.vertex.glsl +159 -0
- package/set/shaders/deform3.textured-normal.fragment.glsl +279 -0
- package/set/shaders/deform3.textured-normal.vertex.glsl +140 -0
- package/set/shaders/deform3.textured.capped.fragment.glsl +424 -0
- package/set/shaders/deform3.textured.capped.vertex.glsl +143 -0
- package/set/shaders/deform3.textured.fragment.glsl +271 -0
- package/set/shaders/deform3.textured.vertex.glsl +124 -0
- package/set/shaders/deform3.vector.capped.fragment.glsl +651 -0
- package/set/shaders/deform3.vector.capped.vertex.glsl +173 -0
- package/set/shaders/deform3.vector.fragment.glsl +493 -0
- package/set/shaders/deform3.vector.vertex.glsl +154 -0
- package/set/shaders/deform6.category.capped.fragment.glsl +501 -0
- package/set/shaders/deform6.category.capped.vertex.glsl +170 -0
- package/set/shaders/deform6.category.fragment.glsl +343 -0
- package/set/shaders/deform6.category.vertex.glsl +151 -0
- package/set/shaders/deform6.dof6.capped.fragment.glsl +688 -0
- package/set/shaders/deform6.dof6.capped.vertex.glsl +191 -0
- package/set/shaders/deform6.dof6.fragment.glsl +530 -0
- package/set/shaders/deform6.dof6.vertex.glsl +172 -0
- package/set/shaders/deform6.pick.capped.fragment.glsl +84 -0
- package/set/shaders/deform6.pick.capped.vertex.glsl +115 -0
- package/set/shaders/deform6.pick.fragment.glsl +69 -0
- package/set/shaders/deform6.pick.vertex.glsl +97 -0
- package/set/shaders/deform6.scalar.capped.fragment.glsl +676 -0
- package/set/shaders/deform6.scalar.capped.vertex.glsl +183 -0
- package/set/shaders/deform6.scalar.fragment.glsl +518 -0
- package/set/shaders/deform6.scalar.vertex.glsl +164 -0
- package/set/shaders/deform6.surface.capped.fragment.glsl +419 -0
- package/set/shaders/deform6.surface.capped.vertex.glsl +152 -0
- package/set/shaders/deform6.surface.fragment.glsl +265 -0
- package/set/shaders/deform6.surface.vertex.glsl +133 -0
- package/set/shaders/deform6.symtensor.capped.fragment.glsl +1233 -0
- package/set/shaders/deform6.symtensor.capped.vertex.glsl +192 -0
- package/set/shaders/deform6.symtensor.fragment.glsl +1075 -0
- package/set/shaders/deform6.symtensor.vertex.glsl +173 -0
- package/set/shaders/deform6.textured-normal.capped.fragment.glsl +433 -0
- package/set/shaders/deform6.textured-normal.capped.vertex.glsl +173 -0
- package/set/shaders/deform6.textured-normal.fragment.glsl +279 -0
- package/set/shaders/deform6.textured-normal.vertex.glsl +154 -0
- package/set/shaders/deform6.textured.capped.fragment.glsl +424 -0
- package/set/shaders/deform6.textured.capped.vertex.glsl +157 -0
- package/set/shaders/deform6.textured.fragment.glsl +271 -0
- package/set/shaders/deform6.textured.vertex.glsl +138 -0
- package/set/shaders/deform6.vector.capped.fragment.glsl +651 -0
- package/set/shaders/deform6.vector.capped.vertex.glsl +187 -0
- package/set/shaders/deform6.vector.fragment.glsl +493 -0
- package/set/shaders/deform6.vector.vertex.glsl +168 -0
- package/set/shaders/dof6.capped.fragment.glsl +688 -0
- package/set/shaders/dof6.capped.vertex.glsl +175 -0
- package/set/shaders/dof6.fragment.glsl +530 -0
- package/set/shaders/dof6.vertex.glsl +156 -0
- package/set/shaders/pick.capped.fragment.glsl +84 -0
- package/set/shaders/pick.capped.vertex.glsl +99 -0
- package/set/shaders/pick.fragment.glsl +69 -0
- package/set/shaders/pick.vertex.glsl +81 -0
- package/set/shaders/scalar.capped.fragment.glsl +676 -0
- package/set/shaders/scalar.capped.vertex.glsl +167 -0
- package/set/shaders/scalar.fragment.glsl +518 -0
- package/set/shaders/scalar.vertex.glsl +148 -0
- package/set/shaders/surface.capped.fragment.glsl +419 -0
- package/set/shaders/surface.capped.vertex.glsl +136 -0
- package/set/shaders/surface.fragment.glsl +265 -0
- package/set/shaders/surface.vertex.glsl +117 -0
- package/set/shaders/symtensor.capped.fragment.glsl +1233 -0
- package/set/shaders/symtensor.capped.vertex.glsl +176 -0
- package/set/shaders/symtensor.fragment.glsl +1075 -0
- package/set/shaders/symtensor.vertex.glsl +157 -0
- package/set/shaders/textured-normal.capped.fragment.glsl +433 -0
- package/set/shaders/textured-normal.capped.vertex.glsl +157 -0
- package/set/shaders/textured-normal.fragment.glsl +279 -0
- package/set/shaders/textured-normal.vertex.glsl +138 -0
- package/set/shaders/textured.capped.fragment.glsl +424 -0
- package/set/shaders/textured.capped.vertex.glsl +141 -0
- package/set/shaders/textured.fragment.glsl +271 -0
- package/set/shaders/textured.vertex.glsl +122 -0
- package/set/shaders/vector.capped.fragment.glsl +651 -0
- package/set/shaders/vector.capped.vertex.glsl +171 -0
- package/set/shaders/vector.fragment.glsl +493 -0
- package/set/shaders/vector.vertex.glsl +152 -0
|
@@ -0,0 +1,1075 @@
|
|
|
1
|
+
#version 300 es
|
|
2
|
+
precision highp float;
|
|
3
|
+
precision highp int;
|
|
4
|
+
|
|
5
|
+
struct _Array_std140_vector_float_4_6
|
|
6
|
+
{
|
|
7
|
+
highp vec4 data[6];
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
struct _Array_std140_int6
|
|
11
|
+
{
|
|
12
|
+
int data[6];
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
struct _Array_std140_vector_float_2_72
|
|
16
|
+
{
|
|
17
|
+
highp vec2 data[72];
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
struct _Array_std140_vector_float_4_72
|
|
21
|
+
{
|
|
22
|
+
highp vec4 data[72];
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
struct _Array_std140_int72
|
|
26
|
+
{
|
|
27
|
+
int data[72];
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
struct _Array_std140_vector_float_4_4
|
|
31
|
+
{
|
|
32
|
+
highp vec4 data[4];
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
struct _Array_std140_vector_float_3_4
|
|
36
|
+
{
|
|
37
|
+
highp vec3 data[4];
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
layout(std140) uniform GlobalParams_std140
|
|
41
|
+
{
|
|
42
|
+
layout(row_major) highp mat4 u_mvpMatrix;
|
|
43
|
+
layout(row_major) highp mat4 u_modelViewMatrix;
|
|
44
|
+
highp vec3 u_deformScale;
|
|
45
|
+
highp vec3 u_deformRotationCenter;
|
|
46
|
+
int u_maskLutWidth;
|
|
47
|
+
int u_transformLutWidth;
|
|
48
|
+
int u_transformLutStride;
|
|
49
|
+
_Array_std140_vector_float_4_6 u_clipPlanes;
|
|
50
|
+
int u_clipPlaneCount;
|
|
51
|
+
_Array_std140_int6 u_componentOrder;
|
|
52
|
+
int u_derivedType;
|
|
53
|
+
highp float u_nu;
|
|
54
|
+
_Array_std140_vector_float_2_72 u_bandBounds;
|
|
55
|
+
int u_numBands;
|
|
56
|
+
_Array_std140_vector_float_4_72 u_lowerColors;
|
|
57
|
+
_Array_std140_vector_float_4_72 u_upperColors;
|
|
58
|
+
_Array_std140_int72 u_interpModes;
|
|
59
|
+
int u_interpSteps;
|
|
60
|
+
highp vec4 u_nanColor;
|
|
61
|
+
highp vec4 u_uncoveredColor;
|
|
62
|
+
highp vec4 u_errorColor;
|
|
63
|
+
highp vec3 u_viewPosition;
|
|
64
|
+
highp vec3 u_environmentSky;
|
|
65
|
+
highp vec3 u_environmentGround;
|
|
66
|
+
highp vec3 u_environmentUp;
|
|
67
|
+
_Array_std140_vector_float_4_4 u_lightPositions;
|
|
68
|
+
_Array_std140_vector_float_3_4 u_lightColors;
|
|
69
|
+
int u_lightCount;
|
|
70
|
+
highp float u_surfaceFinishScale;
|
|
71
|
+
highp float u_surfaceFinishRoughness;
|
|
72
|
+
highp float u_surfaceFinishColor;
|
|
73
|
+
int u_colorSource;
|
|
74
|
+
highp float u_opacity;
|
|
75
|
+
} globalParams;
|
|
76
|
+
|
|
77
|
+
uniform highp sampler2D SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler;
|
|
78
|
+
|
|
79
|
+
in highp vec3 v0;
|
|
80
|
+
flat in int v4;
|
|
81
|
+
in highp vec3 v3;
|
|
82
|
+
in highp vec3 v5;
|
|
83
|
+
in highp vec3 v6;
|
|
84
|
+
layout(location = 0) out highp vec4 entryPointParam_fragmentMain;
|
|
85
|
+
in highp vec3 v2;
|
|
86
|
+
in highp vec3 v1;
|
|
87
|
+
|
|
88
|
+
void main()
|
|
89
|
+
{
|
|
90
|
+
bool _3580 = false;
|
|
91
|
+
bool _1863 = false;
|
|
92
|
+
bool _1518 = false;
|
|
93
|
+
do
|
|
94
|
+
{
|
|
95
|
+
_1518 = false;
|
|
96
|
+
bool _1519;
|
|
97
|
+
do
|
|
98
|
+
{
|
|
99
|
+
int _1520 = 0;
|
|
100
|
+
for (;;)
|
|
101
|
+
{
|
|
102
|
+
if (!(_1520 < 6))
|
|
103
|
+
{
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
if (_1520 >= globalParams.u_clipPlaneCount)
|
|
107
|
+
{
|
|
108
|
+
break;
|
|
109
|
+
}
|
|
110
|
+
if ((dot(globalParams.u_clipPlanes.data[_1520].xyz, v0) + globalParams.u_clipPlanes.data[_1520].w) < 0.0)
|
|
111
|
+
{
|
|
112
|
+
_1518 = true;
|
|
113
|
+
_1519 = false;
|
|
114
|
+
break;
|
|
115
|
+
}
|
|
116
|
+
_1520++;
|
|
117
|
+
continue;
|
|
118
|
+
}
|
|
119
|
+
if (_1518)
|
|
120
|
+
{
|
|
121
|
+
break;
|
|
122
|
+
}
|
|
123
|
+
_1518 = true;
|
|
124
|
+
_1519 = true;
|
|
125
|
+
break;
|
|
126
|
+
} while(false);
|
|
127
|
+
if (!_1519)
|
|
128
|
+
{
|
|
129
|
+
discard;
|
|
130
|
+
}
|
|
131
|
+
highp vec4 _1566 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 0), 0);
|
|
132
|
+
highp vec4 _1570 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 1), 0);
|
|
133
|
+
highp vec4 _1574 = texelFetch(SPIRV_Cross_Combinedu_materialTableSPIRV_Cross_DummySampler, ivec2(v4, 2), 0);
|
|
134
|
+
highp vec3 _1577 = _1566.xyz;
|
|
135
|
+
highp float _1579 = _1566.w;
|
|
136
|
+
highp vec3 _1581 = _1570.xyz;
|
|
137
|
+
highp float _1583 = _1570.w;
|
|
138
|
+
highp float _1585 = _1574.x;
|
|
139
|
+
highp vec3 _4325 = _1577;
|
|
140
|
+
highp float _4326 = _1579;
|
|
141
|
+
highp float _4327 = _1583;
|
|
142
|
+
highp float _4328 = _1585;
|
|
143
|
+
highp vec3 _4329 = _1581;
|
|
144
|
+
highp vec3 _4353 = _1577;
|
|
145
|
+
highp float _4354 = _1579;
|
|
146
|
+
highp float _4355 = _1583;
|
|
147
|
+
highp float _4356 = _1585;
|
|
148
|
+
highp vec3 _4357 = _1581;
|
|
149
|
+
highp float _4375 = globalParams.u_surfaceFinishScale;
|
|
150
|
+
highp float _4376 = globalParams.u_surfaceFinishRoughness;
|
|
151
|
+
highp float _4377 = globalParams.u_surfaceFinishColor;
|
|
152
|
+
highp vec3 _4245;
|
|
153
|
+
highp float _4246;
|
|
154
|
+
highp float _4247;
|
|
155
|
+
highp float _4248;
|
|
156
|
+
highp vec3 _4249;
|
|
157
|
+
do
|
|
158
|
+
{
|
|
159
|
+
if (_4375 <= 0.0)
|
|
160
|
+
{
|
|
161
|
+
_4245 = _4353;
|
|
162
|
+
_4246 = _4354;
|
|
163
|
+
_4247 = _4355;
|
|
164
|
+
_4248 = _4356;
|
|
165
|
+
_4249 = _4357;
|
|
166
|
+
break;
|
|
167
|
+
}
|
|
168
|
+
highp vec3 _1600 = v3 / vec3(_4375);
|
|
169
|
+
highp vec3 _1627 = floor(_1600);
|
|
170
|
+
highp vec3 _1628 = _1600 - _1627;
|
|
171
|
+
highp vec3 _1633 = (_1628 * _1628) * (vec3(3.0) - (_1628 * 2.0));
|
|
172
|
+
ivec3 _1634 = ivec3(_1627);
|
|
173
|
+
uint _1673 = (((uint(_1634.x) * 2376512323u) + (uint(_1634.y) * 3625334849u)) + (uint(_1634.z) * 3407524639u)) + 2654435769u;
|
|
174
|
+
uint _1676 = (_1673 ^ (_1673 >> uint(15))) * 739982445u;
|
|
175
|
+
uint _1679 = (_1676 ^ (_1676 >> uint(12))) * 695872825u;
|
|
176
|
+
ivec3 _1636 = _1634 + ivec3(1, 0, 0);
|
|
177
|
+
uint _1698 = (((uint(_1636.x) * 2376512323u) + (uint(_1636.y) * 3625334849u)) + (uint(_1636.z) * 3407524639u)) + 2654435769u;
|
|
178
|
+
uint _1701 = (_1698 ^ (_1698 >> uint(15))) * 739982445u;
|
|
179
|
+
uint _1704 = (_1701 ^ (_1701 >> uint(12))) * 695872825u;
|
|
180
|
+
ivec3 _1638 = _1634 + ivec3(0, 1, 0);
|
|
181
|
+
uint _1723 = (((uint(_1638.x) * 2376512323u) + (uint(_1638.y) * 3625334849u)) + (uint(_1638.z) * 3407524639u)) + 2654435769u;
|
|
182
|
+
uint _1726 = (_1723 ^ (_1723 >> uint(15))) * 739982445u;
|
|
183
|
+
uint _1729 = (_1726 ^ (_1726 >> uint(12))) * 695872825u;
|
|
184
|
+
ivec3 _1640 = _1634 + ivec3(1, 1, 0);
|
|
185
|
+
uint _1748 = (((uint(_1640.x) * 2376512323u) + (uint(_1640.y) * 3625334849u)) + (uint(_1640.z) * 3407524639u)) + 2654435769u;
|
|
186
|
+
uint _1751 = (_1748 ^ (_1748 >> uint(15))) * 739982445u;
|
|
187
|
+
uint _1754 = (_1751 ^ (_1751 >> uint(12))) * 695872825u;
|
|
188
|
+
ivec3 _1642 = _1634 + ivec3(0, 0, 1);
|
|
189
|
+
uint _1773 = (((uint(_1642.x) * 2376512323u) + (uint(_1642.y) * 3625334849u)) + (uint(_1642.z) * 3407524639u)) + 2654435769u;
|
|
190
|
+
uint _1776 = (_1773 ^ (_1773 >> uint(15))) * 739982445u;
|
|
191
|
+
uint _1779 = (_1776 ^ (_1776 >> uint(12))) * 695872825u;
|
|
192
|
+
ivec3 _1644 = _1634 + ivec3(1, 0, 1);
|
|
193
|
+
uint _1798 = (((uint(_1644.x) * 2376512323u) + (uint(_1644.y) * 3625334849u)) + (uint(_1644.z) * 3407524639u)) + 2654435769u;
|
|
194
|
+
uint _1801 = (_1798 ^ (_1798 >> uint(15))) * 739982445u;
|
|
195
|
+
uint _1804 = (_1801 ^ (_1801 >> uint(12))) * 695872825u;
|
|
196
|
+
ivec3 _1646 = _1634 + ivec3(0, 1, 1);
|
|
197
|
+
uint _1823 = (((uint(_1646.x) * 2376512323u) + (uint(_1646.y) * 3625334849u)) + (uint(_1646.z) * 3407524639u)) + 2654435769u;
|
|
198
|
+
uint _1826 = (_1823 ^ (_1823 >> uint(15))) * 739982445u;
|
|
199
|
+
uint _1829 = (_1826 ^ (_1826 >> uint(12))) * 695872825u;
|
|
200
|
+
ivec3 _1648 = _1634 + ivec3(1);
|
|
201
|
+
uint _1848 = (((uint(_1648.x) * 2376512323u) + (uint(_1648.y) * 3625334849u)) + (uint(_1648.z) * 3407524639u)) + 2654435769u;
|
|
202
|
+
uint _1851 = (_1848 ^ (_1848 >> uint(15))) * 739982445u;
|
|
203
|
+
uint _1854 = (_1851 ^ (_1851 >> uint(12))) * 695872825u;
|
|
204
|
+
highp float _1650 = _1633.x;
|
|
205
|
+
highp float _1655 = _1633.y;
|
|
206
|
+
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;
|
|
207
|
+
_4245 = clamp(_4353 * (1.0 + (_1603 * _4377)), vec3(0.0), vec3(1.0));
|
|
208
|
+
_4246 = _4354;
|
|
209
|
+
_4247 = clamp(_4355 + (_1603 * _4376), 0.0, 1.0);
|
|
210
|
+
_4248 = _4356;
|
|
211
|
+
_4249 = _4357;
|
|
212
|
+
break;
|
|
213
|
+
} while(false);
|
|
214
|
+
_4325 = _4245;
|
|
215
|
+
_4326 = _4246;
|
|
216
|
+
_4327 = _4247;
|
|
217
|
+
_4328 = _4248;
|
|
218
|
+
_4329 = _4249;
|
|
219
|
+
_1863 = false;
|
|
220
|
+
highp float _1864;
|
|
221
|
+
do
|
|
222
|
+
{
|
|
223
|
+
highp float _1865[6] = float[](v5.x, v5.y, v5.z, v6.x, v6.y, v6.z);
|
|
224
|
+
int _1867 = 0;
|
|
225
|
+
highp float _1866[6];
|
|
226
|
+
for (;;)
|
|
227
|
+
{
|
|
228
|
+
if (!(_1867 < 6))
|
|
229
|
+
{
|
|
230
|
+
break;
|
|
231
|
+
}
|
|
232
|
+
_1866[_1867] = _1865[globalParams.u_componentOrder.data[_1867]];
|
|
233
|
+
_1867++;
|
|
234
|
+
continue;
|
|
235
|
+
}
|
|
236
|
+
switch (globalParams.u_derivedType)
|
|
237
|
+
{
|
|
238
|
+
case 0:
|
|
239
|
+
{
|
|
240
|
+
_1863 = true;
|
|
241
|
+
_1864 = _1866[0];
|
|
242
|
+
break;
|
|
243
|
+
}
|
|
244
|
+
case 1:
|
|
245
|
+
{
|
|
246
|
+
_1863 = true;
|
|
247
|
+
_1864 = _1866[1];
|
|
248
|
+
break;
|
|
249
|
+
}
|
|
250
|
+
case 2:
|
|
251
|
+
{
|
|
252
|
+
_1863 = true;
|
|
253
|
+
_1864 = _1866[2];
|
|
254
|
+
break;
|
|
255
|
+
}
|
|
256
|
+
case 3:
|
|
257
|
+
{
|
|
258
|
+
_1863 = true;
|
|
259
|
+
_1864 = _1866[3];
|
|
260
|
+
break;
|
|
261
|
+
}
|
|
262
|
+
case 4:
|
|
263
|
+
{
|
|
264
|
+
_1863 = true;
|
|
265
|
+
_1864 = _1866[4];
|
|
266
|
+
break;
|
|
267
|
+
}
|
|
268
|
+
case 5:
|
|
269
|
+
{
|
|
270
|
+
_1863 = true;
|
|
271
|
+
_1864 = _1866[5];
|
|
272
|
+
break;
|
|
273
|
+
}
|
|
274
|
+
case 6:
|
|
275
|
+
{
|
|
276
|
+
_1863 = true;
|
|
277
|
+
_1864 = ((_1866[0] + _1866[1]) + _1866[2]) * 0.3333333432674407958984375;
|
|
278
|
+
break;
|
|
279
|
+
}
|
|
280
|
+
case 7:
|
|
281
|
+
{
|
|
282
|
+
highp float _3543 = _1866[0] - _1866[1];
|
|
283
|
+
highp float _3547 = _1866[1] - _1866[2];
|
|
284
|
+
highp float _3550 = _1866[2] - _1866[0];
|
|
285
|
+
_1863 = true;
|
|
286
|
+
_1864 = sqrt((0.5 * (((_3543 * _3543) + (_3547 * _3547)) + (_3550 * _3550))) + (3.0 * (((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]))));
|
|
287
|
+
break;
|
|
288
|
+
}
|
|
289
|
+
case 8:
|
|
290
|
+
{
|
|
291
|
+
highp float _3510 = _1866[0] - _1866[1];
|
|
292
|
+
highp float _3514 = _1866[1] - _1866[2];
|
|
293
|
+
highp float _3517 = _1866[2] - _1866[0];
|
|
294
|
+
_1863 = true;
|
|
295
|
+
_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);
|
|
296
|
+
break;
|
|
297
|
+
}
|
|
298
|
+
case 9:
|
|
299
|
+
{
|
|
300
|
+
highp float _3477 = _1866[0] - _1866[1];
|
|
301
|
+
highp float _3481 = _1866[1] - _1866[2];
|
|
302
|
+
highp float _3484 = _1866[2] - _1866[0];
|
|
303
|
+
_1863 = true;
|
|
304
|
+
_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);
|
|
305
|
+
break;
|
|
306
|
+
}
|
|
307
|
+
case 10:
|
|
308
|
+
{
|
|
309
|
+
highp float _3444 = _1866[0] - _1866[1];
|
|
310
|
+
highp float _3448 = _1866[1] - _1866[2];
|
|
311
|
+
highp float _3451 = _1866[2] - _1866[0];
|
|
312
|
+
_1863 = true;
|
|
313
|
+
_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]))));
|
|
314
|
+
break;
|
|
315
|
+
}
|
|
316
|
+
case 11:
|
|
317
|
+
{
|
|
318
|
+
highp vec3 _3363;
|
|
319
|
+
do
|
|
320
|
+
{
|
|
321
|
+
highp float _3371 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);
|
|
322
|
+
if (_3371 <= 0.0)
|
|
323
|
+
{
|
|
324
|
+
highp float _3375 = min(_1866[0], min(_1866[1], _1866[2]));
|
|
325
|
+
highp float _3377 = max(_1866[0], max(_1866[1], _1866[2]));
|
|
326
|
+
_3363 = vec3(_3375, (((_1866[0] + _1866[1]) + _1866[2]) - _3375) - _3377, _3377);
|
|
327
|
+
break;
|
|
328
|
+
}
|
|
329
|
+
highp float _3385 = (_1866[0] + _1866[1]) + _1866[2];
|
|
330
|
+
highp float _3386 = _3385 * 0.3333333432674407958984375;
|
|
331
|
+
highp float _3387 = _1866[0] - _3386;
|
|
332
|
+
highp float _3389 = _1866[1] - _3386;
|
|
333
|
+
highp float _3392 = _1866[2] - _3386;
|
|
334
|
+
highp float _3398 = sqrt(((((_3387 * _3387) + (_3389 * _3389)) + (_3392 * _3392)) + (2.0 * _3371)) * 0.16666667163372039794921875);
|
|
335
|
+
highp float _3400 = _3389 / _3398;
|
|
336
|
+
highp float _3401 = _3392 / _3398;
|
|
337
|
+
highp float _3402 = _1866[3] / _3398;
|
|
338
|
+
highp float _3403 = _1866[4] / _3398;
|
|
339
|
+
highp float _3404 = _1866[5] / _3398;
|
|
340
|
+
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;
|
|
341
|
+
highp float _3423 = 2.0 * _3398;
|
|
342
|
+
highp float _3426 = _3386 + (_3423 * cos(_3422));
|
|
343
|
+
highp float _3430 = _3386 + (_3423 * cos(_3422 + 2.094395160675048828125));
|
|
344
|
+
_3363 = vec3(_3430, (_3385 - _3426) - _3430, _3426);
|
|
345
|
+
break;
|
|
346
|
+
} while(false);
|
|
347
|
+
_1863 = true;
|
|
348
|
+
_1864 = 0.5 * (_3363.z - _3363.x);
|
|
349
|
+
break;
|
|
350
|
+
}
|
|
351
|
+
case 12:
|
|
352
|
+
{
|
|
353
|
+
highp vec3 _3270;
|
|
354
|
+
do
|
|
355
|
+
{
|
|
356
|
+
highp float _3278 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);
|
|
357
|
+
if (_3278 <= 0.0)
|
|
358
|
+
{
|
|
359
|
+
highp float _3282 = min(_1866[0], min(_1866[1], _1866[2]));
|
|
360
|
+
highp float _3284 = max(_1866[0], max(_1866[1], _1866[2]));
|
|
361
|
+
_3270 = vec3(_3282, (((_1866[0] + _1866[1]) + _1866[2]) - _3282) - _3284, _3284);
|
|
362
|
+
break;
|
|
363
|
+
}
|
|
364
|
+
highp float _3292 = (_1866[0] + _1866[1]) + _1866[2];
|
|
365
|
+
highp float _3293 = _3292 * 0.3333333432674407958984375;
|
|
366
|
+
highp float _3294 = _1866[0] - _3293;
|
|
367
|
+
highp float _3296 = _1866[1] - _3293;
|
|
368
|
+
highp float _3299 = _1866[2] - _3293;
|
|
369
|
+
highp float _3305 = sqrt(((((_3294 * _3294) + (_3296 * _3296)) + (_3299 * _3299)) + (2.0 * _3278)) * 0.16666667163372039794921875);
|
|
370
|
+
highp float _3307 = _3296 / _3305;
|
|
371
|
+
highp float _3308 = _3299 / _3305;
|
|
372
|
+
highp float _3309 = _1866[3] / _3305;
|
|
373
|
+
highp float _3310 = _1866[4] / _3305;
|
|
374
|
+
highp float _3311 = _1866[5] / _3305;
|
|
375
|
+
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;
|
|
376
|
+
highp float _3330 = 2.0 * _3305;
|
|
377
|
+
highp float _3333 = _3293 + (_3330 * cos(_3329));
|
|
378
|
+
highp float _3337 = _3293 + (_3330 * cos(_3329 + 2.094395160675048828125));
|
|
379
|
+
_3270 = vec3(_3337, (_3292 - _3333) - _3337, _3333);
|
|
380
|
+
break;
|
|
381
|
+
} while(false);
|
|
382
|
+
_1863 = true;
|
|
383
|
+
_1864 = 0.5 * (_3270.z + _3270.x);
|
|
384
|
+
break;
|
|
385
|
+
}
|
|
386
|
+
case 13:
|
|
387
|
+
{
|
|
388
|
+
highp vec3 _3177;
|
|
389
|
+
do
|
|
390
|
+
{
|
|
391
|
+
highp float _3185 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);
|
|
392
|
+
if (_3185 <= 0.0)
|
|
393
|
+
{
|
|
394
|
+
highp float _3189 = min(_1866[0], min(_1866[1], _1866[2]));
|
|
395
|
+
highp float _3191 = max(_1866[0], max(_1866[1], _1866[2]));
|
|
396
|
+
_3177 = vec3(_3189, (((_1866[0] + _1866[1]) + _1866[2]) - _3189) - _3191, _3191);
|
|
397
|
+
break;
|
|
398
|
+
}
|
|
399
|
+
highp float _3199 = (_1866[0] + _1866[1]) + _1866[2];
|
|
400
|
+
highp float _3200 = _3199 * 0.3333333432674407958984375;
|
|
401
|
+
highp float _3201 = _1866[0] - _3200;
|
|
402
|
+
highp float _3203 = _1866[1] - _3200;
|
|
403
|
+
highp float _3206 = _1866[2] - _3200;
|
|
404
|
+
highp float _3212 = sqrt(((((_3201 * _3201) + (_3203 * _3203)) + (_3206 * _3206)) + (2.0 * _3185)) * 0.16666667163372039794921875);
|
|
405
|
+
highp float _3214 = _3203 / _3212;
|
|
406
|
+
highp float _3215 = _3206 / _3212;
|
|
407
|
+
highp float _3216 = _1866[3] / _3212;
|
|
408
|
+
highp float _3217 = _1866[4] / _3212;
|
|
409
|
+
highp float _3218 = _1866[5] / _3212;
|
|
410
|
+
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;
|
|
411
|
+
highp float _3237 = 2.0 * _3212;
|
|
412
|
+
highp float _3240 = _3200 + (_3237 * cos(_3236));
|
|
413
|
+
highp float _3244 = _3200 + (_3237 * cos(_3236 + 2.094395160675048828125));
|
|
414
|
+
_3177 = vec3(_3244, (_3199 - _3240) - _3244, _3240);
|
|
415
|
+
break;
|
|
416
|
+
} while(false);
|
|
417
|
+
_1863 = true;
|
|
418
|
+
_1864 = _3177.z - _3177.x;
|
|
419
|
+
break;
|
|
420
|
+
}
|
|
421
|
+
case 14:
|
|
422
|
+
{
|
|
423
|
+
highp vec3 _3071;
|
|
424
|
+
do
|
|
425
|
+
{
|
|
426
|
+
highp float _3079 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);
|
|
427
|
+
if (_3079 <= 0.0)
|
|
428
|
+
{
|
|
429
|
+
highp float _3083 = min(_1866[0], min(_1866[1], _1866[2]));
|
|
430
|
+
highp float _3085 = max(_1866[0], max(_1866[1], _1866[2]));
|
|
431
|
+
_3071 = vec3(_3083, (((_1866[0] + _1866[1]) + _1866[2]) - _3083) - _3085, _3085);
|
|
432
|
+
break;
|
|
433
|
+
}
|
|
434
|
+
highp float _3093 = (_1866[0] + _1866[1]) + _1866[2];
|
|
435
|
+
highp float _3094 = _3093 * 0.3333333432674407958984375;
|
|
436
|
+
highp float _3095 = _1866[0] - _3094;
|
|
437
|
+
highp float _3097 = _1866[1] - _3094;
|
|
438
|
+
highp float _3100 = _1866[2] - _3094;
|
|
439
|
+
highp float _3106 = sqrt(((((_3095 * _3095) + (_3097 * _3097)) + (_3100 * _3100)) + (2.0 * _3079)) * 0.16666667163372039794921875);
|
|
440
|
+
highp float _3108 = _3097 / _3106;
|
|
441
|
+
highp float _3109 = _3100 / _3106;
|
|
442
|
+
highp float _3110 = _1866[3] / _3106;
|
|
443
|
+
highp float _3111 = _1866[4] / _3106;
|
|
444
|
+
highp float _3112 = _1866[5] / _3106;
|
|
445
|
+
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;
|
|
446
|
+
highp float _3131 = 2.0 * _3106;
|
|
447
|
+
highp float _3134 = _3094 + (_3131 * cos(_3130));
|
|
448
|
+
highp float _3138 = _3094 + (_3131 * cos(_3130 + 2.094395160675048828125));
|
|
449
|
+
_3071 = vec3(_3138, (_3093 - _3134) - _3138, _3134);
|
|
450
|
+
break;
|
|
451
|
+
} while(false);
|
|
452
|
+
highp float _3145;
|
|
453
|
+
if (abs(_3071.x) > (abs(_3071.z) * 1.000010013580322265625))
|
|
454
|
+
{
|
|
455
|
+
_3145 = _3071.x;
|
|
456
|
+
}
|
|
457
|
+
else
|
|
458
|
+
{
|
|
459
|
+
_3145 = _3071.z;
|
|
460
|
+
}
|
|
461
|
+
_1863 = true;
|
|
462
|
+
_1864 = _3145;
|
|
463
|
+
break;
|
|
464
|
+
}
|
|
465
|
+
case 15:
|
|
466
|
+
{
|
|
467
|
+
highp vec3 _2965;
|
|
468
|
+
do
|
|
469
|
+
{
|
|
470
|
+
highp float _4435 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);
|
|
471
|
+
if ((0.25 * _4435) <= 0.0)
|
|
472
|
+
{
|
|
473
|
+
highp float _2977 = min(_1866[0], min(_1866[1], _1866[2]));
|
|
474
|
+
highp float _2979 = max(_1866[0], max(_1866[1], _1866[2]));
|
|
475
|
+
_2965 = vec3(_2977, (((_1866[0] + _1866[1]) + _1866[2]) - _2977) - _2979, _2979);
|
|
476
|
+
break;
|
|
477
|
+
}
|
|
478
|
+
highp float _2987 = (_1866[0] + _1866[1]) + _1866[2];
|
|
479
|
+
highp float _2988 = _2987 * 0.3333333432674407958984375;
|
|
480
|
+
highp float _2989 = _1866[0] - _2988;
|
|
481
|
+
highp float _2991 = _1866[1] - _2988;
|
|
482
|
+
highp float _2994 = _1866[2] - _2988;
|
|
483
|
+
highp float _3000 = sqrt(((((_2989 * _2989) + (_2991 * _2991)) + (_2994 * _2994)) + (_4435 * 0.5)) * 0.16666667163372039794921875);
|
|
484
|
+
highp float _3002 = _2991 / _3000;
|
|
485
|
+
highp float _3003 = _2994 / _3000;
|
|
486
|
+
highp float _3004 = (0.5 * _1866[3]) / _3000;
|
|
487
|
+
highp float _3005 = (0.5 * _1866[4]) / _3000;
|
|
488
|
+
highp float _3006 = (0.5 * _1866[5]) / _3000;
|
|
489
|
+
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;
|
|
490
|
+
highp float _3025 = 2.0 * _3000;
|
|
491
|
+
highp float _3028 = _2988 + (_3025 * cos(_3024));
|
|
492
|
+
highp float _3032 = _2988 + (_3025 * cos(_3024 + 2.094395160675048828125));
|
|
493
|
+
_2965 = vec3(_3032, (_2987 - _3028) - _3032, _3028);
|
|
494
|
+
break;
|
|
495
|
+
} while(false);
|
|
496
|
+
highp float _3039;
|
|
497
|
+
if (abs(_2965.x) > (abs(_2965.z) * 1.000010013580322265625))
|
|
498
|
+
{
|
|
499
|
+
_3039 = _2965.x;
|
|
500
|
+
}
|
|
501
|
+
else
|
|
502
|
+
{
|
|
503
|
+
_3039 = _2965.z;
|
|
504
|
+
}
|
|
505
|
+
_1863 = true;
|
|
506
|
+
_1864 = _3039;
|
|
507
|
+
break;
|
|
508
|
+
}
|
|
509
|
+
case 16:
|
|
510
|
+
{
|
|
511
|
+
_1863 = true;
|
|
512
|
+
_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]);
|
|
513
|
+
break;
|
|
514
|
+
}
|
|
515
|
+
case 17:
|
|
516
|
+
{
|
|
517
|
+
highp vec3 _2843;
|
|
518
|
+
do
|
|
519
|
+
{
|
|
520
|
+
highp float _2851 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);
|
|
521
|
+
if (_2851 <= 0.0)
|
|
522
|
+
{
|
|
523
|
+
highp float _2855 = min(_1866[0], min(_1866[1], _1866[2]));
|
|
524
|
+
highp float _2857 = max(_1866[0], max(_1866[1], _1866[2]));
|
|
525
|
+
_2843 = vec3(_2855, (((_1866[0] + _1866[1]) + _1866[2]) - _2855) - _2857, _2857);
|
|
526
|
+
break;
|
|
527
|
+
}
|
|
528
|
+
highp float _2865 = (_1866[0] + _1866[1]) + _1866[2];
|
|
529
|
+
highp float _2866 = _2865 * 0.3333333432674407958984375;
|
|
530
|
+
highp float _2867 = _1866[0] - _2866;
|
|
531
|
+
highp float _2869 = _1866[1] - _2866;
|
|
532
|
+
highp float _2872 = _1866[2] - _2866;
|
|
533
|
+
highp float _2878 = sqrt(((((_2867 * _2867) + (_2869 * _2869)) + (_2872 * _2872)) + (2.0 * _2851)) * 0.16666667163372039794921875);
|
|
534
|
+
highp float _2880 = _2869 / _2878;
|
|
535
|
+
highp float _2881 = _2872 / _2878;
|
|
536
|
+
highp float _2882 = _1866[3] / _2878;
|
|
537
|
+
highp float _2883 = _1866[4] / _2878;
|
|
538
|
+
highp float _2884 = _1866[5] / _2878;
|
|
539
|
+
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;
|
|
540
|
+
highp float _2903 = 2.0 * _2878;
|
|
541
|
+
highp float _2906 = _2866 + (_2903 * cos(_2902));
|
|
542
|
+
highp float _2910 = _2866 + (_2903 * cos(_2902 + 2.094395160675048828125));
|
|
543
|
+
_2843 = vec3(_2910, (_2865 - _2906) - _2910, _2906);
|
|
544
|
+
break;
|
|
545
|
+
} while(false);
|
|
546
|
+
_1863 = true;
|
|
547
|
+
_1864 = _2843.x;
|
|
548
|
+
break;
|
|
549
|
+
}
|
|
550
|
+
case 18:
|
|
551
|
+
{
|
|
552
|
+
highp vec3 _2750;
|
|
553
|
+
do
|
|
554
|
+
{
|
|
555
|
+
highp float _4430 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);
|
|
556
|
+
if ((0.25 * _4430) <= 0.0)
|
|
557
|
+
{
|
|
558
|
+
highp float _2762 = min(_1866[0], min(_1866[1], _1866[2]));
|
|
559
|
+
highp float _2764 = max(_1866[0], max(_1866[1], _1866[2]));
|
|
560
|
+
_2750 = vec3(_2762, (((_1866[0] + _1866[1]) + _1866[2]) - _2762) - _2764, _2764);
|
|
561
|
+
break;
|
|
562
|
+
}
|
|
563
|
+
highp float _2772 = (_1866[0] + _1866[1]) + _1866[2];
|
|
564
|
+
highp float _2773 = _2772 * 0.3333333432674407958984375;
|
|
565
|
+
highp float _2774 = _1866[0] - _2773;
|
|
566
|
+
highp float _2776 = _1866[1] - _2773;
|
|
567
|
+
highp float _2779 = _1866[2] - _2773;
|
|
568
|
+
highp float _2785 = sqrt(((((_2774 * _2774) + (_2776 * _2776)) + (_2779 * _2779)) + (_4430 * 0.5)) * 0.16666667163372039794921875);
|
|
569
|
+
highp float _2787 = _2776 / _2785;
|
|
570
|
+
highp float _2788 = _2779 / _2785;
|
|
571
|
+
highp float _2789 = (0.5 * _1866[3]) / _2785;
|
|
572
|
+
highp float _2790 = (0.5 * _1866[4]) / _2785;
|
|
573
|
+
highp float _2791 = (0.5 * _1866[5]) / _2785;
|
|
574
|
+
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;
|
|
575
|
+
highp float _2810 = 2.0 * _2785;
|
|
576
|
+
highp float _2813 = _2773 + (_2810 * cos(_2809));
|
|
577
|
+
highp float _2817 = _2773 + (_2810 * cos(_2809 + 2.094395160675048828125));
|
|
578
|
+
_2750 = vec3(_2817, (_2772 - _2813) - _2817, _2813);
|
|
579
|
+
break;
|
|
580
|
+
} while(false);
|
|
581
|
+
_1863 = true;
|
|
582
|
+
_1864 = _2750.x;
|
|
583
|
+
break;
|
|
584
|
+
}
|
|
585
|
+
case 19:
|
|
586
|
+
{
|
|
587
|
+
highp vec3 _2646;
|
|
588
|
+
do
|
|
589
|
+
{
|
|
590
|
+
highp float _2654 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);
|
|
591
|
+
if (_2654 <= 0.0)
|
|
592
|
+
{
|
|
593
|
+
highp float _2658 = min(_1866[0], min(_1866[1], _1866[2]));
|
|
594
|
+
highp float _2660 = max(_1866[0], max(_1866[1], _1866[2]));
|
|
595
|
+
_2646 = vec3(_2658, (((_1866[0] + _1866[1]) + _1866[2]) - _2658) - _2660, _2660);
|
|
596
|
+
break;
|
|
597
|
+
}
|
|
598
|
+
highp float _2668 = (_1866[0] + _1866[1]) + _1866[2];
|
|
599
|
+
highp float _2669 = _2668 * 0.3333333432674407958984375;
|
|
600
|
+
highp float _2670 = _1866[0] - _2669;
|
|
601
|
+
highp float _2672 = _1866[1] - _2669;
|
|
602
|
+
highp float _2675 = _1866[2] - _2669;
|
|
603
|
+
highp float _2681 = sqrt(((((_2670 * _2670) + (_2672 * _2672)) + (_2675 * _2675)) + (2.0 * _2654)) * 0.16666667163372039794921875);
|
|
604
|
+
highp float _2683 = _2672 / _2681;
|
|
605
|
+
highp float _2684 = _2675 / _2681;
|
|
606
|
+
highp float _2685 = _1866[3] / _2681;
|
|
607
|
+
highp float _2686 = _1866[4] / _2681;
|
|
608
|
+
highp float _2687 = _1866[5] / _2681;
|
|
609
|
+
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;
|
|
610
|
+
highp float _2706 = 2.0 * _2681;
|
|
611
|
+
highp float _2709 = _2669 + (_2706 * cos(_2705));
|
|
612
|
+
highp float _2713 = _2669 + (_2706 * cos(_2705 + 2.094395160675048828125));
|
|
613
|
+
_2646 = vec3(_2713, (_2668 - _2709) - _2713, _2709);
|
|
614
|
+
break;
|
|
615
|
+
} while(false);
|
|
616
|
+
_1863 = true;
|
|
617
|
+
_1864 = _2646.x - (((_1866[0] + _1866[1]) + _1866[2]) * 0.3333333432674407958984375);
|
|
618
|
+
break;
|
|
619
|
+
}
|
|
620
|
+
case 20:
|
|
621
|
+
{
|
|
622
|
+
highp vec3 _2553;
|
|
623
|
+
do
|
|
624
|
+
{
|
|
625
|
+
highp float _2561 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);
|
|
626
|
+
if (_2561 <= 0.0)
|
|
627
|
+
{
|
|
628
|
+
highp float _2565 = min(_1866[0], min(_1866[1], _1866[2]));
|
|
629
|
+
highp float _2567 = max(_1866[0], max(_1866[1], _1866[2]));
|
|
630
|
+
_2553 = vec3(_2565, (((_1866[0] + _1866[1]) + _1866[2]) - _2565) - _2567, _2567);
|
|
631
|
+
break;
|
|
632
|
+
}
|
|
633
|
+
highp float _2575 = (_1866[0] + _1866[1]) + _1866[2];
|
|
634
|
+
highp float _2576 = _2575 * 0.3333333432674407958984375;
|
|
635
|
+
highp float _2577 = _1866[0] - _2576;
|
|
636
|
+
highp float _2579 = _1866[1] - _2576;
|
|
637
|
+
highp float _2582 = _1866[2] - _2576;
|
|
638
|
+
highp float _2588 = sqrt(((((_2577 * _2577) + (_2579 * _2579)) + (_2582 * _2582)) + (2.0 * _2561)) * 0.16666667163372039794921875);
|
|
639
|
+
highp float _2590 = _2579 / _2588;
|
|
640
|
+
highp float _2591 = _2582 / _2588;
|
|
641
|
+
highp float _2592 = _1866[3] / _2588;
|
|
642
|
+
highp float _2593 = _1866[4] / _2588;
|
|
643
|
+
highp float _2594 = _1866[5] / _2588;
|
|
644
|
+
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;
|
|
645
|
+
highp float _2613 = 2.0 * _2588;
|
|
646
|
+
highp float _2616 = _2576 + (_2613 * cos(_2612));
|
|
647
|
+
highp float _2620 = _2576 + (_2613 * cos(_2612 + 2.094395160675048828125));
|
|
648
|
+
_2553 = vec3(_2620, (_2575 - _2616) - _2620, _2616);
|
|
649
|
+
break;
|
|
650
|
+
} while(false);
|
|
651
|
+
_1863 = true;
|
|
652
|
+
_1864 = _2553.y;
|
|
653
|
+
break;
|
|
654
|
+
}
|
|
655
|
+
case 21:
|
|
656
|
+
{
|
|
657
|
+
highp vec3 _2460;
|
|
658
|
+
do
|
|
659
|
+
{
|
|
660
|
+
highp float _4425 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);
|
|
661
|
+
if ((0.25 * _4425) <= 0.0)
|
|
662
|
+
{
|
|
663
|
+
highp float _2472 = min(_1866[0], min(_1866[1], _1866[2]));
|
|
664
|
+
highp float _2474 = max(_1866[0], max(_1866[1], _1866[2]));
|
|
665
|
+
_2460 = vec3(_2472, (((_1866[0] + _1866[1]) + _1866[2]) - _2472) - _2474, _2474);
|
|
666
|
+
break;
|
|
667
|
+
}
|
|
668
|
+
highp float _2482 = (_1866[0] + _1866[1]) + _1866[2];
|
|
669
|
+
highp float _2483 = _2482 * 0.3333333432674407958984375;
|
|
670
|
+
highp float _2484 = _1866[0] - _2483;
|
|
671
|
+
highp float _2486 = _1866[1] - _2483;
|
|
672
|
+
highp float _2489 = _1866[2] - _2483;
|
|
673
|
+
highp float _2495 = sqrt(((((_2484 * _2484) + (_2486 * _2486)) + (_2489 * _2489)) + (_4425 * 0.5)) * 0.16666667163372039794921875);
|
|
674
|
+
highp float _2497 = _2486 / _2495;
|
|
675
|
+
highp float _2498 = _2489 / _2495;
|
|
676
|
+
highp float _2499 = (0.5 * _1866[3]) / _2495;
|
|
677
|
+
highp float _2500 = (0.5 * _1866[4]) / _2495;
|
|
678
|
+
highp float _2501 = (0.5 * _1866[5]) / _2495;
|
|
679
|
+
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;
|
|
680
|
+
highp float _2520 = 2.0 * _2495;
|
|
681
|
+
highp float _2523 = _2483 + (_2520 * cos(_2519));
|
|
682
|
+
highp float _2527 = _2483 + (_2520 * cos(_2519 + 2.094395160675048828125));
|
|
683
|
+
_2460 = vec3(_2527, (_2482 - _2523) - _2527, _2523);
|
|
684
|
+
break;
|
|
685
|
+
} while(false);
|
|
686
|
+
_1863 = true;
|
|
687
|
+
_1864 = _2460.y;
|
|
688
|
+
break;
|
|
689
|
+
}
|
|
690
|
+
case 22:
|
|
691
|
+
{
|
|
692
|
+
highp vec3 _2356;
|
|
693
|
+
do
|
|
694
|
+
{
|
|
695
|
+
highp float _2364 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);
|
|
696
|
+
if (_2364 <= 0.0)
|
|
697
|
+
{
|
|
698
|
+
highp float _2368 = min(_1866[0], min(_1866[1], _1866[2]));
|
|
699
|
+
highp float _2370 = max(_1866[0], max(_1866[1], _1866[2]));
|
|
700
|
+
_2356 = vec3(_2368, (((_1866[0] + _1866[1]) + _1866[2]) - _2368) - _2370, _2370);
|
|
701
|
+
break;
|
|
702
|
+
}
|
|
703
|
+
highp float _2378 = (_1866[0] + _1866[1]) + _1866[2];
|
|
704
|
+
highp float _2379 = _2378 * 0.3333333432674407958984375;
|
|
705
|
+
highp float _2380 = _1866[0] - _2379;
|
|
706
|
+
highp float _2382 = _1866[1] - _2379;
|
|
707
|
+
highp float _2385 = _1866[2] - _2379;
|
|
708
|
+
highp float _2391 = sqrt(((((_2380 * _2380) + (_2382 * _2382)) + (_2385 * _2385)) + (2.0 * _2364)) * 0.16666667163372039794921875);
|
|
709
|
+
highp float _2393 = _2382 / _2391;
|
|
710
|
+
highp float _2394 = _2385 / _2391;
|
|
711
|
+
highp float _2395 = _1866[3] / _2391;
|
|
712
|
+
highp float _2396 = _1866[4] / _2391;
|
|
713
|
+
highp float _2397 = _1866[5] / _2391;
|
|
714
|
+
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;
|
|
715
|
+
highp float _2416 = 2.0 * _2391;
|
|
716
|
+
highp float _2419 = _2379 + (_2416 * cos(_2415));
|
|
717
|
+
highp float _2423 = _2379 + (_2416 * cos(_2415 + 2.094395160675048828125));
|
|
718
|
+
_2356 = vec3(_2423, (_2378 - _2419) - _2423, _2419);
|
|
719
|
+
break;
|
|
720
|
+
} while(false);
|
|
721
|
+
_1863 = true;
|
|
722
|
+
_1864 = _2356.y - (((_1866[0] + _1866[1]) + _1866[2]) * 0.3333333432674407958984375);
|
|
723
|
+
break;
|
|
724
|
+
}
|
|
725
|
+
case 23:
|
|
726
|
+
{
|
|
727
|
+
highp vec3 _2263;
|
|
728
|
+
do
|
|
729
|
+
{
|
|
730
|
+
highp float _2271 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);
|
|
731
|
+
if (_2271 <= 0.0)
|
|
732
|
+
{
|
|
733
|
+
highp float _2275 = min(_1866[0], min(_1866[1], _1866[2]));
|
|
734
|
+
highp float _2277 = max(_1866[0], max(_1866[1], _1866[2]));
|
|
735
|
+
_2263 = vec3(_2275, (((_1866[0] + _1866[1]) + _1866[2]) - _2275) - _2277, _2277);
|
|
736
|
+
break;
|
|
737
|
+
}
|
|
738
|
+
highp float _2285 = (_1866[0] + _1866[1]) + _1866[2];
|
|
739
|
+
highp float _2286 = _2285 * 0.3333333432674407958984375;
|
|
740
|
+
highp float _2287 = _1866[0] - _2286;
|
|
741
|
+
highp float _2289 = _1866[1] - _2286;
|
|
742
|
+
highp float _2292 = _1866[2] - _2286;
|
|
743
|
+
highp float _2298 = sqrt(((((_2287 * _2287) + (_2289 * _2289)) + (_2292 * _2292)) + (2.0 * _2271)) * 0.16666667163372039794921875);
|
|
744
|
+
highp float _2300 = _2289 / _2298;
|
|
745
|
+
highp float _2301 = _2292 / _2298;
|
|
746
|
+
highp float _2302 = _1866[3] / _2298;
|
|
747
|
+
highp float _2303 = _1866[4] / _2298;
|
|
748
|
+
highp float _2304 = _1866[5] / _2298;
|
|
749
|
+
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;
|
|
750
|
+
highp float _2323 = 2.0 * _2298;
|
|
751
|
+
highp float _2326 = _2286 + (_2323 * cos(_2322));
|
|
752
|
+
highp float _2330 = _2286 + (_2323 * cos(_2322 + 2.094395160675048828125));
|
|
753
|
+
_2263 = vec3(_2330, (_2285 - _2326) - _2330, _2326);
|
|
754
|
+
break;
|
|
755
|
+
} while(false);
|
|
756
|
+
_1863 = true;
|
|
757
|
+
_1864 = _2263.z;
|
|
758
|
+
break;
|
|
759
|
+
}
|
|
760
|
+
case 24:
|
|
761
|
+
{
|
|
762
|
+
highp vec3 _2170;
|
|
763
|
+
do
|
|
764
|
+
{
|
|
765
|
+
highp float _4420 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);
|
|
766
|
+
if ((0.25 * _4420) <= 0.0)
|
|
767
|
+
{
|
|
768
|
+
highp float _2182 = min(_1866[0], min(_1866[1], _1866[2]));
|
|
769
|
+
highp float _2184 = max(_1866[0], max(_1866[1], _1866[2]));
|
|
770
|
+
_2170 = vec3(_2182, (((_1866[0] + _1866[1]) + _1866[2]) - _2182) - _2184, _2184);
|
|
771
|
+
break;
|
|
772
|
+
}
|
|
773
|
+
highp float _2192 = (_1866[0] + _1866[1]) + _1866[2];
|
|
774
|
+
highp float _2193 = _2192 * 0.3333333432674407958984375;
|
|
775
|
+
highp float _2194 = _1866[0] - _2193;
|
|
776
|
+
highp float _2196 = _1866[1] - _2193;
|
|
777
|
+
highp float _2199 = _1866[2] - _2193;
|
|
778
|
+
highp float _2205 = sqrt(((((_2194 * _2194) + (_2196 * _2196)) + (_2199 * _2199)) + (_4420 * 0.5)) * 0.16666667163372039794921875);
|
|
779
|
+
highp float _2207 = _2196 / _2205;
|
|
780
|
+
highp float _2208 = _2199 / _2205;
|
|
781
|
+
highp float _2209 = (0.5 * _1866[3]) / _2205;
|
|
782
|
+
highp float _2210 = (0.5 * _1866[4]) / _2205;
|
|
783
|
+
highp float _2211 = (0.5 * _1866[5]) / _2205;
|
|
784
|
+
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;
|
|
785
|
+
highp float _2230 = 2.0 * _2205;
|
|
786
|
+
highp float _2233 = _2193 + (_2230 * cos(_2229));
|
|
787
|
+
highp float _2237 = _2193 + (_2230 * cos(_2229 + 2.094395160675048828125));
|
|
788
|
+
_2170 = vec3(_2237, (_2192 - _2233) - _2237, _2233);
|
|
789
|
+
break;
|
|
790
|
+
} while(false);
|
|
791
|
+
_1863 = true;
|
|
792
|
+
_1864 = _2170.z;
|
|
793
|
+
break;
|
|
794
|
+
}
|
|
795
|
+
case 25:
|
|
796
|
+
{
|
|
797
|
+
highp vec3 _2066;
|
|
798
|
+
do
|
|
799
|
+
{
|
|
800
|
+
highp float _2074 = ((_1866[3] * _1866[3]) + (_1866[4] * _1866[4])) + (_1866[5] * _1866[5]);
|
|
801
|
+
if (_2074 <= 0.0)
|
|
802
|
+
{
|
|
803
|
+
highp float _2078 = min(_1866[0], min(_1866[1], _1866[2]));
|
|
804
|
+
highp float _2080 = max(_1866[0], max(_1866[1], _1866[2]));
|
|
805
|
+
_2066 = vec3(_2078, (((_1866[0] + _1866[1]) + _1866[2]) - _2078) - _2080, _2080);
|
|
806
|
+
break;
|
|
807
|
+
}
|
|
808
|
+
highp float _2088 = (_1866[0] + _1866[1]) + _1866[2];
|
|
809
|
+
highp float _2089 = _2088 * 0.3333333432674407958984375;
|
|
810
|
+
highp float _2090 = _1866[0] - _2089;
|
|
811
|
+
highp float _2092 = _1866[1] - _2089;
|
|
812
|
+
highp float _2095 = _1866[2] - _2089;
|
|
813
|
+
highp float _2101 = sqrt(((((_2090 * _2090) + (_2092 * _2092)) + (_2095 * _2095)) + (2.0 * _2074)) * 0.16666667163372039794921875);
|
|
814
|
+
highp float _2103 = _2092 / _2101;
|
|
815
|
+
highp float _2104 = _2095 / _2101;
|
|
816
|
+
highp float _2105 = _1866[3] / _2101;
|
|
817
|
+
highp float _2106 = _1866[4] / _2101;
|
|
818
|
+
highp float _2107 = _1866[5] / _2101;
|
|
819
|
+
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;
|
|
820
|
+
highp float _2126 = 2.0 * _2101;
|
|
821
|
+
highp float _2129 = _2089 + (_2126 * cos(_2125));
|
|
822
|
+
highp float _2133 = _2089 + (_2126 * cos(_2125 + 2.094395160675048828125));
|
|
823
|
+
_2066 = vec3(_2133, (_2088 - _2129) - _2133, _2129);
|
|
824
|
+
break;
|
|
825
|
+
} while(false);
|
|
826
|
+
_1863 = true;
|
|
827
|
+
_1864 = _2066.z - (((_1866[0] + _1866[1]) + _1866[2]) * 0.3333333432674407958984375);
|
|
828
|
+
break;
|
|
829
|
+
}
|
|
830
|
+
default:
|
|
831
|
+
{
|
|
832
|
+
_1863 = true;
|
|
833
|
+
_1864 = uintBitsToFloat(0x7fc00000u /* nan */);
|
|
834
|
+
break;
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
if (_1863)
|
|
838
|
+
{
|
|
839
|
+
break;
|
|
840
|
+
}
|
|
841
|
+
break;
|
|
842
|
+
} while(false);
|
|
843
|
+
_3580 = false;
|
|
844
|
+
highp vec4 _3581;
|
|
845
|
+
do
|
|
846
|
+
{
|
|
847
|
+
if (_1864 != _1864)
|
|
848
|
+
{
|
|
849
|
+
_3580 = true;
|
|
850
|
+
_3581 = globalParams.u_nanColor;
|
|
851
|
+
break;
|
|
852
|
+
}
|
|
853
|
+
int _3582 = 0;
|
|
854
|
+
bool _3583;
|
|
855
|
+
highp vec4 _3641;
|
|
856
|
+
bool _3642;
|
|
857
|
+
highp float _3664;
|
|
858
|
+
bool _3665;
|
|
859
|
+
for (;;)
|
|
860
|
+
{
|
|
861
|
+
if (!(_3582 < globalParams.u_numBands))
|
|
862
|
+
{
|
|
863
|
+
break;
|
|
864
|
+
}
|
|
865
|
+
if (_1864 >= globalParams.u_bandBounds.data[_3582].x)
|
|
866
|
+
{
|
|
867
|
+
_3583 = _1864 < globalParams.u_bandBounds.data[_3582].y;
|
|
868
|
+
}
|
|
869
|
+
else
|
|
870
|
+
{
|
|
871
|
+
_3583 = false;
|
|
872
|
+
}
|
|
873
|
+
if (_3583)
|
|
874
|
+
{
|
|
875
|
+
do
|
|
876
|
+
{
|
|
877
|
+
if (all(equal(globalParams.u_lowerColors.data[_3582], globalParams.u_upperColors.data[_3582])))
|
|
878
|
+
{
|
|
879
|
+
_3641 = globalParams.u_lowerColors.data[_3582];
|
|
880
|
+
break;
|
|
881
|
+
}
|
|
882
|
+
if (globalParams.u_interpModes.data[_3582] == 1)
|
|
883
|
+
{
|
|
884
|
+
_3642 = globalParams.u_bandBounds.data[_3582].x <= 0.0;
|
|
885
|
+
}
|
|
886
|
+
else
|
|
887
|
+
{
|
|
888
|
+
_3642 = false;
|
|
889
|
+
}
|
|
890
|
+
if (_3642)
|
|
891
|
+
{
|
|
892
|
+
_3641 = globalParams.u_errorColor;
|
|
893
|
+
break;
|
|
894
|
+
}
|
|
895
|
+
if (globalParams.u_interpModes.data[_3582] == 1)
|
|
896
|
+
{
|
|
897
|
+
if (0.0 < globalParams.u_bandBounds.data[_3582].x)
|
|
898
|
+
{
|
|
899
|
+
_3665 = globalParams.u_bandBounds.data[_3582].x < globalParams.u_bandBounds.data[_3582].y;
|
|
900
|
+
}
|
|
901
|
+
else
|
|
902
|
+
{
|
|
903
|
+
_3665 = false;
|
|
904
|
+
}
|
|
905
|
+
if (_3665)
|
|
906
|
+
{
|
|
907
|
+
_3665 = _1864 > 0.0;
|
|
908
|
+
}
|
|
909
|
+
else
|
|
910
|
+
{
|
|
911
|
+
_3665 = false;
|
|
912
|
+
}
|
|
913
|
+
if (_3665)
|
|
914
|
+
{
|
|
915
|
+
_3664 = log(_1864 / globalParams.u_bandBounds.data[_3582].x) / log(globalParams.u_bandBounds.data[_3582].y / globalParams.u_bandBounds.data[_3582].x);
|
|
916
|
+
}
|
|
917
|
+
else
|
|
918
|
+
{
|
|
919
|
+
_3664 = 0.0;
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
else
|
|
923
|
+
{
|
|
924
|
+
highp float _3672 = globalParams.u_bandBounds.data[_3582].y - globalParams.u_bandBounds.data[_3582].x;
|
|
925
|
+
if (_3672 > 0.0)
|
|
926
|
+
{
|
|
927
|
+
_3664 = (_1864 - globalParams.u_bandBounds.data[_3582].x) / _3672;
|
|
928
|
+
}
|
|
929
|
+
else
|
|
930
|
+
{
|
|
931
|
+
_3664 = 0.0;
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
if (_3664 != _3664)
|
|
935
|
+
{
|
|
936
|
+
_3664 = 0.0;
|
|
937
|
+
}
|
|
938
|
+
highp float _3706 = _3664;
|
|
939
|
+
highp float _3707 = clamp(_3706, 0.0, 1.0);
|
|
940
|
+
if (globalParams.u_interpSteps > 1)
|
|
941
|
+
{
|
|
942
|
+
highp float _3711 = float(globalParams.u_interpSteps);
|
|
943
|
+
highp float _3714 = _3711 - 1.0;
|
|
944
|
+
_3664 = min(floor(_3707 * _3711), _3714) / _3714;
|
|
945
|
+
}
|
|
946
|
+
else
|
|
947
|
+
{
|
|
948
|
+
_3664 = _3707;
|
|
949
|
+
}
|
|
950
|
+
_3641 = mix(globalParams.u_lowerColors.data[_3582], globalParams.u_upperColors.data[_3582], vec4(_3664));
|
|
951
|
+
break;
|
|
952
|
+
} while(false);
|
|
953
|
+
_3580 = true;
|
|
954
|
+
_3581 = _3641;
|
|
955
|
+
break;
|
|
956
|
+
}
|
|
957
|
+
_3582++;
|
|
958
|
+
continue;
|
|
959
|
+
}
|
|
960
|
+
if (_3580)
|
|
961
|
+
{
|
|
962
|
+
break;
|
|
963
|
+
}
|
|
964
|
+
_3580 = true;
|
|
965
|
+
_3581 = globalParams.u_uncoveredColor;
|
|
966
|
+
break;
|
|
967
|
+
} while(false);
|
|
968
|
+
if (globalParams.u_colorSource == 1)
|
|
969
|
+
{
|
|
970
|
+
entryPointParam_fragmentMain = vec4(_3581.xyz, _3581.w * globalParams.u_opacity);
|
|
971
|
+
break;
|
|
972
|
+
}
|
|
973
|
+
if (globalParams.u_colorSource == 2)
|
|
974
|
+
{
|
|
975
|
+
_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));
|
|
976
|
+
}
|
|
977
|
+
if (globalParams.u_colorSource == 3)
|
|
978
|
+
{
|
|
979
|
+
entryPointParam_fragmentMain = vec4(_4325, globalParams.u_opacity);
|
|
980
|
+
break;
|
|
981
|
+
}
|
|
982
|
+
highp vec3 _1098 = normalize(v2);
|
|
983
|
+
highp vec3 _3733 = normalize(globalParams.u_viewPosition - v1);
|
|
984
|
+
highp vec3 _4388 = _4325;
|
|
985
|
+
highp float _4389 = _4326;
|
|
986
|
+
highp float _4390 = _4327;
|
|
987
|
+
highp float _4391 = _4328;
|
|
988
|
+
highp vec3 _4392 = _4329;
|
|
989
|
+
highp vec3 _4398 = globalParams.u_environmentSky;
|
|
990
|
+
highp vec3 _4399 = globalParams.u_environmentGround;
|
|
991
|
+
highp vec3 _4400 = globalParams.u_environmentUp;
|
|
992
|
+
int _3734 = 0;
|
|
993
|
+
highp vec3 _3735 = vec3(0.0);
|
|
994
|
+
highp vec3 _3776;
|
|
995
|
+
highp vec3 _3777;
|
|
996
|
+
highp vec3 _3778;
|
|
997
|
+
highp float _3779;
|
|
998
|
+
for (;;)
|
|
999
|
+
{
|
|
1000
|
+
if (!(_3734 < 4))
|
|
1001
|
+
{
|
|
1002
|
+
break;
|
|
1003
|
+
}
|
|
1004
|
+
if (_3734 < globalParams.u_lightCount)
|
|
1005
|
+
{
|
|
1006
|
+
do
|
|
1007
|
+
{
|
|
1008
|
+
bool _3784 = globalParams.u_lightPositions.data[_3734].w == 0.0;
|
|
1009
|
+
if (_3784)
|
|
1010
|
+
{
|
|
1011
|
+
_3777 = globalParams.u_lightPositions.data[_3734].xyz;
|
|
1012
|
+
}
|
|
1013
|
+
else
|
|
1014
|
+
{
|
|
1015
|
+
_3777 = globalParams.u_lightPositions.data[_3734].xyz - v1;
|
|
1016
|
+
}
|
|
1017
|
+
highp float _3793 = dot(_3777, _3777);
|
|
1018
|
+
if (_3784)
|
|
1019
|
+
{
|
|
1020
|
+
_3778 = normalize(globalParams.u_lightPositions.data[_3734].xyz);
|
|
1021
|
+
}
|
|
1022
|
+
else
|
|
1023
|
+
{
|
|
1024
|
+
_3778 = _3777 * inversesqrt(_3793);
|
|
1025
|
+
}
|
|
1026
|
+
if (_3784)
|
|
1027
|
+
{
|
|
1028
|
+
_3779 = 1.0;
|
|
1029
|
+
}
|
|
1030
|
+
else
|
|
1031
|
+
{
|
|
1032
|
+
_3779 = 1.0 / _3793;
|
|
1033
|
+
}
|
|
1034
|
+
highp float _3809 = dot(_1098, _3778);
|
|
1035
|
+
if (_3809 <= 0.0)
|
|
1036
|
+
{
|
|
1037
|
+
_3776 = vec3(0.0);
|
|
1038
|
+
break;
|
|
1039
|
+
}
|
|
1040
|
+
highp vec3 _3814 = _3733 + _3778;
|
|
1041
|
+
highp float _3815 = dot(_3814, _3814);
|
|
1042
|
+
if (_3815 <= 9.9999999600419720025001879548654e-13)
|
|
1043
|
+
{
|
|
1044
|
+
_3776 = vec3(0.0);
|
|
1045
|
+
break;
|
|
1046
|
+
}
|
|
1047
|
+
highp vec3 _3820 = _3814 * inversesqrt(_3815);
|
|
1048
|
+
highp float _3822 = max(dot(_1098, _3733), 0.0);
|
|
1049
|
+
highp float _3824 = max(dot(_1098, _3820), 0.0);
|
|
1050
|
+
highp float _3829 = max(_4390, 0.039999999105930328369140625);
|
|
1051
|
+
highp vec3 _3861 = mix(vec3(0.039999999105930328369140625), _4388, vec3(_4389));
|
|
1052
|
+
highp float _3864 = _3829 * _3829;
|
|
1053
|
+
highp float _3865 = _3864 * _3864;
|
|
1054
|
+
highp float _3869 = ((_3824 * _3824) * (_3865 - 1.0)) + 1.0;
|
|
1055
|
+
highp float _3880 = _3829 + 1.0;
|
|
1056
|
+
highp float _3882 = (_3880 * _3880) * 0.125;
|
|
1057
|
+
highp float _3889 = _3829 + 1.0;
|
|
1058
|
+
highp float _3891 = (_3889 * _3889) * 0.125;
|
|
1059
|
+
highp vec3 _3904 = _3861 + ((vec3(1.0) - _3861) * pow(clamp(1.0 - max(dot(_3820, _3733), 0.0), 0.0, 1.0), 5.0));
|
|
1060
|
+
_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;
|
|
1061
|
+
break;
|
|
1062
|
+
} while(false);
|
|
1063
|
+
_3735 += _3776;
|
|
1064
|
+
}
|
|
1065
|
+
_3734++;
|
|
1066
|
+
continue;
|
|
1067
|
+
}
|
|
1068
|
+
highp vec3 _3940 = mix(vec3(0.039999999105930328369140625), _4388, vec3(_4389));
|
|
1069
|
+
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));
|
|
1070
|
+
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;
|
|
1071
|
+
entryPointParam_fragmentMain = vec4(pow(_3774 / (_3774 + vec3(1.0)), vec3(0.454545438289642333984375)), globalParams.u_opacity);
|
|
1072
|
+
break;
|
|
1073
|
+
} while(false);
|
|
1074
|
+
}
|
|
1075
|
+
|