Merge pull request #1283 from dj2/roll
Roll GLSLang, SPIRV-Tools and SPIRV-Headers
This commit is contained in:
commit
f19fdb94d7
@ -1,8 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
GLSLANG_REV=a4af7676feb011d61b1dfa8915bd41d9c5aaf22a
|
||||
SPIRV_TOOLS_REV=e82a428605f6ce0a07337b36f8ba3935c9f165ac
|
||||
SPIRV_HEADERS_REV=204cd131c42b90d129073719f2766293ce35c081
|
||||
GLSLANG_REV=c008fcb8cc0f6a413162fb5236d0c548cc1e0ef6
|
||||
SPIRV_TOOLS_REV=79f8caf9154a0328a87424354bd10ab69e811185
|
||||
SPIRV_HEADERS_REV=5dbc1c32182e17b8ab8e8158a802ecabaf35aad3
|
||||
|
||||
if [ -z $PROTOCOL ]; then
|
||||
PROTOCOL=git
|
||||
|
@ -11,62 +11,63 @@ struct main0_out
|
||||
fragment main0_out main0()
|
||||
{
|
||||
main0_out out = {};
|
||||
int _145;
|
||||
for (;;)
|
||||
switch (0u)
|
||||
{
|
||||
out.FragColor = 16;
|
||||
_145 = 0;
|
||||
for (; _145 < 25; )
|
||||
default:
|
||||
{
|
||||
out.FragColor += 10;
|
||||
_145++;
|
||||
continue;
|
||||
}
|
||||
for (int _146 = 1; _146 < 30; )
|
||||
{
|
||||
out.FragColor += 11;
|
||||
_146++;
|
||||
continue;
|
||||
}
|
||||
int _147;
|
||||
_147 = 0;
|
||||
for (; _147 < 20; )
|
||||
{
|
||||
out.FragColor += 12;
|
||||
_147++;
|
||||
continue;
|
||||
}
|
||||
int _62 = _147 + 3;
|
||||
out.FragColor += _62;
|
||||
if (_62 == 40)
|
||||
{
|
||||
for (int _151 = 0; _151 < 40; )
|
||||
out.FragColor = 16;
|
||||
for (int _143 = 0; _143 < 25; )
|
||||
{
|
||||
out.FragColor += 13;
|
||||
_151++;
|
||||
out.FragColor += 10;
|
||||
_143++;
|
||||
continue;
|
||||
}
|
||||
for (int _144 = 1; _144 < 30; )
|
||||
{
|
||||
out.FragColor += 11;
|
||||
_144++;
|
||||
continue;
|
||||
}
|
||||
int _145;
|
||||
_145 = 0;
|
||||
for (; _145 < 20; )
|
||||
{
|
||||
out.FragColor += 12;
|
||||
_145++;
|
||||
continue;
|
||||
}
|
||||
int _62 = _145 + 3;
|
||||
out.FragColor += _62;
|
||||
if (_62 == 40)
|
||||
{
|
||||
for (int _149 = 0; _149 < 40; )
|
||||
{
|
||||
out.FragColor += 13;
|
||||
_149++;
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
out.FragColor += _62;
|
||||
int2 _146;
|
||||
_146 = int2(0);
|
||||
for (; _146.x < 10; )
|
||||
{
|
||||
out.FragColor += _146.y;
|
||||
int2 _142 = _146;
|
||||
_142.x = _146.x + 4;
|
||||
_146 = _142;
|
||||
continue;
|
||||
}
|
||||
for (int _148 = _62; _148 < 40; )
|
||||
{
|
||||
out.FragColor += _148;
|
||||
_148++;
|
||||
continue;
|
||||
}
|
||||
out.FragColor += _62;
|
||||
break;
|
||||
}
|
||||
out.FragColor += _62;
|
||||
int2 _148;
|
||||
_148 = int2(0);
|
||||
for (; _148.x < 10; )
|
||||
{
|
||||
out.FragColor += _148.y;
|
||||
int2 _144 = _148;
|
||||
_144.x = _148.x + 4;
|
||||
_148 = _144;
|
||||
continue;
|
||||
}
|
||||
for (int _150 = _62; _150 < 40; )
|
||||
{
|
||||
out.FragColor += _150;
|
||||
_150++;
|
||||
continue;
|
||||
}
|
||||
out.FragColor += _62;
|
||||
break;
|
||||
}
|
||||
return out;
|
||||
}
|
||||
|
@ -168,7 +168,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
}
|
||||
else
|
||||
{
|
||||
_599 = (exp2((_577 - float3(0.434017598628997802734375)) * float3(14.0)) * float3(0.180000007152557373046875)) - (exp2(float3(-6.0762462615966796875)) * float3(0.180000007152557373046875));
|
||||
_599 = (exp2((_577 - float3(0.434017598628997802734375)) * float3(14.0)) * float3(0.180000007152557373046875)) - float3(0.00266771926544606685638427734375);
|
||||
}
|
||||
float _602 = _Globals.WhiteTemp * 1.00055634975433349609375;
|
||||
float _616 = (_602 <= 7000.0) ? (0.24406300485134124755859375 + ((99.1100006103515625 + ((2967800.0 - (4604438528.0 / _Globals.WhiteTemp)) / _602)) / _602)) : (0.23703999817371368408203125 + ((247.4799957275390625 + ((1901800.0 - (2005284352.0 / _Globals.WhiteTemp)) / _602)) / _602));
|
||||
@ -272,7 +272,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
}
|
||||
else
|
||||
{
|
||||
_990 = 57.2957763671875 * atan2(sqrt(3.0) * (_974 - _976), ((2.0 * _973) - _974) - _976);
|
||||
_990 = 57.2957763671875 * atan2(1.73205077648162841796875 * (_974 - _976), ((2.0 * _973) - _974) - _976);
|
||||
}
|
||||
float _995;
|
||||
if (_990 < 0.0)
|
||||
@ -303,17 +303,16 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
float _1056;
|
||||
if (_Globals.FilmToe > 0.800000011920928955078125)
|
||||
{
|
||||
_1056 = ((0.819999992847442626953125 - _Globals.FilmToe) / _Globals.FilmSlope) + (log(0.180000007152557373046875) / log(10.0));
|
||||
_1056 = ((0.819999992847442626953125 - _Globals.FilmToe) / _Globals.FilmSlope) + (-0.744727432727813720703125);
|
||||
}
|
||||
else
|
||||
{
|
||||
float _1035 = (0.180000007152557373046875 + _Globals.FilmBlackClip) / _1023;
|
||||
_1056 = (log(0.180000007152557373046875) / log(10.0)) - ((0.5 * log(_1035 / (2.0 - _1035))) * (_1023 / _Globals.FilmSlope));
|
||||
_1056 = (-0.744727432727813720703125) - ((0.5 * log(_1035 / (2.0 - _1035))) * (_1023 / _Globals.FilmSlope));
|
||||
}
|
||||
float _1061 = ((1.0 - _Globals.FilmToe) / _Globals.FilmSlope) - _1056;
|
||||
float _1063 = (_Globals.FilmShoulder / _Globals.FilmSlope) - _1061;
|
||||
float _1065 = log(10.0);
|
||||
float3 _1067 = log(mix(float3(dot(_1014, float3(0.272228717803955078125, 0.674081742763519287109375, 0.053689517080783843994140625))), _1014, float3(0.959999978542327880859375))) / float3(_1065);
|
||||
float3 _1067 = log(mix(float3(dot(_1014, float3(0.272228717803955078125, 0.674081742763519287109375, 0.053689517080783843994140625))), _1014, float3(0.959999978542327880859375))) * float3(0.4342944622039794921875);
|
||||
float3 _1071 = float3(_Globals.FilmSlope) * (_1067 + float3(_1061));
|
||||
float3 _1079 = float3(_1056);
|
||||
float3 _1080 = _1067 - _1079;
|
||||
@ -435,7 +434,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
}
|
||||
else
|
||||
{
|
||||
_2174 = 57.2957763671875 * atan2(sqrt(3.0) * (_2158 - _2160), ((2.0 * _2157) - _2158) - _2160);
|
||||
_2174 = 57.2957763671875 * atan2(1.73205077648162841796875 * (_2158 - _2160), ((2.0 * _2157) - _2158) - _2160);
|
||||
}
|
||||
float _2179;
|
||||
if (_2174 < 0.0)
|
||||
@ -511,40 +510,35 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
float3 _2245 = fast::clamp(fast::clamp(_2242, float3(0.0), float3(65535.0)) * float3x3(float3(1.45143926143646240234375, -0.236510753631591796875, -0.214928567409515380859375), float3(-0.07655377686023712158203125, 1.1762297153472900390625, -0.0996759235858917236328125), float3(0.0083161480724811553955078125, -0.0060324496589601039886474609375, 0.99771630764007568359375)), float3(0.0), float3(65535.0));
|
||||
float3 _2248 = mix(float3(dot(_2245, float3(0.272228717803955078125, 0.674081742763519287109375, 0.053689517080783843994140625))), _2245, float3(0.959999978542327880859375));
|
||||
float _2249 = _2248.x;
|
||||
float _2253 = 0.17999999225139617919921875 * exp2(18.0);
|
||||
float _2255 = exp2(-14.0);
|
||||
float _2258 = log((_2249 <= 0.0) ? _2255 : _2249) / _1065;
|
||||
float _2260 = log(0.17999999225139617919921875 * exp2(-15.0)) / _1065;
|
||||
float _2258 = log((_2249 <= 0.0) ? 6.103515625e-05 : _2249) * 0.4342944622039794921875;
|
||||
float _2327;
|
||||
if (_2258 <= _2260)
|
||||
if (_2258 <= (-5.2601776123046875))
|
||||
{
|
||||
_2327 = log(9.9999997473787516355514526367188e-05) / _1065;
|
||||
_2327 = -4.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
float _2267 = log(0.180000007152557373046875) / _1065;
|
||||
float _2324;
|
||||
if ((_2258 > _2260) && (_2258 < _2267))
|
||||
if ((_2258 > (-5.2601776123046875)) && (_2258 < (-0.744727432727813720703125)))
|
||||
{
|
||||
float _2307 = (3.0 * (_2258 - _2260)) / (_2267 - _2260);
|
||||
float _2307 = (_2258 - (-5.2601776123046875)) * 0.6643855571746826171875;
|
||||
int _2308 = int(_2307);
|
||||
float _2310 = _2307 - float(_2308);
|
||||
_2324 = dot(float3(_2310 * _2310, _2310, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_475[_2308], _475[_2308 + 1], _475[_2308 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
float _2275 = log(_2253) / _1065;
|
||||
float _2303;
|
||||
if ((_2258 >= _2267) && (_2258 < _2275))
|
||||
if ((_2258 >= (-0.744727432727813720703125)) && (_2258 < 4.673812389373779296875))
|
||||
{
|
||||
float _2286 = (3.0 * (_2258 - _2267)) / (_2275 - _2267);
|
||||
float _2286 = (_2258 - (-0.744727432727813720703125)) * 0.55365467071533203125;
|
||||
int _2287 = int(_2286);
|
||||
float _2289 = _2286 - float(_2287);
|
||||
_2303 = dot(float3(_2289 * _2289, _2289, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_476[_2287], _476[_2287 + 1], _476[_2287 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
_2303 = log(10000.0) / _1065;
|
||||
_2303 = 4.0;
|
||||
}
|
||||
_2324 = _2303;
|
||||
}
|
||||
@ -553,37 +547,35 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
float3 _2329 = _391;
|
||||
_2329.x = pow(10.0, _2327);
|
||||
float _2330 = _2248.y;
|
||||
float _2334 = log((_2330 <= 0.0) ? _2255 : _2330) / _1065;
|
||||
float _2334 = log((_2330 <= 0.0) ? 6.103515625e-05 : _2330) * 0.4342944622039794921875;
|
||||
float _2401;
|
||||
if (_2334 <= _2260)
|
||||
if (_2334 <= (-5.2601776123046875))
|
||||
{
|
||||
_2401 = log(9.9999997473787516355514526367188e-05) / _1065;
|
||||
_2401 = -4.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
float _2341 = log(0.180000007152557373046875) / _1065;
|
||||
float _2398;
|
||||
if ((_2334 > _2260) && (_2334 < _2341))
|
||||
if ((_2334 > (-5.2601776123046875)) && (_2334 < (-0.744727432727813720703125)))
|
||||
{
|
||||
float _2381 = (3.0 * (_2334 - _2260)) / (_2341 - _2260);
|
||||
float _2381 = (_2334 - (-5.2601776123046875)) * 0.6643855571746826171875;
|
||||
int _2382 = int(_2381);
|
||||
float _2384 = _2381 - float(_2382);
|
||||
_2398 = dot(float3(_2384 * _2384, _2384, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_475[_2382], _475[_2382 + 1], _475[_2382 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
float _2349 = log(_2253) / _1065;
|
||||
float _2377;
|
||||
if ((_2334 >= _2341) && (_2334 < _2349))
|
||||
if ((_2334 >= (-0.744727432727813720703125)) && (_2334 < 4.673812389373779296875))
|
||||
{
|
||||
float _2360 = (3.0 * (_2334 - _2341)) / (_2349 - _2341);
|
||||
float _2360 = (_2334 - (-0.744727432727813720703125)) * 0.55365467071533203125;
|
||||
int _2361 = int(_2360);
|
||||
float _2363 = _2360 - float(_2361);
|
||||
_2377 = dot(float3(_2363 * _2363, _2363, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_476[_2361], _476[_2361 + 1], _476[_2361 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
_2377 = log(10000.0) / _1065;
|
||||
_2377 = 4.0;
|
||||
}
|
||||
_2398 = _2377;
|
||||
}
|
||||
@ -592,37 +584,35 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
float3 _2403 = _2329;
|
||||
_2403.y = pow(10.0, _2401);
|
||||
float _2404 = _2248.z;
|
||||
float _2408 = log((_2404 <= 0.0) ? _2255 : _2404) / _1065;
|
||||
float _2408 = log((_2404 <= 0.0) ? 6.103515625e-05 : _2404) * 0.4342944622039794921875;
|
||||
float _2475;
|
||||
if (_2408 <= _2260)
|
||||
if (_2408 <= (-5.2601776123046875))
|
||||
{
|
||||
_2475 = log(9.9999997473787516355514526367188e-05) / _1065;
|
||||
_2475 = -4.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
float _2415 = log(0.180000007152557373046875) / _1065;
|
||||
float _2472;
|
||||
if ((_2408 > _2260) && (_2408 < _2415))
|
||||
if ((_2408 > (-5.2601776123046875)) && (_2408 < (-0.744727432727813720703125)))
|
||||
{
|
||||
float _2455 = (3.0 * (_2408 - _2260)) / (_2415 - _2260);
|
||||
float _2455 = (_2408 - (-5.2601776123046875)) * 0.6643855571746826171875;
|
||||
int _2456 = int(_2455);
|
||||
float _2458 = _2455 - float(_2456);
|
||||
_2472 = dot(float3(_2458 * _2458, _2458, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_475[_2456], _475[_2456 + 1], _475[_2456 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
float _2423 = log(_2253) / _1065;
|
||||
float _2451;
|
||||
if ((_2408 >= _2415) && (_2408 < _2423))
|
||||
if ((_2408 >= (-0.744727432727813720703125)) && (_2408 < 4.673812389373779296875))
|
||||
{
|
||||
float _2434 = (3.0 * (_2408 - _2415)) / (_2423 - _2415);
|
||||
float _2434 = (_2408 - (-0.744727432727813720703125)) * 0.55365467071533203125;
|
||||
int _2435 = int(_2434);
|
||||
float _2437 = _2434 - float(_2435);
|
||||
_2451 = dot(float3(_2437 * _2437, _2437, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_476[_2435], _476[_2435 + 1], _476[_2435 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
_2451 = log(10000.0) / _1065;
|
||||
_2451 = 4.0;
|
||||
}
|
||||
_2472 = _2451;
|
||||
}
|
||||
@ -631,125 +621,21 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
float3 _2477 = _2403;
|
||||
_2477.z = pow(10.0, _2475);
|
||||
float3 _2479 = (_2477 * float3x3(float3(0.695452213287353515625, 0.140678703784942626953125, 0.16386906802654266357421875), float3(0.0447945632040500640869140625, 0.859671115875244140625, 0.095534317195415496826171875), float3(-0.0055258828215301036834716796875, 0.0040252101607620716094970703125, 1.00150072574615478515625))) * float3x3(float3(1.45143926143646240234375, -0.236510753631591796875, -0.214928567409515380859375), float3(-0.07655377686023712158203125, 1.1762297153472900390625, -0.0996759235858917236328125), float3(0.0083161480724811553955078125, -0.0060324496589601039886474609375, 0.99771630764007568359375));
|
||||
float _2481 = 0.17999999225139617919921875 * pow(2.0, -12.0);
|
||||
float _2485 = log((_2481 <= 0.0) ? _2255 : _2481) / _1065;
|
||||
float _2552;
|
||||
if (_2485 <= _2260)
|
||||
{
|
||||
_2552 = log(9.9999997473787516355514526367188e-05) / _1065;
|
||||
}
|
||||
else
|
||||
{
|
||||
float _2492 = log(0.180000007152557373046875) / _1065;
|
||||
float _2549;
|
||||
if ((_2485 > _2260) && (_2485 < _2492))
|
||||
{
|
||||
float _2532 = (3.0 * (_2485 - _2260)) / (_2492 - _2260);
|
||||
int _2533 = int(_2532);
|
||||
float _2535 = _2532 - float(_2533);
|
||||
_2549 = dot(float3(_2535 * _2535, _2535, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_475[_2533], _475[_2533 + 1], _475[_2533 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
float _2500 = log(_2253) / _1065;
|
||||
float _2528;
|
||||
if ((_2485 >= _2492) && (_2485 < _2500))
|
||||
{
|
||||
float _2511 = (3.0 * (_2485 - _2492)) / (_2500 - _2492);
|
||||
int _2512 = int(_2511);
|
||||
float _2514 = _2511 - float(_2512);
|
||||
_2528 = dot(float3(_2514 * _2514, _2514, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_476[_2512], _476[_2512 + 1], _476[_2512 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
_2528 = log(10000.0) / _1065;
|
||||
}
|
||||
_2549 = _2528;
|
||||
}
|
||||
_2552 = _2549;
|
||||
}
|
||||
float _2555 = log(0.180000007152557373046875) / _1065;
|
||||
float _2611;
|
||||
if (_2555 <= _2260)
|
||||
{
|
||||
_2611 = log(9.9999997473787516355514526367188e-05) / _1065;
|
||||
}
|
||||
else
|
||||
{
|
||||
float _2608;
|
||||
if ((_2555 > _2260) && (_2555 < _2555))
|
||||
{
|
||||
_2608 = (float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(-0.485249996185302734375, 1.84773242473602294921875, 1.84773242473602294921875)).z;
|
||||
}
|
||||
else
|
||||
{
|
||||
float _2568 = log(_2253) / _1065;
|
||||
float _2596;
|
||||
if ((_2555 >= _2555) && (_2555 < _2568))
|
||||
{
|
||||
float _2579 = (3.0 * (_2555 - _2555)) / (_2568 - _2555);
|
||||
int _2580 = int(_2579);
|
||||
float _2582 = _2579 - float(_2580);
|
||||
_2596 = dot(float3(_2582 * _2582, _2582, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_476[_2580], _476[_2580 + 1], _476[_2580 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
_2596 = log(10000.0) / _1065;
|
||||
}
|
||||
_2608 = _2596;
|
||||
}
|
||||
_2611 = _2608;
|
||||
}
|
||||
float _2612 = pow(10.0, _2611);
|
||||
float _2614 = 0.17999999225139617919921875 * pow(2.0, 10.0);
|
||||
float _2618 = log((_2614 <= 0.0) ? _2255 : _2614) / _1065;
|
||||
float _2683;
|
||||
if (_2618 <= _2260)
|
||||
{
|
||||
_2683 = log(9.9999997473787516355514526367188e-05) / _1065;
|
||||
}
|
||||
else
|
||||
{
|
||||
float _2680;
|
||||
if ((_2618 > _2260) && (_2618 < _2555))
|
||||
{
|
||||
float _2663 = (3.0 * (_2618 - _2260)) / (_2555 - _2260);
|
||||
int _2664 = int(_2663);
|
||||
float _2666 = _2663 - float(_2664);
|
||||
_2680 = dot(float3(_2666 * _2666, _2666, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_475[_2664], _475[_2664 + 1], _475[_2664 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
float _2631 = log(_2253) / _1065;
|
||||
float _2659;
|
||||
if ((_2618 >= _2555) && (_2618 < _2631))
|
||||
{
|
||||
float _2642 = (3.0 * (_2618 - _2555)) / (_2631 - _2555);
|
||||
int _2643 = int(_2642);
|
||||
float _2645 = _2642 - float(_2643);
|
||||
_2659 = dot(float3(_2645 * _2645, _2645, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_476[_2643], _476[_2643 + 1], _476[_2643 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
_2659 = log(10000.0) / _1065;
|
||||
}
|
||||
_2680 = _2659;
|
||||
}
|
||||
_2683 = _2680;
|
||||
}
|
||||
float _2684 = pow(10.0, _2683);
|
||||
float _2612 = pow(10.0, (float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_476[0], _476[1], _476[2])).z);
|
||||
float _2684 = pow(10.0, dot(float3(0.4444443881511688232421875, 0.66666662693023681640625, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_476[1], _476[2], _476[3])));
|
||||
float _2685 = _2479.x;
|
||||
float _2689 = log((_2685 <= 0.0) ? 9.9999997473787516355514526367188e-05 : _2685) / _1065;
|
||||
float _2690 = log(pow(10.0, _2552));
|
||||
float _2691 = _2690 / _1065;
|
||||
float _2688 = log((_2685 <= 0.0) ? 9.9999997473787516355514526367188e-05 : _2685);
|
||||
float _2689 = _2688 * 0.4342944622039794921875;
|
||||
float _2690 = log(pow(10.0, dot(float3(0.3600003719329833984375, 0.600000321865081787109375, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_475[0], _475[1], _475[2]))));
|
||||
float _2691 = _2690 * 0.4342944622039794921875;
|
||||
float _2768;
|
||||
if (_2689 <= _2691)
|
||||
{
|
||||
_2768 = (_2689 * 3.0) + ((log(9.9999997473787516355514526367188e-05) / _1065) - ((3.0 * _2690) / _1065));
|
||||
_2768 = (_2688 * 1.3028833866119384765625) + ((-4.0) - (_2690 * 1.3028833866119384765625));
|
||||
}
|
||||
else
|
||||
{
|
||||
float _2698 = log(_2612) / _1065;
|
||||
float _2698 = log(_2612) * 0.4342944622039794921875;
|
||||
float _2760;
|
||||
if ((_2689 > _2691) && (_2689 < _2698))
|
||||
{
|
||||
@ -761,7 +647,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
else
|
||||
{
|
||||
float _2705 = log(_2684);
|
||||
float _2706 = _2705 / _1065;
|
||||
float _2706 = _2705 * 0.4342944622039794921875;
|
||||
float _2739;
|
||||
if ((_2689 >= _2698) && (_2689 < _2706))
|
||||
{
|
||||
@ -772,7 +658,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
}
|
||||
else
|
||||
{
|
||||
_2739 = (_2689 * 0.0599999986588954925537109375) + ((log(1000.0) / _1065) - ((0.0599999986588954925537109375 * _2705) / _1065));
|
||||
_2739 = (_2688 * 0.026057668030261993408203125) + (3.0 - (_2705 * 0.026057668030261993408203125));
|
||||
}
|
||||
_2760 = _2739;
|
||||
}
|
||||
@ -781,15 +667,16 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
float3 _2770 = _391;
|
||||
_2770.x = pow(10.0, _2768);
|
||||
float _2771 = _2479.y;
|
||||
float _2775 = log((_2771 <= 0.0) ? 9.9999997473787516355514526367188e-05 : _2771) / _1065;
|
||||
float _2774 = log((_2771 <= 0.0) ? 9.9999997473787516355514526367188e-05 : _2771);
|
||||
float _2775 = _2774 * 0.4342944622039794921875;
|
||||
float _2852;
|
||||
if (_2775 <= _2691)
|
||||
{
|
||||
_2852 = (_2775 * 3.0) + ((log(9.9999997473787516355514526367188e-05) / _1065) - ((3.0 * _2690) / _1065));
|
||||
_2852 = (_2774 * 1.3028833866119384765625) + ((-4.0) - (_2690 * 1.3028833866119384765625));
|
||||
}
|
||||
else
|
||||
{
|
||||
float _2782 = log(_2612) / _1065;
|
||||
float _2782 = log(_2612) * 0.4342944622039794921875;
|
||||
float _2844;
|
||||
if ((_2775 > _2691) && (_2775 < _2782))
|
||||
{
|
||||
@ -801,7 +688,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
else
|
||||
{
|
||||
float _2789 = log(_2684);
|
||||
float _2790 = _2789 / _1065;
|
||||
float _2790 = _2789 * 0.4342944622039794921875;
|
||||
float _2823;
|
||||
if ((_2775 >= _2782) && (_2775 < _2790))
|
||||
{
|
||||
@ -812,7 +699,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
}
|
||||
else
|
||||
{
|
||||
_2823 = (_2775 * 0.0599999986588954925537109375) + ((log(1000.0) / _1065) - ((0.0599999986588954925537109375 * _2789) / _1065));
|
||||
_2823 = (_2774 * 0.026057668030261993408203125) + (3.0 - (_2789 * 0.026057668030261993408203125));
|
||||
}
|
||||
_2844 = _2823;
|
||||
}
|
||||
@ -821,15 +708,16 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
float3 _2854 = _2770;
|
||||
_2854.y = pow(10.0, _2852);
|
||||
float _2855 = _2479.z;
|
||||
float _2859 = log((_2855 <= 0.0) ? 9.9999997473787516355514526367188e-05 : _2855) / _1065;
|
||||
float _2858 = log((_2855 <= 0.0) ? 9.9999997473787516355514526367188e-05 : _2855);
|
||||
float _2859 = _2858 * 0.4342944622039794921875;
|
||||
float _2936;
|
||||
if (_2859 <= _2691)
|
||||
{
|
||||
_2936 = (_2859 * 3.0) + ((log(9.9999997473787516355514526367188e-05) / _1065) - ((3.0 * _2690) / _1065));
|
||||
_2936 = (_2858 * 1.3028833866119384765625) + ((-4.0) - (_2690 * 1.3028833866119384765625));
|
||||
}
|
||||
else
|
||||
{
|
||||
float _2866 = log(_2612) / _1065;
|
||||
float _2866 = log(_2612) * 0.4342944622039794921875;
|
||||
float _2928;
|
||||
if ((_2859 > _2691) && (_2859 < _2866))
|
||||
{
|
||||
@ -841,7 +729,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
else
|
||||
{
|
||||
float _2873 = log(_2684);
|
||||
float _2874 = _2873 / _1065;
|
||||
float _2874 = _2873 * 0.4342944622039794921875;
|
||||
float _2907;
|
||||
if ((_2859 >= _2866) && (_2859 < _2874))
|
||||
{
|
||||
@ -852,7 +740,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
}
|
||||
else
|
||||
{
|
||||
_2907 = (_2859 * 0.0599999986588954925537109375) + ((log(1000.0) / _1065) - ((0.0599999986588954925537109375 * _2873) / _1065));
|
||||
_2907 = (_2858 * 0.026057668030261993408203125) + (3.0 - (_2873 * 0.026057668030261993408203125));
|
||||
}
|
||||
_2928 = _2907;
|
||||
}
|
||||
@ -908,7 +796,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
}
|
||||
else
|
||||
{
|
||||
_1337 = 57.2957763671875 * atan2(sqrt(3.0) * (_1321 - _1323), ((2.0 * _1320) - _1321) - _1323);
|
||||
_1337 = 57.2957763671875 * atan2(1.73205077648162841796875 * (_1321 - _1323), ((2.0 * _1320) - _1321) - _1323);
|
||||
}
|
||||
float _1342;
|
||||
if (_1337 < 0.0)
|
||||
@ -984,40 +872,35 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
float3 _1408 = fast::clamp(fast::clamp(_1405, float3(0.0), float3(65535.0)) * float3x3(float3(1.45143926143646240234375, -0.236510753631591796875, -0.214928567409515380859375), float3(-0.07655377686023712158203125, 1.1762297153472900390625, -0.0996759235858917236328125), float3(0.0083161480724811553955078125, -0.0060324496589601039886474609375, 0.99771630764007568359375)), float3(0.0), float3(65535.0));
|
||||
float3 _1411 = mix(float3(dot(_1408, float3(0.272228717803955078125, 0.674081742763519287109375, 0.053689517080783843994140625))), _1408, float3(0.959999978542327880859375));
|
||||
float _1412 = _1411.x;
|
||||
float _1416 = 0.17999999225139617919921875 * exp2(18.0);
|
||||
float _1418 = exp2(-14.0);
|
||||
float _1421 = log((_1412 <= 0.0) ? _1418 : _1412) / _1065;
|
||||
float _1423 = log(0.17999999225139617919921875 * exp2(-15.0)) / _1065;
|
||||
float _1421 = log((_1412 <= 0.0) ? 6.103515625e-05 : _1412) * 0.4342944622039794921875;
|
||||
float _1490;
|
||||
if (_1421 <= _1423)
|
||||
if (_1421 <= (-5.2601776123046875))
|
||||
{
|
||||
_1490 = log(9.9999997473787516355514526367188e-05) / _1065;
|
||||
_1490 = -4.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
float _1430 = log(0.180000007152557373046875) / _1065;
|
||||
float _1487;
|
||||
if ((_1421 > _1423) && (_1421 < _1430))
|
||||
if ((_1421 > (-5.2601776123046875)) && (_1421 < (-0.744727432727813720703125)))
|
||||
{
|
||||
float _1470 = (3.0 * (_1421 - _1423)) / (_1430 - _1423);
|
||||
float _1470 = (_1421 - (-5.2601776123046875)) * 0.6643855571746826171875;
|
||||
int _1471 = int(_1470);
|
||||
float _1473 = _1470 - float(_1471);
|
||||
_1487 = dot(float3(_1473 * _1473, _1473, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_475[_1471], _475[_1471 + 1], _475[_1471 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
float _1438 = log(_1416) / _1065;
|
||||
float _1466;
|
||||
if ((_1421 >= _1430) && (_1421 < _1438))
|
||||
if ((_1421 >= (-0.744727432727813720703125)) && (_1421 < 4.673812389373779296875))
|
||||
{
|
||||
float _1449 = (3.0 * (_1421 - _1430)) / (_1438 - _1430);
|
||||
float _1449 = (_1421 - (-0.744727432727813720703125)) * 0.55365467071533203125;
|
||||
int _1450 = int(_1449);
|
||||
float _1452 = _1449 - float(_1450);
|
||||
_1466 = dot(float3(_1452 * _1452, _1452, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_476[_1450], _476[_1450 + 1], _476[_1450 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
_1466 = log(10000.0) / _1065;
|
||||
_1466 = 4.0;
|
||||
}
|
||||
_1487 = _1466;
|
||||
}
|
||||
@ -1026,37 +909,35 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
float3 _1492 = _391;
|
||||
_1492.x = pow(10.0, _1490);
|
||||
float _1493 = _1411.y;
|
||||
float _1497 = log((_1493 <= 0.0) ? _1418 : _1493) / _1065;
|
||||
float _1497 = log((_1493 <= 0.0) ? 6.103515625e-05 : _1493) * 0.4342944622039794921875;
|
||||
float _1564;
|
||||
if (_1497 <= _1423)
|
||||
if (_1497 <= (-5.2601776123046875))
|
||||
{
|
||||
_1564 = log(9.9999997473787516355514526367188e-05) / _1065;
|
||||
_1564 = -4.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
float _1504 = log(0.180000007152557373046875) / _1065;
|
||||
float _1561;
|
||||
if ((_1497 > _1423) && (_1497 < _1504))
|
||||
if ((_1497 > (-5.2601776123046875)) && (_1497 < (-0.744727432727813720703125)))
|
||||
{
|
||||
float _1544 = (3.0 * (_1497 - _1423)) / (_1504 - _1423);
|
||||
float _1544 = (_1497 - (-5.2601776123046875)) * 0.6643855571746826171875;
|
||||
int _1545 = int(_1544);
|
||||
float _1547 = _1544 - float(_1545);
|
||||
_1561 = dot(float3(_1547 * _1547, _1547, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_475[_1545], _475[_1545 + 1], _475[_1545 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
float _1512 = log(_1416) / _1065;
|
||||
float _1540;
|
||||
if ((_1497 >= _1504) && (_1497 < _1512))
|
||||
if ((_1497 >= (-0.744727432727813720703125)) && (_1497 < 4.673812389373779296875))
|
||||
{
|
||||
float _1523 = (3.0 * (_1497 - _1504)) / (_1512 - _1504);
|
||||
float _1523 = (_1497 - (-0.744727432727813720703125)) * 0.55365467071533203125;
|
||||
int _1524 = int(_1523);
|
||||
float _1526 = _1523 - float(_1524);
|
||||
_1540 = dot(float3(_1526 * _1526, _1526, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_476[_1524], _476[_1524 + 1], _476[_1524 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
_1540 = log(10000.0) / _1065;
|
||||
_1540 = 4.0;
|
||||
}
|
||||
_1561 = _1540;
|
||||
}
|
||||
@ -1065,37 +946,35 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
float3 _1566 = _1492;
|
||||
_1566.y = pow(10.0, _1564);
|
||||
float _1567 = _1411.z;
|
||||
float _1571 = log((_1567 <= 0.0) ? _1418 : _1567) / _1065;
|
||||
float _1571 = log((_1567 <= 0.0) ? 6.103515625e-05 : _1567) * 0.4342944622039794921875;
|
||||
float _1638;
|
||||
if (_1571 <= _1423)
|
||||
if (_1571 <= (-5.2601776123046875))
|
||||
{
|
||||
_1638 = log(9.9999997473787516355514526367188e-05) / _1065;
|
||||
_1638 = -4.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
float _1578 = log(0.180000007152557373046875) / _1065;
|
||||
float _1635;
|
||||
if ((_1571 > _1423) && (_1571 < _1578))
|
||||
if ((_1571 > (-5.2601776123046875)) && (_1571 < (-0.744727432727813720703125)))
|
||||
{
|
||||
float _1618 = (3.0 * (_1571 - _1423)) / (_1578 - _1423);
|
||||
float _1618 = (_1571 - (-5.2601776123046875)) * 0.6643855571746826171875;
|
||||
int _1619 = int(_1618);
|
||||
float _1621 = _1618 - float(_1619);
|
||||
_1635 = dot(float3(_1621 * _1621, _1621, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_475[_1619], _475[_1619 + 1], _475[_1619 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
float _1586 = log(_1416) / _1065;
|
||||
float _1614;
|
||||
if ((_1571 >= _1578) && (_1571 < _1586))
|
||||
if ((_1571 >= (-0.744727432727813720703125)) && (_1571 < 4.673812389373779296875))
|
||||
{
|
||||
float _1597 = (3.0 * (_1571 - _1578)) / (_1586 - _1578);
|
||||
float _1597 = (_1571 - (-0.744727432727813720703125)) * 0.55365467071533203125;
|
||||
int _1598 = int(_1597);
|
||||
float _1600 = _1597 - float(_1598);
|
||||
_1614 = dot(float3(_1600 * _1600, _1600, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_476[_1598], _476[_1598 + 1], _476[_1598 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
_1614 = log(10000.0) / _1065;
|
||||
_1614 = 4.0;
|
||||
}
|
||||
_1635 = _1614;
|
||||
}
|
||||
@ -1104,124 +983,20 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
float3 _1640 = _1566;
|
||||
_1640.z = pow(10.0, _1638);
|
||||
float3 _1642 = (_1640 * float3x3(float3(0.695452213287353515625, 0.140678703784942626953125, 0.16386906802654266357421875), float3(0.0447945632040500640869140625, 0.859671115875244140625, 0.095534317195415496826171875), float3(-0.0055258828215301036834716796875, 0.0040252101607620716094970703125, 1.00150072574615478515625))) * float3x3(float3(1.45143926143646240234375, -0.236510753631591796875, -0.214928567409515380859375), float3(-0.07655377686023712158203125, 1.1762297153472900390625, -0.0996759235858917236328125), float3(0.0083161480724811553955078125, -0.0060324496589601039886474609375, 0.99771630764007568359375));
|
||||
float _1644 = 0.17999999225139617919921875 * pow(2.0, -12.0);
|
||||
float _1648 = log((_1644 <= 0.0) ? _1418 : _1644) / _1065;
|
||||
float _1715;
|
||||
if (_1648 <= _1423)
|
||||
{
|
||||
_1715 = log(9.9999997473787516355514526367188e-05) / _1065;
|
||||
}
|
||||
else
|
||||
{
|
||||
float _1655 = log(0.180000007152557373046875) / _1065;
|
||||
float _1712;
|
||||
if ((_1648 > _1423) && (_1648 < _1655))
|
||||
{
|
||||
float _1695 = (3.0 * (_1648 - _1423)) / (_1655 - _1423);
|
||||
int _1696 = int(_1695);
|
||||
float _1698 = _1695 - float(_1696);
|
||||
_1712 = dot(float3(_1698 * _1698, _1698, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_475[_1696], _475[_1696 + 1], _475[_1696 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
float _1663 = log(_1416) / _1065;
|
||||
float _1691;
|
||||
if ((_1648 >= _1655) && (_1648 < _1663))
|
||||
{
|
||||
float _1674 = (3.0 * (_1648 - _1655)) / (_1663 - _1655);
|
||||
int _1675 = int(_1674);
|
||||
float _1677 = _1674 - float(_1675);
|
||||
_1691 = dot(float3(_1677 * _1677, _1677, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_476[_1675], _476[_1675 + 1], _476[_1675 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
_1691 = log(10000.0) / _1065;
|
||||
}
|
||||
_1712 = _1691;
|
||||
}
|
||||
_1715 = _1712;
|
||||
}
|
||||
float _1718 = log(0.180000007152557373046875) / _1065;
|
||||
float _1774;
|
||||
if (_1718 <= _1423)
|
||||
{
|
||||
_1774 = log(9.9999997473787516355514526367188e-05) / _1065;
|
||||
}
|
||||
else
|
||||
{
|
||||
float _1771;
|
||||
if ((_1718 > _1423) && (_1718 < _1718))
|
||||
{
|
||||
_1771 = (float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(-0.485249996185302734375, 1.84773242473602294921875, 1.84773242473602294921875)).z;
|
||||
}
|
||||
else
|
||||
{
|
||||
float _1731 = log(_1416) / _1065;
|
||||
float _1759;
|
||||
if ((_1718 >= _1718) && (_1718 < _1731))
|
||||
{
|
||||
float _1742 = (3.0 * (_1718 - _1718)) / (_1731 - _1718);
|
||||
int _1743 = int(_1742);
|
||||
float _1745 = _1742 - float(_1743);
|
||||
_1759 = dot(float3(_1745 * _1745, _1745, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_476[_1743], _476[_1743 + 1], _476[_1743 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
_1759 = log(10000.0) / _1065;
|
||||
}
|
||||
_1771 = _1759;
|
||||
}
|
||||
_1774 = _1771;
|
||||
}
|
||||
float _1775 = pow(10.0, _1774);
|
||||
float _1777 = 0.17999999225139617919921875 * pow(2.0, 11.0);
|
||||
float _1781 = log((_1777 <= 0.0) ? _1418 : _1777) / _1065;
|
||||
float _1846;
|
||||
if (_1781 <= _1423)
|
||||
{
|
||||
_1846 = log(9.9999997473787516355514526367188e-05) / _1065;
|
||||
}
|
||||
else
|
||||
{
|
||||
float _1843;
|
||||
if ((_1781 > _1423) && (_1781 < _1718))
|
||||
{
|
||||
float _1826 = (3.0 * (_1781 - _1423)) / (_1718 - _1423);
|
||||
int _1827 = int(_1826);
|
||||
float _1829 = _1826 - float(_1827);
|
||||
_1843 = dot(float3(_1829 * _1829, _1829, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_475[_1827], _475[_1827 + 1], _475[_1827 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
float _1794 = log(_1416) / _1065;
|
||||
float _1822;
|
||||
if ((_1781 >= _1718) && (_1781 < _1794))
|
||||
{
|
||||
float _1805 = (3.0 * (_1781 - _1718)) / (_1794 - _1718);
|
||||
int _1806 = int(_1805);
|
||||
float _1808 = _1805 - float(_1806);
|
||||
_1822 = dot(float3(_1808 * _1808, _1808, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_476[_1806], _476[_1806 + 1], _476[_1806 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
_1822 = log(10000.0) / _1065;
|
||||
}
|
||||
_1843 = _1822;
|
||||
}
|
||||
_1846 = _1843;
|
||||
}
|
||||
float _1847 = pow(10.0, _1846);
|
||||
float _1775 = pow(10.0, (float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_476[0], _476[1], _476[2])).z);
|
||||
float _1847 = pow(10.0, dot(float3(0.69444429874420166015625, 0.8333332538604736328125, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_476[1], _476[2], _476[3])));
|
||||
float _1848 = _1642.x;
|
||||
float _1852 = log((_1848 <= 0.0) ? 9.9999997473787516355514526367188e-05 : _1848) / _1065;
|
||||
float _1854 = log(pow(10.0, _1715)) / _1065;
|
||||
float _1851 = log((_1848 <= 0.0) ? 9.9999997473787516355514526367188e-05 : _1848);
|
||||
float _1852 = _1851 * 0.4342944622039794921875;
|
||||
float _1854 = log(pow(10.0, dot(float3(0.3600003719329833984375, 0.600000321865081787109375, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_475[0], _475[1], _475[2])))) * 0.4342944622039794921875;
|
||||
float _1926;
|
||||
if (_1852 <= _1854)
|
||||
{
|
||||
_1926 = log(0.004999999888241291046142578125) / _1065;
|
||||
_1926 = -2.3010299205780029296875;
|
||||
}
|
||||
else
|
||||
{
|
||||
float _1861 = log(_1775) / _1065;
|
||||
float _1861 = log(_1775) * 0.4342944622039794921875;
|
||||
float _1923;
|
||||
if ((_1852 > _1854) && (_1852 < _1861))
|
||||
{
|
||||
@ -1233,7 +1008,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
else
|
||||
{
|
||||
float _1868 = log(_1847);
|
||||
float _1869 = _1868 / _1065;
|
||||
float _1869 = _1868 * 0.4342944622039794921875;
|
||||
float _1902;
|
||||
if ((_1852 >= _1861) && (_1852 < _1869))
|
||||
{
|
||||
@ -1244,7 +1019,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
}
|
||||
else
|
||||
{
|
||||
_1902 = (_1852 * 0.119999997317790985107421875) + ((log(2000.0) / _1065) - ((0.119999997317790985107421875 * _1868) / _1065));
|
||||
_1902 = (_1851 * 0.05211533606052398681640625) + (3.3010299205780029296875 - (_1868 * 0.05211533606052398681640625));
|
||||
}
|
||||
_1923 = _1902;
|
||||
}
|
||||
@ -1253,15 +1028,16 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
float3 _1928 = _391;
|
||||
_1928.x = pow(10.0, _1926);
|
||||
float _1929 = _1642.y;
|
||||
float _1933 = log((_1929 <= 0.0) ? 9.9999997473787516355514526367188e-05 : _1929) / _1065;
|
||||
float _1932 = log((_1929 <= 0.0) ? 9.9999997473787516355514526367188e-05 : _1929);
|
||||
float _1933 = _1932 * 0.4342944622039794921875;
|
||||
float _2005;
|
||||
if (_1933 <= _1854)
|
||||
{
|
||||
_2005 = log(0.004999999888241291046142578125) / _1065;
|
||||
_2005 = -2.3010299205780029296875;
|
||||
}
|
||||
else
|
||||
{
|
||||
float _1940 = log(_1775) / _1065;
|
||||
float _1940 = log(_1775) * 0.4342944622039794921875;
|
||||
float _2002;
|
||||
if ((_1933 > _1854) && (_1933 < _1940))
|
||||
{
|
||||
@ -1273,7 +1049,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
else
|
||||
{
|
||||
float _1947 = log(_1847);
|
||||
float _1948 = _1947 / _1065;
|
||||
float _1948 = _1947 * 0.4342944622039794921875;
|
||||
float _1981;
|
||||
if ((_1933 >= _1940) && (_1933 < _1948))
|
||||
{
|
||||
@ -1284,7 +1060,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
}
|
||||
else
|
||||
{
|
||||
_1981 = (_1933 * 0.119999997317790985107421875) + ((log(2000.0) / _1065) - ((0.119999997317790985107421875 * _1947) / _1065));
|
||||
_1981 = (_1932 * 0.05211533606052398681640625) + (3.3010299205780029296875 - (_1947 * 0.05211533606052398681640625));
|
||||
}
|
||||
_2002 = _1981;
|
||||
}
|
||||
@ -1293,15 +1069,16 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
float3 _2007 = _1928;
|
||||
_2007.y = pow(10.0, _2005);
|
||||
float _2008 = _1642.z;
|
||||
float _2012 = log((_2008 <= 0.0) ? 9.9999997473787516355514526367188e-05 : _2008) / _1065;
|
||||
float _2011 = log((_2008 <= 0.0) ? 9.9999997473787516355514526367188e-05 : _2008);
|
||||
float _2012 = _2011 * 0.4342944622039794921875;
|
||||
float _2084;
|
||||
if (_2012 <= _1854)
|
||||
{
|
||||
_2084 = log(0.004999999888241291046142578125) / _1065;
|
||||
_2084 = -2.3010299205780029296875;
|
||||
}
|
||||
else
|
||||
{
|
||||
float _2019 = log(_1775) / _1065;
|
||||
float _2019 = log(_1775) * 0.4342944622039794921875;
|
||||
float _2081;
|
||||
if ((_2012 > _1854) && (_2012 < _2019))
|
||||
{
|
||||
@ -1313,7 +1090,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
else
|
||||
{
|
||||
float _2026 = log(_1847);
|
||||
float _2027 = _2026 / _1065;
|
||||
float _2027 = _2026 * 0.4342944622039794921875;
|
||||
float _2060;
|
||||
if ((_2012 >= _2019) && (_2012 < _2027))
|
||||
{
|
||||
@ -1324,7 +1101,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
}
|
||||
else
|
||||
{
|
||||
_2060 = (_2012 * 0.119999997317790985107421875) + ((log(2000.0) / _1065) - ((0.119999997317790985107421875 * _2026) / _1065));
|
||||
_2060 = (_2011 * 0.05211533606052398681640625) + (3.3010299205780029296875 - (_2026 * 0.05211533606052398681640625));
|
||||
}
|
||||
_2081 = _2060;
|
||||
}
|
||||
|
@ -102,7 +102,7 @@ constant spvUnsafeArray<float, 10> _506 = spvUnsafeArray<float, 10>({ -2.3010299
|
||||
constant spvUnsafeArray<float, 10> _507 = spvUnsafeArray<float, 10>({ 0.801995217800140380859375, 1.19800484180450439453125, 1.5943000316619873046875, 1.99730002880096435546875, 2.3782999515533447265625, 2.7683999538421630859375, 3.0515000820159912109375, 3.2746293544769287109375, 3.32743072509765625, 3.32743072509765625 });
|
||||
|
||||
constant float3 _523 = {};
|
||||
constant float3 _3124 = {};
|
||||
constant float3 _3219 = {};
|
||||
|
||||
struct main0_out
|
||||
{
|
||||
@ -170,7 +170,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
}
|
||||
else
|
||||
{
|
||||
_625 = (exp2((_603 - float3(0.434017598628997802734375)) * float3(14.0)) * float3(0.180000007152557373046875)) - (exp2(float3(-6.0762462615966796875)) * float3(0.180000007152557373046875));
|
||||
_625 = (exp2((_603 - float3(0.434017598628997802734375)) * float3(14.0)) * float3(0.180000007152557373046875)) - float3(0.00266771926544606685638427734375);
|
||||
}
|
||||
float _628 = _Globals.WhiteTemp * 1.00055634975433349609375;
|
||||
float _642 = (_628 <= 7000.0) ? (0.24406300485134124755859375 + ((99.1100006103515625 + ((2967800.0 - (4604438528.0 / _Globals.WhiteTemp)) / _628)) / _628)) : (0.23703999817371368408203125 + ((247.4799957275390625 + ((1901800.0 - (2005284352.0 / _Globals.WhiteTemp)) / _628)) / _628));
|
||||
@ -274,7 +274,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
}
|
||||
else
|
||||
{
|
||||
_1016 = 57.2957763671875 * atan2(sqrt(3.0) * (_1000 - _1002), ((2.0 * _999) - _1000) - _1002);
|
||||
_1016 = 57.2957763671875 * atan2(1.73205077648162841796875 * (_1000 - _1002), ((2.0 * _999) - _1000) - _1002);
|
||||
}
|
||||
float _1021;
|
||||
if (_1016 < 0.0)
|
||||
@ -305,17 +305,16 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
float _1082;
|
||||
if (_Globals.FilmToe > 0.800000011920928955078125)
|
||||
{
|
||||
_1082 = ((0.819999992847442626953125 - _Globals.FilmToe) / _Globals.FilmSlope) + (log(0.180000007152557373046875) / log(10.0));
|
||||
_1082 = ((0.819999992847442626953125 - _Globals.FilmToe) / _Globals.FilmSlope) + (-0.744727432727813720703125);
|
||||
}
|
||||
else
|
||||
{
|
||||
float _1061 = (0.180000007152557373046875 + _Globals.FilmBlackClip) / _1049;
|
||||
_1082 = (log(0.180000007152557373046875) / log(10.0)) - ((0.5 * log(_1061 / (2.0 - _1061))) * (_1049 / _Globals.FilmSlope));
|
||||
_1082 = (-0.744727432727813720703125) - ((0.5 * log(_1061 / (2.0 - _1061))) * (_1049 / _Globals.FilmSlope));
|
||||
}
|
||||
float _1087 = ((1.0 - _Globals.FilmToe) / _Globals.FilmSlope) - _1082;
|
||||
float _1089 = (_Globals.FilmShoulder / _Globals.FilmSlope) - _1087;
|
||||
float _1091 = log(10.0);
|
||||
float3 _1093 = log(mix(float3(dot(_1040, float3(0.272228717803955078125, 0.674081742763519287109375, 0.053689517080783843994140625))), _1040, float3(0.959999978542327880859375))) / float3(_1091);
|
||||
float3 _1093 = log(mix(float3(dot(_1040, float3(0.272228717803955078125, 0.674081742763519287109375, 0.053689517080783843994140625))), _1040, float3(0.959999978542327880859375))) * float3(0.4342944622039794921875);
|
||||
float3 _1097 = float3(_Globals.FilmSlope) * (_1093 + float3(_1087));
|
||||
float3 _1105 = float3(_1082);
|
||||
float3 _1106 = _1093 - _1105;
|
||||
@ -327,7 +326,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
float3 _1215;
|
||||
if (_Globals.ColorShadow_Tint2.w == 0.0)
|
||||
{
|
||||
float3 _1157 = _3124;
|
||||
float3 _1157 = _3219;
|
||||
_1157.x = dot(_932, _Globals.ColorMatrixR_ColorCurveCd1.xyz);
|
||||
float3 _1162 = _1157;
|
||||
_1162.y = dot(_932, _Globals.ColorMatrixG_ColorCurveCd3Cm3.xyz);
|
||||
@ -484,7 +483,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
}
|
||||
else
|
||||
{
|
||||
_2278 = 57.2957763671875 * atan2(sqrt(3.0) * (_2262 - _2264), ((2.0 * _2261) - _2262) - _2264);
|
||||
_2278 = 57.2957763671875 * atan2(1.73205077648162841796875 * (_2262 - _2264), ((2.0 * _2261) - _2262) - _2264);
|
||||
}
|
||||
float _2283;
|
||||
if (_2278 < 0.0)
|
||||
@ -560,40 +559,35 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
float3 _2349 = fast::clamp(fast::clamp(_2346, float3(0.0), float3(65535.0)) * float3x3(float3(1.45143926143646240234375, -0.236510753631591796875, -0.214928567409515380859375), float3(-0.07655377686023712158203125, 1.1762297153472900390625, -0.0996759235858917236328125), float3(0.0083161480724811553955078125, -0.0060324496589601039886474609375, 0.99771630764007568359375)), float3(0.0), float3(65535.0));
|
||||
float3 _2352 = mix(float3(dot(_2349, float3(0.272228717803955078125, 0.674081742763519287109375, 0.053689517080783843994140625))), _2349, float3(0.959999978542327880859375));
|
||||
float _2353 = _2352.x;
|
||||
float _2357 = 0.17999999225139617919921875 * exp2(18.0);
|
||||
float _2359 = exp2(-14.0);
|
||||
float _2362 = log((_2353 <= 0.0) ? _2359 : _2353) / _1091;
|
||||
float _2364 = log(0.17999999225139617919921875 * exp2(-15.0)) / _1091;
|
||||
float _2362 = log((_2353 <= 0.0) ? 6.103515625e-05 : _2353) * 0.4342944622039794921875;
|
||||
float _2431;
|
||||
if (_2362 <= _2364)
|
||||
if (_2362 <= (-5.2601776123046875))
|
||||
{
|
||||
_2431 = log(9.9999997473787516355514526367188e-05) / _1091;
|
||||
_2431 = -4.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
float _2371 = log(0.180000007152557373046875) / _1091;
|
||||
float _2428;
|
||||
if ((_2362 > _2364) && (_2362 < _2371))
|
||||
if ((_2362 > (-5.2601776123046875)) && (_2362 < (-0.744727432727813720703125)))
|
||||
{
|
||||
float _2411 = (3.0 * (_2362 - _2364)) / (_2371 - _2364);
|
||||
float _2411 = (_2362 - (-5.2601776123046875)) * 0.6643855571746826171875;
|
||||
int _2412 = int(_2411);
|
||||
float _2414 = _2411 - float(_2412);
|
||||
_2428 = dot(float3(_2414 * _2414, _2414, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_499[_2412], _499[_2412 + 1], _499[_2412 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
float _2379 = log(_2357) / _1091;
|
||||
float _2407;
|
||||
if ((_2362 >= _2371) && (_2362 < _2379))
|
||||
if ((_2362 >= (-0.744727432727813720703125)) && (_2362 < 4.673812389373779296875))
|
||||
{
|
||||
float _2390 = (3.0 * (_2362 - _2371)) / (_2379 - _2371);
|
||||
float _2390 = (_2362 - (-0.744727432727813720703125)) * 0.55365467071533203125;
|
||||
int _2391 = int(_2390);
|
||||
float _2393 = _2390 - float(_2391);
|
||||
_2407 = dot(float3(_2393 * _2393, _2393, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_500[_2391], _500[_2391 + 1], _500[_2391 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
_2407 = log(10000.0) / _1091;
|
||||
_2407 = 4.0;
|
||||
}
|
||||
_2428 = _2407;
|
||||
}
|
||||
@ -602,37 +596,35 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
float3 _2433 = _523;
|
||||
_2433.x = pow(10.0, _2431);
|
||||
float _2434 = _2352.y;
|
||||
float _2438 = log((_2434 <= 0.0) ? _2359 : _2434) / _1091;
|
||||
float _2438 = log((_2434 <= 0.0) ? 6.103515625e-05 : _2434) * 0.4342944622039794921875;
|
||||
float _2505;
|
||||
if (_2438 <= _2364)
|
||||
if (_2438 <= (-5.2601776123046875))
|
||||
{
|
||||
_2505 = log(9.9999997473787516355514526367188e-05) / _1091;
|
||||
_2505 = -4.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
float _2445 = log(0.180000007152557373046875) / _1091;
|
||||
float _2502;
|
||||
if ((_2438 > _2364) && (_2438 < _2445))
|
||||
if ((_2438 > (-5.2601776123046875)) && (_2438 < (-0.744727432727813720703125)))
|
||||
{
|
||||
float _2485 = (3.0 * (_2438 - _2364)) / (_2445 - _2364);
|
||||
float _2485 = (_2438 - (-5.2601776123046875)) * 0.6643855571746826171875;
|
||||
int _2486 = int(_2485);
|
||||
float _2488 = _2485 - float(_2486);
|
||||
_2502 = dot(float3(_2488 * _2488, _2488, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_499[_2486], _499[_2486 + 1], _499[_2486 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
float _2453 = log(_2357) / _1091;
|
||||
float _2481;
|
||||
if ((_2438 >= _2445) && (_2438 < _2453))
|
||||
if ((_2438 >= (-0.744727432727813720703125)) && (_2438 < 4.673812389373779296875))
|
||||
{
|
||||
float _2464 = (3.0 * (_2438 - _2445)) / (_2453 - _2445);
|
||||
float _2464 = (_2438 - (-0.744727432727813720703125)) * 0.55365467071533203125;
|
||||
int _2465 = int(_2464);
|
||||
float _2467 = _2464 - float(_2465);
|
||||
_2481 = dot(float3(_2467 * _2467, _2467, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_500[_2465], _500[_2465 + 1], _500[_2465 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
_2481 = log(10000.0) / _1091;
|
||||
_2481 = 4.0;
|
||||
}
|
||||
_2502 = _2481;
|
||||
}
|
||||
@ -641,37 +633,35 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
float3 _2507 = _2433;
|
||||
_2507.y = pow(10.0, _2505);
|
||||
float _2508 = _2352.z;
|
||||
float _2512 = log((_2508 <= 0.0) ? _2359 : _2508) / _1091;
|
||||
float _2512 = log((_2508 <= 0.0) ? 6.103515625e-05 : _2508) * 0.4342944622039794921875;
|
||||
float _2579;
|
||||
if (_2512 <= _2364)
|
||||
if (_2512 <= (-5.2601776123046875))
|
||||
{
|
||||
_2579 = log(9.9999997473787516355514526367188e-05) / _1091;
|
||||
_2579 = -4.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
float _2519 = log(0.180000007152557373046875) / _1091;
|
||||
float _2576;
|
||||
if ((_2512 > _2364) && (_2512 < _2519))
|
||||
if ((_2512 > (-5.2601776123046875)) && (_2512 < (-0.744727432727813720703125)))
|
||||
{
|
||||
float _2559 = (3.0 * (_2512 - _2364)) / (_2519 - _2364);
|
||||
float _2559 = (_2512 - (-5.2601776123046875)) * 0.6643855571746826171875;
|
||||
int _2560 = int(_2559);
|
||||
float _2562 = _2559 - float(_2560);
|
||||
_2576 = dot(float3(_2562 * _2562, _2562, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_499[_2560], _499[_2560 + 1], _499[_2560 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
float _2527 = log(_2357) / _1091;
|
||||
float _2555;
|
||||
if ((_2512 >= _2519) && (_2512 < _2527))
|
||||
if ((_2512 >= (-0.744727432727813720703125)) && (_2512 < 4.673812389373779296875))
|
||||
{
|
||||
float _2538 = (3.0 * (_2512 - _2519)) / (_2527 - _2519);
|
||||
float _2538 = (_2512 - (-0.744727432727813720703125)) * 0.55365467071533203125;
|
||||
int _2539 = int(_2538);
|
||||
float _2541 = _2538 - float(_2539);
|
||||
_2555 = dot(float3(_2541 * _2541, _2541, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_500[_2539], _500[_2539 + 1], _500[_2539 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
_2555 = log(10000.0) / _1091;
|
||||
_2555 = 4.0;
|
||||
}
|
||||
_2576 = _2555;
|
||||
}
|
||||
@ -680,125 +670,21 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
float3 _2581 = _2507;
|
||||
_2581.z = pow(10.0, _2579);
|
||||
float3 _2583 = (_2581 * float3x3(float3(0.695452213287353515625, 0.140678703784942626953125, 0.16386906802654266357421875), float3(0.0447945632040500640869140625, 0.859671115875244140625, 0.095534317195415496826171875), float3(-0.0055258828215301036834716796875, 0.0040252101607620716094970703125, 1.00150072574615478515625))) * float3x3(float3(1.45143926143646240234375, -0.236510753631591796875, -0.214928567409515380859375), float3(-0.07655377686023712158203125, 1.1762297153472900390625, -0.0996759235858917236328125), float3(0.0083161480724811553955078125, -0.0060324496589601039886474609375, 0.99771630764007568359375));
|
||||
float _2585 = 0.17999999225139617919921875 * pow(2.0, -12.0);
|
||||
float _2589 = log((_2585 <= 0.0) ? _2359 : _2585) / _1091;
|
||||
float _2656;
|
||||
if (_2589 <= _2364)
|
||||
{
|
||||
_2656 = log(9.9999997473787516355514526367188e-05) / _1091;
|
||||
}
|
||||
else
|
||||
{
|
||||
float _2596 = log(0.180000007152557373046875) / _1091;
|
||||
float _2653;
|
||||
if ((_2589 > _2364) && (_2589 < _2596))
|
||||
{
|
||||
float _2636 = (3.0 * (_2589 - _2364)) / (_2596 - _2364);
|
||||
int _2637 = int(_2636);
|
||||
float _2639 = _2636 - float(_2637);
|
||||
_2653 = dot(float3(_2639 * _2639, _2639, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_499[_2637], _499[_2637 + 1], _499[_2637 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
float _2604 = log(_2357) / _1091;
|
||||
float _2632;
|
||||
if ((_2589 >= _2596) && (_2589 < _2604))
|
||||
{
|
||||
float _2615 = (3.0 * (_2589 - _2596)) / (_2604 - _2596);
|
||||
int _2616 = int(_2615);
|
||||
float _2618 = _2615 - float(_2616);
|
||||
_2632 = dot(float3(_2618 * _2618, _2618, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_500[_2616], _500[_2616 + 1], _500[_2616 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
_2632 = log(10000.0) / _1091;
|
||||
}
|
||||
_2653 = _2632;
|
||||
}
|
||||
_2656 = _2653;
|
||||
}
|
||||
float _2659 = log(0.180000007152557373046875) / _1091;
|
||||
float _2713;
|
||||
if (_2659 <= _2364)
|
||||
{
|
||||
_2713 = log(9.9999997473787516355514526367188e-05) / _1091;
|
||||
}
|
||||
else
|
||||
{
|
||||
float _2710;
|
||||
if ((_2659 > _2364) && (_2659 < _2659))
|
||||
{
|
||||
_2710 = (float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(-0.485249996185302734375, 1.84773242473602294921875, 1.84773242473602294921875)).z;
|
||||
}
|
||||
else
|
||||
{
|
||||
float _2672 = log(_2357) / _1091;
|
||||
float _2700;
|
||||
if ((_2659 >= _2659) && (_2659 < _2672))
|
||||
{
|
||||
float _2683 = (3.0 * (_2659 - _2659)) / (_2672 - _2659);
|
||||
int _2684 = int(_2683);
|
||||
float _2686 = _2683 - float(_2684);
|
||||
_2700 = dot(float3(_2686 * _2686, _2686, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_500[_2684], _500[_2684 + 1], _500[_2684 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
_2700 = log(10000.0) / _1091;
|
||||
}
|
||||
_2710 = _2700;
|
||||
}
|
||||
_2713 = _2710;
|
||||
}
|
||||
float _2714 = pow(10.0, _2713);
|
||||
float _2716 = 0.17999999225139617919921875 * pow(2.0, 10.0);
|
||||
float _2720 = log((_2716 <= 0.0) ? _2359 : _2716) / _1091;
|
||||
float _2785;
|
||||
if (_2720 <= _2364)
|
||||
{
|
||||
_2785 = log(9.9999997473787516355514526367188e-05) / _1091;
|
||||
}
|
||||
else
|
||||
{
|
||||
float _2782;
|
||||
if ((_2720 > _2364) && (_2720 < _2659))
|
||||
{
|
||||
float _2765 = (3.0 * (_2720 - _2364)) / (_2659 - _2364);
|
||||
int _2766 = int(_2765);
|
||||
float _2768 = _2765 - float(_2766);
|
||||
_2782 = dot(float3(_2768 * _2768, _2768, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_499[_2766], _499[_2766 + 1], _499[_2766 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
float _2733 = log(_2357) / _1091;
|
||||
float _2761;
|
||||
if ((_2720 >= _2659) && (_2720 < _2733))
|
||||
{
|
||||
float _2744 = (3.0 * (_2720 - _2659)) / (_2733 - _2659);
|
||||
int _2745 = int(_2744);
|
||||
float _2747 = _2744 - float(_2745);
|
||||
_2761 = dot(float3(_2747 * _2747, _2747, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_500[_2745], _500[_2745 + 1], _500[_2745 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
_2761 = log(10000.0) / _1091;
|
||||
}
|
||||
_2782 = _2761;
|
||||
}
|
||||
_2785 = _2782;
|
||||
}
|
||||
float _2786 = pow(10.0, _2785);
|
||||
float _2714 = pow(10.0, (float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_500[0], _500[1], _500[2])).z);
|
||||
float _2786 = pow(10.0, dot(float3(0.4444443881511688232421875, 0.66666662693023681640625, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_500[1], _500[2], _500[3])));
|
||||
float _2787 = _2583.x;
|
||||
float _2791 = log((_2787 <= 0.0) ? 9.9999997473787516355514526367188e-05 : _2787) / _1091;
|
||||
float _2792 = log(pow(10.0, _2656));
|
||||
float _2793 = _2792 / _1091;
|
||||
float _2790 = log((_2787 <= 0.0) ? 9.9999997473787516355514526367188e-05 : _2787);
|
||||
float _2791 = _2790 * 0.4342944622039794921875;
|
||||
float _2792 = log(pow(10.0, dot(float3(0.3600003719329833984375, 0.600000321865081787109375, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_499[0], _499[1], _499[2]))));
|
||||
float _2793 = _2792 * 0.4342944622039794921875;
|
||||
float _2870;
|
||||
if (_2791 <= _2793)
|
||||
{
|
||||
_2870 = (_2791 * 3.0) + ((log(9.9999997473787516355514526367188e-05) / _1091) - ((3.0 * _2792) / _1091));
|
||||
_2870 = (_2790 * 1.3028833866119384765625) + ((-4.0) - (_2792 * 1.3028833866119384765625));
|
||||
}
|
||||
else
|
||||
{
|
||||
float _2800 = log(_2714) / _1091;
|
||||
float _2800 = log(_2714) * 0.4342944622039794921875;
|
||||
float _2862;
|
||||
if ((_2791 > _2793) && (_2791 < _2800))
|
||||
{
|
||||
@ -810,7 +696,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
else
|
||||
{
|
||||
float _2807 = log(_2786);
|
||||
float _2808 = _2807 / _1091;
|
||||
float _2808 = _2807 * 0.4342944622039794921875;
|
||||
float _2841;
|
||||
if ((_2791 >= _2800) && (_2791 < _2808))
|
||||
{
|
||||
@ -821,7 +707,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
}
|
||||
else
|
||||
{
|
||||
_2841 = (_2791 * 0.0599999986588954925537109375) + ((log(1000.0) / _1091) - ((0.0599999986588954925537109375 * _2807) / _1091));
|
||||
_2841 = (_2790 * 0.026057668030261993408203125) + (3.0 - (_2807 * 0.026057668030261993408203125));
|
||||
}
|
||||
_2862 = _2841;
|
||||
}
|
||||
@ -830,15 +716,16 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
float3 _2872 = _523;
|
||||
_2872.x = pow(10.0, _2870);
|
||||
float _2873 = _2583.y;
|
||||
float _2877 = log((_2873 <= 0.0) ? 9.9999997473787516355514526367188e-05 : _2873) / _1091;
|
||||
float _2876 = log((_2873 <= 0.0) ? 9.9999997473787516355514526367188e-05 : _2873);
|
||||
float _2877 = _2876 * 0.4342944622039794921875;
|
||||
float _2954;
|
||||
if (_2877 <= _2793)
|
||||
{
|
||||
_2954 = (_2877 * 3.0) + ((log(9.9999997473787516355514526367188e-05) / _1091) - ((3.0 * _2792) / _1091));
|
||||
_2954 = (_2876 * 1.3028833866119384765625) + ((-4.0) - (_2792 * 1.3028833866119384765625));
|
||||
}
|
||||
else
|
||||
{
|
||||
float _2884 = log(_2714) / _1091;
|
||||
float _2884 = log(_2714) * 0.4342944622039794921875;
|
||||
float _2946;
|
||||
if ((_2877 > _2793) && (_2877 < _2884))
|
||||
{
|
||||
@ -850,7 +737,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
else
|
||||
{
|
||||
float _2891 = log(_2786);
|
||||
float _2892 = _2891 / _1091;
|
||||
float _2892 = _2891 * 0.4342944622039794921875;
|
||||
float _2925;
|
||||
if ((_2877 >= _2884) && (_2877 < _2892))
|
||||
{
|
||||
@ -861,7 +748,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
}
|
||||
else
|
||||
{
|
||||
_2925 = (_2877 * 0.0599999986588954925537109375) + ((log(1000.0) / _1091) - ((0.0599999986588954925537109375 * _2891) / _1091));
|
||||
_2925 = (_2876 * 0.026057668030261993408203125) + (3.0 - (_2891 * 0.026057668030261993408203125));
|
||||
}
|
||||
_2946 = _2925;
|
||||
}
|
||||
@ -870,15 +757,16 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
float3 _2956 = _2872;
|
||||
_2956.y = pow(10.0, _2954);
|
||||
float _2957 = _2583.z;
|
||||
float _2961 = log((_2957 <= 0.0) ? 9.9999997473787516355514526367188e-05 : _2957) / _1091;
|
||||
float _2960 = log((_2957 <= 0.0) ? 9.9999997473787516355514526367188e-05 : _2957);
|
||||
float _2961 = _2960 * 0.4342944622039794921875;
|
||||
float _3038;
|
||||
if (_2961 <= _2793)
|
||||
{
|
||||
_3038 = (_2961 * 3.0) + ((log(9.9999997473787516355514526367188e-05) / _1091) - ((3.0 * _2792) / _1091));
|
||||
_3038 = (_2960 * 1.3028833866119384765625) + ((-4.0) - (_2792 * 1.3028833866119384765625));
|
||||
}
|
||||
else
|
||||
{
|
||||
float _2968 = log(_2714) / _1091;
|
||||
float _2968 = log(_2714) * 0.4342944622039794921875;
|
||||
float _3030;
|
||||
if ((_2961 > _2793) && (_2961 < _2968))
|
||||
{
|
||||
@ -890,7 +778,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
else
|
||||
{
|
||||
float _2975 = log(_2786);
|
||||
float _2976 = _2975 / _1091;
|
||||
float _2976 = _2975 * 0.4342944622039794921875;
|
||||
float _3009;
|
||||
if ((_2961 >= _2968) && (_2961 < _2976))
|
||||
{
|
||||
@ -901,7 +789,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
}
|
||||
else
|
||||
{
|
||||
_3009 = (_2961 * 0.0599999986588954925537109375) + ((log(1000.0) / _1091) - ((0.0599999986588954925537109375 * _2975) / _1091));
|
||||
_3009 = (_2960 * 0.026057668030261993408203125) + (3.0 - (_2975 * 0.026057668030261993408203125));
|
||||
}
|
||||
_3030 = _3009;
|
||||
}
|
||||
@ -957,7 +845,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
}
|
||||
else
|
||||
{
|
||||
_1443 = 57.2957763671875 * atan2(sqrt(3.0) * (_1427 - _1429), ((2.0 * _1426) - _1427) - _1429);
|
||||
_1443 = 57.2957763671875 * atan2(1.73205077648162841796875 * (_1427 - _1429), ((2.0 * _1426) - _1427) - _1429);
|
||||
}
|
||||
float _1448;
|
||||
if (_1443 < 0.0)
|
||||
@ -1033,40 +921,35 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
float3 _1514 = fast::clamp(fast::clamp(_1511, float3(0.0), float3(65535.0)) * float3x3(float3(1.45143926143646240234375, -0.236510753631591796875, -0.214928567409515380859375), float3(-0.07655377686023712158203125, 1.1762297153472900390625, -0.0996759235858917236328125), float3(0.0083161480724811553955078125, -0.0060324496589601039886474609375, 0.99771630764007568359375)), float3(0.0), float3(65535.0));
|
||||
float3 _1517 = mix(float3(dot(_1514, float3(0.272228717803955078125, 0.674081742763519287109375, 0.053689517080783843994140625))), _1514, float3(0.959999978542327880859375));
|
||||
float _1518 = _1517.x;
|
||||
float _1522 = 0.17999999225139617919921875 * exp2(18.0);
|
||||
float _1524 = exp2(-14.0);
|
||||
float _1527 = log((_1518 <= 0.0) ? _1524 : _1518) / _1091;
|
||||
float _1529 = log(0.17999999225139617919921875 * exp2(-15.0)) / _1091;
|
||||
float _1527 = log((_1518 <= 0.0) ? 6.103515625e-05 : _1518) * 0.4342944622039794921875;
|
||||
float _1596;
|
||||
if (_1527 <= _1529)
|
||||
if (_1527 <= (-5.2601776123046875))
|
||||
{
|
||||
_1596 = log(9.9999997473787516355514526367188e-05) / _1091;
|
||||
_1596 = -4.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
float _1536 = log(0.180000007152557373046875) / _1091;
|
||||
float _1593;
|
||||
if ((_1527 > _1529) && (_1527 < _1536))
|
||||
if ((_1527 > (-5.2601776123046875)) && (_1527 < (-0.744727432727813720703125)))
|
||||
{
|
||||
float _1576 = (3.0 * (_1527 - _1529)) / (_1536 - _1529);
|
||||
float _1576 = (_1527 - (-5.2601776123046875)) * 0.6643855571746826171875;
|
||||
int _1577 = int(_1576);
|
||||
float _1579 = _1576 - float(_1577);
|
||||
_1593 = dot(float3(_1579 * _1579, _1579, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_499[_1577], _499[_1577 + 1], _499[_1577 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
float _1544 = log(_1522) / _1091;
|
||||
float _1572;
|
||||
if ((_1527 >= _1536) && (_1527 < _1544))
|
||||
if ((_1527 >= (-0.744727432727813720703125)) && (_1527 < 4.673812389373779296875))
|
||||
{
|
||||
float _1555 = (3.0 * (_1527 - _1536)) / (_1544 - _1536);
|
||||
float _1555 = (_1527 - (-0.744727432727813720703125)) * 0.55365467071533203125;
|
||||
int _1556 = int(_1555);
|
||||
float _1558 = _1555 - float(_1556);
|
||||
_1572 = dot(float3(_1558 * _1558, _1558, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_500[_1556], _500[_1556 + 1], _500[_1556 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
_1572 = log(10000.0) / _1091;
|
||||
_1572 = 4.0;
|
||||
}
|
||||
_1593 = _1572;
|
||||
}
|
||||
@ -1075,37 +958,35 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
float3 _1598 = _523;
|
||||
_1598.x = pow(10.0, _1596);
|
||||
float _1599 = _1517.y;
|
||||
float _1603 = log((_1599 <= 0.0) ? _1524 : _1599) / _1091;
|
||||
float _1603 = log((_1599 <= 0.0) ? 6.103515625e-05 : _1599) * 0.4342944622039794921875;
|
||||
float _1670;
|
||||
if (_1603 <= _1529)
|
||||
if (_1603 <= (-5.2601776123046875))
|
||||
{
|
||||
_1670 = log(9.9999997473787516355514526367188e-05) / _1091;
|
||||
_1670 = -4.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
float _1610 = log(0.180000007152557373046875) / _1091;
|
||||
float _1667;
|
||||
if ((_1603 > _1529) && (_1603 < _1610))
|
||||
if ((_1603 > (-5.2601776123046875)) && (_1603 < (-0.744727432727813720703125)))
|
||||
{
|
||||
float _1650 = (3.0 * (_1603 - _1529)) / (_1610 - _1529);
|
||||
float _1650 = (_1603 - (-5.2601776123046875)) * 0.6643855571746826171875;
|
||||
int _1651 = int(_1650);
|
||||
float _1653 = _1650 - float(_1651);
|
||||
_1667 = dot(float3(_1653 * _1653, _1653, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_499[_1651], _499[_1651 + 1], _499[_1651 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
float _1618 = log(_1522) / _1091;
|
||||
float _1646;
|
||||
if ((_1603 >= _1610) && (_1603 < _1618))
|
||||
if ((_1603 >= (-0.744727432727813720703125)) && (_1603 < 4.673812389373779296875))
|
||||
{
|
||||
float _1629 = (3.0 * (_1603 - _1610)) / (_1618 - _1610);
|
||||
float _1629 = (_1603 - (-0.744727432727813720703125)) * 0.55365467071533203125;
|
||||
int _1630 = int(_1629);
|
||||
float _1632 = _1629 - float(_1630);
|
||||
_1646 = dot(float3(_1632 * _1632, _1632, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_500[_1630], _500[_1630 + 1], _500[_1630 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
_1646 = log(10000.0) / _1091;
|
||||
_1646 = 4.0;
|
||||
}
|
||||
_1667 = _1646;
|
||||
}
|
||||
@ -1114,37 +995,35 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
float3 _1672 = _1598;
|
||||
_1672.y = pow(10.0, _1670);
|
||||
float _1673 = _1517.z;
|
||||
float _1677 = log((_1673 <= 0.0) ? _1524 : _1673) / _1091;
|
||||
float _1677 = log((_1673 <= 0.0) ? 6.103515625e-05 : _1673) * 0.4342944622039794921875;
|
||||
float _1744;
|
||||
if (_1677 <= _1529)
|
||||
if (_1677 <= (-5.2601776123046875))
|
||||
{
|
||||
_1744 = log(9.9999997473787516355514526367188e-05) / _1091;
|
||||
_1744 = -4.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
float _1684 = log(0.180000007152557373046875) / _1091;
|
||||
float _1741;
|
||||
if ((_1677 > _1529) && (_1677 < _1684))
|
||||
if ((_1677 > (-5.2601776123046875)) && (_1677 < (-0.744727432727813720703125)))
|
||||
{
|
||||
float _1724 = (3.0 * (_1677 - _1529)) / (_1684 - _1529);
|
||||
float _1724 = (_1677 - (-5.2601776123046875)) * 0.6643855571746826171875;
|
||||
int _1725 = int(_1724);
|
||||
float _1727 = _1724 - float(_1725);
|
||||
_1741 = dot(float3(_1727 * _1727, _1727, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_499[_1725], _499[_1725 + 1], _499[_1725 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
float _1692 = log(_1522) / _1091;
|
||||
float _1720;
|
||||
if ((_1677 >= _1684) && (_1677 < _1692))
|
||||
if ((_1677 >= (-0.744727432727813720703125)) && (_1677 < 4.673812389373779296875))
|
||||
{
|
||||
float _1703 = (3.0 * (_1677 - _1684)) / (_1692 - _1684);
|
||||
float _1703 = (_1677 - (-0.744727432727813720703125)) * 0.55365467071533203125;
|
||||
int _1704 = int(_1703);
|
||||
float _1706 = _1703 - float(_1704);
|
||||
_1720 = dot(float3(_1706 * _1706, _1706, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_500[_1704], _500[_1704 + 1], _500[_1704 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
_1720 = log(10000.0) / _1091;
|
||||
_1720 = 4.0;
|
||||
}
|
||||
_1741 = _1720;
|
||||
}
|
||||
@ -1153,124 +1032,20 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
float3 _1746 = _1672;
|
||||
_1746.z = pow(10.0, _1744);
|
||||
float3 _1748 = (_1746 * float3x3(float3(0.695452213287353515625, 0.140678703784942626953125, 0.16386906802654266357421875), float3(0.0447945632040500640869140625, 0.859671115875244140625, 0.095534317195415496826171875), float3(-0.0055258828215301036834716796875, 0.0040252101607620716094970703125, 1.00150072574615478515625))) * float3x3(float3(1.45143926143646240234375, -0.236510753631591796875, -0.214928567409515380859375), float3(-0.07655377686023712158203125, 1.1762297153472900390625, -0.0996759235858917236328125), float3(0.0083161480724811553955078125, -0.0060324496589601039886474609375, 0.99771630764007568359375));
|
||||
float _1750 = 0.17999999225139617919921875 * pow(2.0, -12.0);
|
||||
float _1754 = log((_1750 <= 0.0) ? _1524 : _1750) / _1091;
|
||||
float _1821;
|
||||
if (_1754 <= _1529)
|
||||
{
|
||||
_1821 = log(9.9999997473787516355514526367188e-05) / _1091;
|
||||
}
|
||||
else
|
||||
{
|
||||
float _1761 = log(0.180000007152557373046875) / _1091;
|
||||
float _1818;
|
||||
if ((_1754 > _1529) && (_1754 < _1761))
|
||||
{
|
||||
float _1801 = (3.0 * (_1754 - _1529)) / (_1761 - _1529);
|
||||
int _1802 = int(_1801);
|
||||
float _1804 = _1801 - float(_1802);
|
||||
_1818 = dot(float3(_1804 * _1804, _1804, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_499[_1802], _499[_1802 + 1], _499[_1802 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
float _1769 = log(_1522) / _1091;
|
||||
float _1797;
|
||||
if ((_1754 >= _1761) && (_1754 < _1769))
|
||||
{
|
||||
float _1780 = (3.0 * (_1754 - _1761)) / (_1769 - _1761);
|
||||
int _1781 = int(_1780);
|
||||
float _1783 = _1780 - float(_1781);
|
||||
_1797 = dot(float3(_1783 * _1783, _1783, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_500[_1781], _500[_1781 + 1], _500[_1781 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
_1797 = log(10000.0) / _1091;
|
||||
}
|
||||
_1818 = _1797;
|
||||
}
|
||||
_1821 = _1818;
|
||||
}
|
||||
float _1824 = log(0.180000007152557373046875) / _1091;
|
||||
float _1878;
|
||||
if (_1824 <= _1529)
|
||||
{
|
||||
_1878 = log(9.9999997473787516355514526367188e-05) / _1091;
|
||||
}
|
||||
else
|
||||
{
|
||||
float _1875;
|
||||
if ((_1824 > _1529) && (_1824 < _1824))
|
||||
{
|
||||
_1875 = (float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(-0.485249996185302734375, 1.84773242473602294921875, 1.84773242473602294921875)).z;
|
||||
}
|
||||
else
|
||||
{
|
||||
float _1837 = log(_1522) / _1091;
|
||||
float _1865;
|
||||
if ((_1824 >= _1824) && (_1824 < _1837))
|
||||
{
|
||||
float _1848 = (3.0 * (_1824 - _1824)) / (_1837 - _1824);
|
||||
int _1849 = int(_1848);
|
||||
float _1851 = _1848 - float(_1849);
|
||||
_1865 = dot(float3(_1851 * _1851, _1851, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_500[_1849], _500[_1849 + 1], _500[_1849 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
_1865 = log(10000.0) / _1091;
|
||||
}
|
||||
_1875 = _1865;
|
||||
}
|
||||
_1878 = _1875;
|
||||
}
|
||||
float _1879 = pow(10.0, _1878);
|
||||
float _1881 = 0.17999999225139617919921875 * pow(2.0, 11.0);
|
||||
float _1885 = log((_1881 <= 0.0) ? _1524 : _1881) / _1091;
|
||||
float _1950;
|
||||
if (_1885 <= _1529)
|
||||
{
|
||||
_1950 = log(9.9999997473787516355514526367188e-05) / _1091;
|
||||
}
|
||||
else
|
||||
{
|
||||
float _1947;
|
||||
if ((_1885 > _1529) && (_1885 < _1824))
|
||||
{
|
||||
float _1930 = (3.0 * (_1885 - _1529)) / (_1824 - _1529);
|
||||
int _1931 = int(_1930);
|
||||
float _1933 = _1930 - float(_1931);
|
||||
_1947 = dot(float3(_1933 * _1933, _1933, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_499[_1931], _499[_1931 + 1], _499[_1931 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
float _1898 = log(_1522) / _1091;
|
||||
float _1926;
|
||||
if ((_1885 >= _1824) && (_1885 < _1898))
|
||||
{
|
||||
float _1909 = (3.0 * (_1885 - _1824)) / (_1898 - _1824);
|
||||
int _1910 = int(_1909);
|
||||
float _1912 = _1909 - float(_1910);
|
||||
_1926 = dot(float3(_1912 * _1912, _1912, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_500[_1910], _500[_1910 + 1], _500[_1910 + 2]));
|
||||
}
|
||||
else
|
||||
{
|
||||
_1926 = log(10000.0) / _1091;
|
||||
}
|
||||
_1947 = _1926;
|
||||
}
|
||||
_1950 = _1947;
|
||||
}
|
||||
float _1951 = pow(10.0, _1950);
|
||||
float _1879 = pow(10.0, (float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_500[0], _500[1], _500[2])).z);
|
||||
float _1951 = pow(10.0, dot(float3(0.69444429874420166015625, 0.8333332538604736328125, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_500[1], _500[2], _500[3])));
|
||||
float _1952 = _1748.x;
|
||||
float _1956 = log((_1952 <= 0.0) ? 9.9999997473787516355514526367188e-05 : _1952) / _1091;
|
||||
float _1958 = log(pow(10.0, _1821)) / _1091;
|
||||
float _1955 = log((_1952 <= 0.0) ? 9.9999997473787516355514526367188e-05 : _1952);
|
||||
float _1956 = _1955 * 0.4342944622039794921875;
|
||||
float _1958 = log(pow(10.0, dot(float3(0.3600003719329833984375, 0.600000321865081787109375, 1.0), float3x3(float3(0.5, -1.0, 0.5), float3(-1.0, 1.0, 0.5), float3(0.5, 0.0, 0.0)) * float3(_499[0], _499[1], _499[2])))) * 0.4342944622039794921875;
|
||||
float _2030;
|
||||
if (_1956 <= _1958)
|
||||
{
|
||||
_2030 = log(0.004999999888241291046142578125) / _1091;
|
||||
_2030 = -2.3010299205780029296875;
|
||||
}
|
||||
else
|
||||
{
|
||||
float _1965 = log(_1879) / _1091;
|
||||
float _1965 = log(_1879) * 0.4342944622039794921875;
|
||||
float _2027;
|
||||
if ((_1956 > _1958) && (_1956 < _1965))
|
||||
{
|
||||
@ -1282,7 +1057,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
else
|
||||
{
|
||||
float _1972 = log(_1951);
|
||||
float _1973 = _1972 / _1091;
|
||||
float _1973 = _1972 * 0.4342944622039794921875;
|
||||
float _2006;
|
||||
if ((_1956 >= _1965) && (_1956 < _1973))
|
||||
{
|
||||
@ -1293,7 +1068,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
}
|
||||
else
|
||||
{
|
||||
_2006 = (_1956 * 0.119999997317790985107421875) + ((log(2000.0) / _1091) - ((0.119999997317790985107421875 * _1972) / _1091));
|
||||
_2006 = (_1955 * 0.05211533606052398681640625) + (3.3010299205780029296875 - (_1972 * 0.05211533606052398681640625));
|
||||
}
|
||||
_2027 = _2006;
|
||||
}
|
||||
@ -1302,15 +1077,16 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
float3 _2032 = _523;
|
||||
_2032.x = pow(10.0, _2030);
|
||||
float _2033 = _1748.y;
|
||||
float _2037 = log((_2033 <= 0.0) ? 9.9999997473787516355514526367188e-05 : _2033) / _1091;
|
||||
float _2036 = log((_2033 <= 0.0) ? 9.9999997473787516355514526367188e-05 : _2033);
|
||||
float _2037 = _2036 * 0.4342944622039794921875;
|
||||
float _2109;
|
||||
if (_2037 <= _1958)
|
||||
{
|
||||
_2109 = log(0.004999999888241291046142578125) / _1091;
|
||||
_2109 = -2.3010299205780029296875;
|
||||
}
|
||||
else
|
||||
{
|
||||
float _2044 = log(_1879) / _1091;
|
||||
float _2044 = log(_1879) * 0.4342944622039794921875;
|
||||
float _2106;
|
||||
if ((_2037 > _1958) && (_2037 < _2044))
|
||||
{
|
||||
@ -1322,7 +1098,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
else
|
||||
{
|
||||
float _2051 = log(_1951);
|
||||
float _2052 = _2051 / _1091;
|
||||
float _2052 = _2051 * 0.4342944622039794921875;
|
||||
float _2085;
|
||||
if ((_2037 >= _2044) && (_2037 < _2052))
|
||||
{
|
||||
@ -1333,7 +1109,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
}
|
||||
else
|
||||
{
|
||||
_2085 = (_2037 * 0.119999997317790985107421875) + ((log(2000.0) / _1091) - ((0.119999997317790985107421875 * _2051) / _1091));
|
||||
_2085 = (_2036 * 0.05211533606052398681640625) + (3.3010299205780029296875 - (_2051 * 0.05211533606052398681640625));
|
||||
}
|
||||
_2106 = _2085;
|
||||
}
|
||||
@ -1342,15 +1118,16 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
float3 _2111 = _2032;
|
||||
_2111.y = pow(10.0, _2109);
|
||||
float _2112 = _1748.z;
|
||||
float _2116 = log((_2112 <= 0.0) ? 9.9999997473787516355514526367188e-05 : _2112) / _1091;
|
||||
float _2115 = log((_2112 <= 0.0) ? 9.9999997473787516355514526367188e-05 : _2112);
|
||||
float _2116 = _2115 * 0.4342944622039794921875;
|
||||
float _2188;
|
||||
if (_2116 <= _1958)
|
||||
{
|
||||
_2188 = log(0.004999999888241291046142578125) / _1091;
|
||||
_2188 = -2.3010299205780029296875;
|
||||
}
|
||||
else
|
||||
{
|
||||
float _2123 = log(_1879) / _1091;
|
||||
float _2123 = log(_1879) * 0.4342944622039794921875;
|
||||
float _2185;
|
||||
if ((_2116 > _1958) && (_2116 < _2123))
|
||||
{
|
||||
@ -1362,7 +1139,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
else
|
||||
{
|
||||
float _2130 = log(_1951);
|
||||
float _2131 = _2130 / _1091;
|
||||
float _2131 = _2130 * 0.4342944622039794921875;
|
||||
float _2164;
|
||||
if ((_2116 >= _2123) && (_2116 < _2131))
|
||||
{
|
||||
@ -1373,7 +1150,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
|
||||
}
|
||||
else
|
||||
{
|
||||
_2164 = (_2116 * 0.119999997317790985107421875) + ((log(2000.0) / _1091) - ((0.119999997317790985107421875 * _2130) / _1091));
|
||||
_2164 = (_2115 * 0.05211533606052398681640625) + (3.3010299205780029296875 - (_2130 * 0.05211533606052398681640625));
|
||||
}
|
||||
_2185 = _2164;
|
||||
}
|
||||
|
@ -462,7 +462,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_View& View [[bu
|
||||
{
|
||||
_215 = in.in_var_TEXCOORD7;
|
||||
}
|
||||
float3 _216 = fast::max(Material.Material_VectorExpressions[1].xyz * float3(((1.0 + dot(float3(-1.0, -1.5, 3.0) / float3(sqrt(12.25)), normalize(float3x3(in.in_var_TEXCOORD10_centroid.xyz, cross(in.in_var_TEXCOORD11_centroid.xyz, in.in_var_TEXCOORD10_centroid.xyz) * float3(in.in_var_TEXCOORD11_centroid.w), in.in_var_TEXCOORD11_centroid.xyz) * normalize((float3(0.0, 0.0, 1.0) * float3(View.View_NormalOverrideParameter.w)) + View.View_NormalOverrideParameter.xyz)))) * 0.5) + 0.20000000298023223876953125), float3(0.0));
|
||||
float3 _216 = fast::max(Material.Material_VectorExpressions[1].xyz * float3(((1.0 + dot(float3(-0.2857142984867095947265625, -0.4285714328289031982421875, 0.857142865657806396484375), normalize(float3x3(in.in_var_TEXCOORD10_centroid.xyz, cross(in.in_var_TEXCOORD11_centroid.xyz, in.in_var_TEXCOORD10_centroid.xyz) * float3(in.in_var_TEXCOORD11_centroid.w), in.in_var_TEXCOORD11_centroid.xyz) * normalize((float3(0.0, 0.0, 1.0) * float3(View.View_NormalOverrideParameter.w)) + View.View_NormalOverrideParameter.xyz)))) * 0.5) + 0.20000000298023223876953125), float3(0.0));
|
||||
float3 _246;
|
||||
if (View.View_OutOfBoundsMask > 0.0)
|
||||
{
|
||||
|
@ -437,10 +437,8 @@ vertex main0_out main0(main0_in in [[stage_in]], constant type_View& View [[buff
|
||||
_396 = _354;
|
||||
}
|
||||
float _400 = fast::max(-127.0, MobileBasePass.MobileBasePass_Fog_ExponentialFogParameters.y * _396);
|
||||
float _405 = log(2.0);
|
||||
float _407 = 0.5 * (_405 * _405);
|
||||
float _417 = fast::max(-127.0, MobileBasePass.MobileBasePass_Fog_ExponentialFogParameters2.y * _396);
|
||||
float _428 = (_395 * ((abs(_400) > 0.00999999977648258209228515625) ? ((1.0 - exp2(-_400)) / _400) : (_405 - (_407 * _400)))) + (_394 * ((abs(_417) > 0.00999999977648258209228515625) ? ((1.0 - exp2(-_417)) / _417) : (_405 - (_407 * _417))));
|
||||
float _428 = (_395 * ((abs(_400) > 0.00999999977648258209228515625) ? ((1.0 - exp2(-_400)) / _400) : (0.693147182464599609375 - (0.2402265071868896484375 * _400)))) + (_394 * ((abs(_417) > 0.00999999977648258209228515625) ? ((1.0 - exp2(-_417)) / _417) : (0.693147182464599609375 - (0.2402265071868896484375 * _417))));
|
||||
float3 _459;
|
||||
if (MobileBasePass.MobileBasePass_Fog_InscatteringLightDirection.w >= 0.0)
|
||||
{
|
||||
|
@ -10,60 +10,60 @@ layout(binding = 0, std140) uniform Foo
|
||||
layout(location = 0) in vec3 fragWorld;
|
||||
layout(location = 0) out int _entryPointOutput;
|
||||
|
||||
int _240;
|
||||
int _228;
|
||||
|
||||
void main()
|
||||
{
|
||||
uint _227;
|
||||
int _236;
|
||||
for (;;)
|
||||
int _225;
|
||||
switch (0u)
|
||||
{
|
||||
_227 = 0u;
|
||||
bool _231;
|
||||
int _237;
|
||||
for (;;)
|
||||
default:
|
||||
{
|
||||
if (_227 < _11.shadowCascadesNum)
|
||||
bool _222;
|
||||
int _226;
|
||||
uint _219 = 0u;
|
||||
for (;;)
|
||||
{
|
||||
mat4 _228;
|
||||
for (;;)
|
||||
if (_219 < _11.shadowCascadesNum)
|
||||
{
|
||||
if (_11.test == 0)
|
||||
mat4 _220;
|
||||
switch (0u)
|
||||
{
|
||||
_228 = mat4(vec4(0.5, 0.0, 0.0, 0.0), vec4(0.0, 0.5, 0.0, 0.0), vec4(0.0, 0.0, 0.5, 0.0), vec4(0.0, 0.0, 0.0, 1.0));
|
||||
default:
|
||||
{
|
||||
if (_11.test == 0)
|
||||
{
|
||||
_220 = mat4(vec4(0.5, 0.0, 0.0, 0.0), vec4(0.0, 0.5, 0.0, 0.0), vec4(0.0, 0.0, 0.5, 0.0), vec4(0.0, 0.0, 0.0, 1.0));
|
||||
break;
|
||||
}
|
||||
_220 = mat4(vec4(1.0, 0.0, 0.0, 0.0), vec4(0.0, 1.0, 0.0, 0.0), vec4(0.0, 0.0, 1.0, 0.0), vec4(0.0, 0.0, 0.0, 1.0));
|
||||
break;
|
||||
}
|
||||
}
|
||||
vec4 _171 = (_220 * _11.lightVP[_219]) * vec4(fragWorld, 1.0);
|
||||
float _173 = _171.z;
|
||||
float _180 = _171.x;
|
||||
float _182 = _171.y;
|
||||
if ((((_173 >= 0.0) && (_173 <= 1.0)) && (max(_180, _182) <= 1.0)) && (min(_180, _182) >= 0.0))
|
||||
{
|
||||
_226 = int(_219);
|
||||
_222 = true;
|
||||
break;
|
||||
}
|
||||
_228 = mat4(vec4(1.0, 0.0, 0.0, 0.0), vec4(0.0, 1.0, 0.0, 0.0), vec4(0.0, 0.0, 1.0, 0.0), vec4(0.0, 0.0, 0.0, 1.0));
|
||||
break;
|
||||
_219++;
|
||||
continue;
|
||||
}
|
||||
vec4 _177 = (_228 * _11.lightVP[_227]) * vec4(fragWorld, 1.0);
|
||||
float _179 = _177.z;
|
||||
float _186 = _177.x;
|
||||
float _188 = _177.y;
|
||||
if ((((_179 >= 0.0) && (_179 <= 1.0)) && (max(_186, _188) <= 1.0)) && (min(_186, _188) >= 0.0))
|
||||
else
|
||||
{
|
||||
_237 = int(_227);
|
||||
_231 = true;
|
||||
_226 = _228;
|
||||
_222 = false;
|
||||
break;
|
||||
}
|
||||
_227++;
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
_237 = _240;
|
||||
_231 = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (_231)
|
||||
{
|
||||
_236 = _237;
|
||||
_225 = -1;
|
||||
break;
|
||||
}
|
||||
_236 = -1;
|
||||
break;
|
||||
}
|
||||
_entryPointOutput = _236;
|
||||
_entryPointOutput = _225;
|
||||
}
|
||||
|
||||
|
@ -6,62 +6,63 @@ layout(location = 0) out mediump int FragColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
mediump int _145;
|
||||
for (;;)
|
||||
switch (0u)
|
||||
{
|
||||
FragColor = 16;
|
||||
_145 = 0;
|
||||
for (; _145 < 25; )
|
||||
default:
|
||||
{
|
||||
FragColor += 10;
|
||||
_145++;
|
||||
continue;
|
||||
}
|
||||
for (mediump int _146 = 1; _146 < 30; )
|
||||
{
|
||||
FragColor += 11;
|
||||
_146++;
|
||||
continue;
|
||||
}
|
||||
mediump int _147;
|
||||
_147 = 0;
|
||||
for (; _147 < 20; )
|
||||
{
|
||||
FragColor += 12;
|
||||
_147++;
|
||||
continue;
|
||||
}
|
||||
mediump int _62 = _147 + 3;
|
||||
FragColor += _62;
|
||||
if (_62 == 40)
|
||||
{
|
||||
for (mediump int _151 = 0; _151 < 40; )
|
||||
FragColor = 16;
|
||||
for (mediump int _143 = 0; _143 < 25; )
|
||||
{
|
||||
FragColor += 13;
|
||||
_151++;
|
||||
FragColor += 10;
|
||||
_143++;
|
||||
continue;
|
||||
}
|
||||
for (mediump int _144 = 1; _144 < 30; )
|
||||
{
|
||||
FragColor += 11;
|
||||
_144++;
|
||||
continue;
|
||||
}
|
||||
mediump int _145;
|
||||
_145 = 0;
|
||||
for (; _145 < 20; )
|
||||
{
|
||||
FragColor += 12;
|
||||
_145++;
|
||||
continue;
|
||||
}
|
||||
mediump int _62 = _145 + 3;
|
||||
FragColor += _62;
|
||||
if (_62 == 40)
|
||||
{
|
||||
for (mediump int _149 = 0; _149 < 40; )
|
||||
{
|
||||
FragColor += 13;
|
||||
_149++;
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
FragColor += _62;
|
||||
mediump ivec2 _146;
|
||||
_146 = ivec2(0);
|
||||
for (; _146.x < 10; )
|
||||
{
|
||||
FragColor += _146.y;
|
||||
mediump ivec2 _142 = _146;
|
||||
_142.x = _146.x + 4;
|
||||
_146 = _142;
|
||||
continue;
|
||||
}
|
||||
for (mediump int _148 = _62; _148 < 40; )
|
||||
{
|
||||
FragColor += _148;
|
||||
_148++;
|
||||
continue;
|
||||
}
|
||||
FragColor += _62;
|
||||
break;
|
||||
}
|
||||
FragColor += _62;
|
||||
mediump ivec2 _148;
|
||||
_148 = ivec2(0);
|
||||
for (; _148.x < 10; )
|
||||
{
|
||||
FragColor += _148.y;
|
||||
mediump ivec2 _144 = _148;
|
||||
_144.x = _148.x + 4;
|
||||
_148 = _144;
|
||||
continue;
|
||||
}
|
||||
for (mediump int _150 = _62; _150 < 40; )
|
||||
{
|
||||
FragColor += _150;
|
||||
_150++;
|
||||
continue;
|
||||
}
|
||||
FragColor += _62;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,15 +5,18 @@ layout(location = 0) out vec4 FragColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
for (;;)
|
||||
switch (0u)
|
||||
{
|
||||
if (vIndex != 1)
|
||||
default:
|
||||
{
|
||||
FragColor = vec4(1.0);
|
||||
if (vIndex != 1)
|
||||
{
|
||||
FragColor = vec4(1.0);
|
||||
break;
|
||||
}
|
||||
FragColor = vec4(10.0);
|
||||
break;
|
||||
}
|
||||
FragColor = vec4(10.0);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user