Roll toolchain deps.

This commit is contained in:
Hans-Kristian Arntzen 2024-09-02 13:18:50 +02:00
parent dae7a689d9
commit e2de90ed75
52 changed files with 507 additions and 509 deletions

View File

@ -2,9 +2,9 @@
# Copyright 2016-2021 The Khronos Group Inc.
# SPDX-License-Identifier: Apache-2.0
GLSLANG_REV=a7785ea1ff5b10bfc2d8ca77fdad5929562897b7
SPIRV_TOOLS_REV=afaf8fda2ad0364655909b56c8b634ce89095bb5
SPIRV_HEADERS_REV=e867c06631767a2d96424cbec530f9ee5e78180f
GLSLANG_REV=10ee92feb00712f444783032f5c9ee798887670d
SPIRV_TOOLS_REV=fd96922e9a1814d92df46df03277788c799a4fad
SPIRV_HEADERS_REV=ea77f2a826bc820cb8f57f9b2a7c7eccb681c73
PROTOCOL=https
if [ -d external/glslang ]; then

View File

@ -1,6 +1,12 @@
static const float _17[5] = { 1.0f, 2.0f, 3.0f, 4.0f, 5.0f };
static float4 FragColor;
static float4 v0;
struct SPIRV_Cross_Input
{
float4 v0 : TEXCOORD0;
};
struct SPIRV_Cross_Output
{
@ -18,8 +24,9 @@ void frag_main()
}
}
SPIRV_Cross_Output main()
SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
{
v0 = stage_input.v0;
frag_main();
SPIRV_Cross_Output stage_output;
stage_output.FragColor = FragColor;

View File

@ -1,8 +1,16 @@
static float4 vColor;
struct SPIRV_Cross_Input
{
float4 vColor : TEXCOORD0;
};
void frag_main()
{
}
void main()
void main(SPIRV_Cross_Input stage_input)
{
vColor = stage_input.vColor;
frag_main();
}

View File

@ -6,6 +6,12 @@ cbuffer UBO : register(b0)
static float4 FragColor;
static float4 vInput;
struct SPIRV_Cross_Input
{
float4 vInput : TEXCOORD0;
};
struct SPIRV_Cross_Output
{
@ -40,8 +46,9 @@ void frag_main()
FragColor = float4(_45.x ? 10.0f.xxxx.x : 20.0f.xxxx.x, _45.y ? 10.0f.xxxx.y : 20.0f.xxxx.y, _45.z ? 10.0f.xxxx.z : 20.0f.xxxx.z, _45.w ? 10.0f.xxxx.w : 20.0f.xxxx.w);
}
SPIRV_Cross_Output main()
SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
{
vInput = stage_input.vInput;
frag_main();
SPIRV_Cross_Output stage_output;
stage_output.FragColor = FragColor;

View File

@ -1,9 +1,11 @@
static float4 FragColor;
static float4 vIn;
static int4 vIn1;
struct SPIRV_Cross_Input
{
float4 vIn : TEXCOORD0;
nointerpolation int4 vIn1 : TEXCOORD1;
};
struct SPIRV_Cross_Output
@ -19,6 +21,7 @@ void frag_main()
SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
{
vIn = stage_input.vIn;
vIn1 = stage_input.vIn1;
frag_main();
SPIRV_Cross_Output stage_output;
stage_output.FragColor = FragColor;

View File

@ -19,7 +19,8 @@ struct SPIRV_Cross_Output
void vert_main()
{
float4 _21 = mad(vInput1, vInput2, vInput0);
float4 _20 = vInput1 * vInput2;
float4 _21 = vInput0 + _20;
gl_Position = _21;
float4 _27 = vInput0 - vInput1;
float4 _29 = _27 * vInput2;

View File

@ -1,8 +1,10 @@
static float4 gl_Position;
static float4 vInput0;
static float4 vInput1;
struct SPIRV_Cross_Input
{
float4 vInput0 : TEXCOORD0;
float4 vInput1 : TEXCOORD1;
};
@ -18,6 +20,7 @@ void vert_main()
SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
{
vInput0 = stage_input.vInput0;
vInput1 = stage_input.vInput1;
vert_main();
SPIRV_Cross_Output stage_output;

View File

@ -42,7 +42,7 @@ fragment main0_out main0(const device _6* _7_0 [[buffer(0)]], const device _6* _
};
main0_out out = {};
out.m_4 = fma(_10[_21._m0]->_m0, float4(0.20000000298023223876953125), _7[_21._m0]->_m0);
out.m_4 = _7[_21._m0]->_m0 + (_10[_21._m0]->_m0 * float4(0.20000000298023223876953125));
return out;
}

View File

@ -41,7 +41,7 @@ fragment main0_out main0(main0_in in [[stage_in]])
inp.v4 = in.inp_v4;
inp.v5 = in.inp_v5;
inp.v6 = in.inp_v6;
out.FragColor = float4(inp.v0.x + inp.v1.y, inp.v2.xy, fma(inp.v3.w, inp.v4, inp.v5) - inp.v6);
out.FragColor = float4(inp.v0.x + inp.v1.y, inp.v2.xy, ((inp.v3.w * inp.v4) + inp.v5) - inp.v6);
return out;
}

View File

@ -96,10 +96,11 @@ struct main0_out
fragment main0_out main0(constant _3& _22044 [[buffer(0)]], constant _4& _12348 [[buffer(1)]], constant _7& _15259 [[buffer(2)]], texture2d<float> _5785 [[texture(0)]], texture2d<float> _3312 [[texture(1)]], texture2d<float> _4862 [[texture(2)]], sampler _5688 [[sampler(0)]], sampler _4646 [[sampler(1)]], sampler _3594 [[sampler(2)]], float4 gl_FragCoord [[position]])
{
main0_out out = {};
float2 _19927 = gl_FragCoord.xy * _15259._m23.xy;
float4 _17581 = _22044._m2 * _22044._m0.xyxy;
float2 _7011 = _17581.xy;
float2 _21058 = _17581.zw;
float2 _13149 = fast::clamp(fma(gl_FragCoord.xy, _15259._m23.xy, float2(0.0, -2.0) * _22044._m0.xy), _7011, _21058);
float2 _13149 = fast::clamp(_19927 + (float2(0.0, -2.0) * _22044._m0.xy), _7011, _21058);
float3 _12103 = float3(_12348._m5) * fast::clamp(_5785.sample(_5688, _13149, level(0.0)).w * _22044._m1, 0.0, 1.0);
float4 _17670 = _3312.sample(_4646, _13149, level(0.0));
float _16938 = _17670.y;
@ -112,7 +113,7 @@ fragment main0_out main0(constant _3& _22044 [[buffer(0)]], constant _4& _12348
{
_7719 = _12103;
}
float2 _13150 = fast::clamp(fma(gl_FragCoord.xy, _15259._m23.xy, float2(-1.0) * _22044._m0.xy), _7011, _21058);
float2 _13150 = fast::clamp(_19927 + (float2(-1.0) * _22044._m0.xy), _7011, _21058);
float3 _12104 = float3(_12348._m5) * fast::clamp(_5785.sample(_5688, _13150, level(0.0)).w * _22044._m1, 0.0, 1.0);
float4 _17671 = _3312.sample(_4646, _13150, level(0.0));
float _16939 = _17671.y;
@ -125,7 +126,7 @@ fragment main0_out main0(constant _3& _22044 [[buffer(0)]], constant _4& _12348
{
_7720 = _12104;
}
float2 _13151 = fast::clamp(fma(gl_FragCoord.xy, _15259._m23.xy, float2(0.0, -1.0) * _22044._m0.xy), _7011, _21058);
float2 _13151 = fast::clamp(_19927 + (float2(0.0, -1.0) * _22044._m0.xy), _7011, _21058);
float3 _12105 = float3(_12348._m5) * fast::clamp(_5785.sample(_5688, _13151, level(0.0)).w * _22044._m1, 0.0, 1.0);
float4 _17672 = _3312.sample(_4646, _13151, level(0.0));
float _16940 = _17672.y;
@ -138,7 +139,7 @@ fragment main0_out main0(constant _3& _22044 [[buffer(0)]], constant _4& _12348
{
_7721 = _12105;
}
float2 _13152 = fast::clamp(fma(gl_FragCoord.xy, _15259._m23.xy, float2(1.0, -1.0) * _22044._m0.xy), _7011, _21058);
float2 _13152 = fast::clamp(_19927 + (float2(1.0, -1.0) * _22044._m0.xy), _7011, _21058);
float3 _12106 = float3(_12348._m5) * fast::clamp(_5785.sample(_5688, _13152, level(0.0)).w * _22044._m1, 0.0, 1.0);
float4 _17673 = _3312.sample(_4646, _13152, level(0.0));
float _16941 = _17673.y;
@ -151,7 +152,7 @@ fragment main0_out main0(constant _3& _22044 [[buffer(0)]], constant _4& _12348
{
_7722 = _12106;
}
float2 _13153 = fast::clamp(fma(gl_FragCoord.xy, _15259._m23.xy, float2(-2.0, 0.0) * _22044._m0.xy), _7011, _21058);
float2 _13153 = fast::clamp(_19927 + (float2(-2.0, 0.0) * _22044._m0.xy), _7011, _21058);
float3 _12107 = float3(_12348._m5) * fast::clamp(_5785.sample(_5688, _13153, level(0.0)).w * _22044._m1, 0.0, 1.0);
float4 _17674 = _3312.sample(_4646, _13153, level(0.0));
float _16942 = _17674.y;
@ -164,7 +165,7 @@ fragment main0_out main0(constant _3& _22044 [[buffer(0)]], constant _4& _12348
{
_7723 = _12107;
}
float2 _13154 = fast::clamp(fma(gl_FragCoord.xy, _15259._m23.xy, float2(-1.0, 0.0) * _22044._m0.xy), _7011, _21058);
float2 _13154 = fast::clamp(_19927 + (float2(-1.0, 0.0) * _22044._m0.xy), _7011, _21058);
float3 _12108 = float3(_12348._m5) * fast::clamp(_5785.sample(_5688, _13154, level(0.0)).w * _22044._m1, 0.0, 1.0);
float4 _17675 = _3312.sample(_4646, _13154, level(0.0));
float _16943 = _17675.y;
@ -177,7 +178,7 @@ fragment main0_out main0(constant _3& _22044 [[buffer(0)]], constant _4& _12348
{
_7724 = _12108;
}
float2 _13155 = fast::clamp(gl_FragCoord.xy * _15259._m23.xy, _7011, _21058);
float2 _13155 = fast::clamp(_19927, _7011, _21058);
float3 _12109 = float3(_12348._m5) * fast::clamp(_5785.sample(_5688, _13155, level(0.0)).w * _22044._m1, 0.0, 1.0);
float4 _17676 = _3312.sample(_4646, _13155, level(0.0));
float _16944 = _17676.y;
@ -190,7 +191,7 @@ fragment main0_out main0(constant _3& _22044 [[buffer(0)]], constant _4& _12348
{
_7725 = _12109;
}
float2 _13156 = fast::clamp(fma(gl_FragCoord.xy, _15259._m23.xy, float2(1.0, 0.0) * _22044._m0.xy), _7011, _21058);
float2 _13156 = fast::clamp(_19927 + (float2(1.0, 0.0) * _22044._m0.xy), _7011, _21058);
float3 _12110 = float3(_12348._m5) * fast::clamp(_5785.sample(_5688, _13156, level(0.0)).w * _22044._m1, 0.0, 1.0);
float4 _17677 = _3312.sample(_4646, _13156, level(0.0));
float _16945 = _17677.y;
@ -203,7 +204,7 @@ fragment main0_out main0(constant _3& _22044 [[buffer(0)]], constant _4& _12348
{
_7726 = _12110;
}
float2 _13157 = fast::clamp(fma(gl_FragCoord.xy, _15259._m23.xy, float2(2.0, 0.0) * _22044._m0.xy), _7011, _21058);
float2 _13157 = fast::clamp(_19927 + (float2(2.0, 0.0) * _22044._m0.xy), _7011, _21058);
float3 _12111 = float3(_12348._m5) * fast::clamp(_5785.sample(_5688, _13157, level(0.0)).w * _22044._m1, 0.0, 1.0);
float4 _17678 = _3312.sample(_4646, _13157, level(0.0));
float _16946 = _17678.y;
@ -216,7 +217,7 @@ fragment main0_out main0(constant _3& _22044 [[buffer(0)]], constant _4& _12348
{
_7727 = _12111;
}
float2 _13158 = fast::clamp(fma(gl_FragCoord.xy, _15259._m23.xy, float2(-1.0, 1.0) * _22044._m0.xy), _7011, _21058);
float2 _13158 = fast::clamp(_19927 + (float2(-1.0, 1.0) * _22044._m0.xy), _7011, _21058);
float3 _12112 = float3(_12348._m5) * fast::clamp(_5785.sample(_5688, _13158, level(0.0)).w * _22044._m1, 0.0, 1.0);
float4 _17679 = _3312.sample(_4646, _13158, level(0.0));
float _16947 = _17679.y;
@ -229,7 +230,7 @@ fragment main0_out main0(constant _3& _22044 [[buffer(0)]], constant _4& _12348
{
_7728 = _12112;
}
float2 _13159 = fast::clamp(fma(gl_FragCoord.xy, _15259._m23.xy, float2(0.0, 1.0) * _22044._m0.xy), _7011, _21058);
float2 _13159 = fast::clamp(_19927 + (float2(0.0, 1.0) * _22044._m0.xy), _7011, _21058);
float3 _12113 = float3(_12348._m5) * fast::clamp(_5785.sample(_5688, _13159, level(0.0)).w * _22044._m1, 0.0, 1.0);
float4 _17680 = _3312.sample(_4646, _13159, level(0.0));
float _16948 = _17680.y;
@ -242,7 +243,7 @@ fragment main0_out main0(constant _3& _22044 [[buffer(0)]], constant _4& _12348
{
_7729 = _12113;
}
float2 _13160 = fast::clamp(fma(gl_FragCoord.xy, _15259._m23.xy, _22044._m0.xy), _7011, _21058);
float2 _13160 = fast::clamp(_19927 + _22044._m0.xy, _7011, _21058);
float3 _12114 = float3(_12348._m5) * fast::clamp(_5785.sample(_5688, _13160, level(0.0)).w * _22044._m1, 0.0, 1.0);
float4 _17681 = _3312.sample(_4646, _13160, level(0.0));
float _16949 = _17681.y;
@ -255,7 +256,7 @@ fragment main0_out main0(constant _3& _22044 [[buffer(0)]], constant _4& _12348
{
_7730 = _12114;
}
float2 _13161 = fast::clamp(fma(gl_FragCoord.xy, _15259._m23.xy, float2(0.0, 2.0) * _22044._m0.xy), _7011, _21058);
float2 _13161 = fast::clamp(_19927 + (float2(0.0, 2.0) * _22044._m0.xy), _7011, _21058);
float3 _12115 = float3(_12348._m5) * fast::clamp(_5785.sample(_5688, _13161, level(0.0)).w * _22044._m1, 0.0, 1.0);
float4 _17682 = _3312.sample(_4646, _13161, level(0.0));
float _16950 = _17682.y;

View File

@ -67,7 +67,7 @@ struct main0_patchIn
gl_TessLevelOuter[2] = patchIn.gl_TessLevelOuter[2];
gl_TessLevelOuter[3] = patchIn.gl_TessLevelOuter[3];
float3 gl_TessCoord = float3(gl_TessCoordIn.x, gl_TessCoordIn.y, 0.0);
out.gl_Position = float4(fma(gl_TessCoord.x * gl_TessLevelInner[0], gl_TessLevelOuter[0], ((1.0 - gl_TessCoord.x) * gl_TessLevelInner[0]) * gl_TessLevelOuter[2]), fma(gl_TessCoord.y * gl_TessLevelInner[1], gl_TessLevelOuter[1], ((1.0 - gl_TessCoord.y) * gl_TessLevelInner[1]) * gl_TessLevelOuter[3]), 0.0, 1.0);
out.gl_Position = float4(((gl_TessCoord.x * gl_TessLevelInner[0]) * gl_TessLevelOuter[0]) + (((1.0 - gl_TessCoord.x) * gl_TessLevelInner[0]) * gl_TessLevelOuter[2]), ((gl_TessCoord.y * gl_TessLevelInner[1]) * gl_TessLevelOuter[1]) + (((1.0 - gl_TessCoord.y) * gl_TessLevelInner[1]) * gl_TessLevelOuter[3]), 0.0, 1.0);
return out;
}

View File

@ -27,15 +27,15 @@ constant uint3 gl_WorkGroupSize [[maybe_unused]] = uint3(8u, 8u, 1u);
kernel void main0(constant Registers& registers [[buffer(0)]], uint3 gl_GlobalInvocationID [[thread_position_in_grid]], uint3 gl_NumWorkGroups [[threadgroups_per_grid]], uint3 gl_WorkGroupID [[threadgroup_position_in_grid]])
{
uint2 local_offset = gl_GlobalInvocationID.xy;
float _70 = fract(fma(float(gl_WorkGroupID.z), 0.100000001490116119384765625, registers.fract_time));
float _70 = fract(registers.fract_time + (float(gl_WorkGroupID.z) * 0.100000001490116119384765625));
float _71 = 6.283125400543212890625 * _70;
float2 pos = float2(gl_GlobalInvocationID.xy);
pos.x = fma(0.20000000298023223876953125, sin(fma(2.2000000476837158203125, pos.x, _71)), pos.x);
pos.y = fma(0.20000000298023223876953125, sin(fma(2.25, pos.y, _70 * 12.56625080108642578125)), pos.y);
pos.x = fma(0.20000000298023223876953125, cos(fma(1.7999999523162841796875, pos.y, _70 * 18.849376678466796875)), pos.x);
pos.y = fma(0.20000000298023223876953125, cos(fma(2.849999904632568359375, pos.x, _70 * 25.1325016021728515625)), pos.y);
pos.x = fma(0.5, sin(_71), pos.x);
pos.y = fma(0.5, sin(fma(6.283125400543212890625, _70, 0.300000011920928955078125)), pos.y);
registers.references->buffers[gl_WorkGroupID.z]->positions[((local_offset.y * 8u) * gl_NumWorkGroups.x) + local_offset.x] = (pos / fma(float2(8.0), float2(gl_NumWorkGroups.xy), float2(-1.0))) - float2(0.5);
pos.x += (0.20000000298023223876953125 * sin((2.2000000476837158203125 * pos.x) + _71));
pos.y += (0.20000000298023223876953125 * sin((2.25 * pos.y) + (_70 * 12.56625080108642578125)));
pos.x += (0.20000000298023223876953125 * cos((1.7999999523162841796875 * pos.y) + (_70 * 18.849376678466796875)));
pos.y += (0.20000000298023223876953125 * cos((2.849999904632568359375 * pos.x) + (_70 * 25.1325016021728515625)));
pos.x += (0.5 * sin(_71));
pos.y += (0.5 * sin(_71 + 0.300000011920928955078125));
registers.references->buffers[gl_WorkGroupID.z]->positions[((local_offset.y * 8u) * gl_NumWorkGroups.x) + local_offset.x] = (pos / ((float2(8.0) * float2(gl_NumWorkGroups.xy)) - float2(1.0))) - float2(0.5);
}

View File

@ -41,7 +41,7 @@ fragment main0_out main0(main0_in in [[stage_in]])
inp.v4 = in.inp_v4;
inp.v5 = in.inp_v5;
inp.v6 = in.inp_v6;
out.FragColor = float4(inp.v0.x + inp.v1.y, inp.v2.xy, fma(inp.v3.w, inp.v4, inp.v5) - inp.v6);
out.FragColor = float4(inp.v0.x + inp.v1.y, inp.v2.xy, ((inp.v3.w * inp.v4) + inp.v5) - inp.v6);
return out;
}

View File

@ -22,7 +22,7 @@ struct main0_in
fragment main0_out main0(main0_in in [[stage_in]])
{
main0_out out = {};
out.FragColor = float4(in.v0.x + in.v1.y, in.v2.xy, fma(in.v3.w, in.v4, in.v5) - in.v6);
out.FragColor = float4(in.v0.x + in.v1.y, in.v2.xy, ((in.v3.w * in.v4) + in.v5) - in.v6);
return out;
}

View File

@ -58,20 +58,20 @@ kernel void main0(constant UBO& _41 [[buffer(0)]], uint3 gl_GlobalInvocationID [
else
{
patchOut.vOutPatchPosBase = gl_in[0].vPatchPosBase.xy;
float2 _681 = fma(float2(-0.5), _41.uPatchSize, gl_in[0].vPatchPosBase.xy) * _41.uScale.xy;
float2 _710 = fma(float2(0.5, -0.5), _41.uPatchSize, gl_in[0].vPatchPosBase.xy) * _41.uScale.xy;
float2 _681 = (gl_in[0].vPatchPosBase.xy + (float2(-0.5) * _41.uPatchSize)) * _41.uScale.xy;
float2 _710 = (gl_in[0].vPatchPosBase.xy + (float2(0.5, -0.5) * _41.uPatchSize)) * _41.uScale.xy;
float _729 = fast::clamp(log2((length(_41.uCamPos - float3(_710.x, 0.0, _710.y)) + 9.9999997473787516355514526367188e-05) * _41.uDistanceMod), 0.0, _41.uMaxTessLevel.x);
float2 _739 = fma(float2(1.5, -0.5), _41.uPatchSize, gl_in[0].vPatchPosBase.xy) * _41.uScale.xy;
float2 _768 = fma(float2(-0.5, 0.5), _41.uPatchSize, gl_in[0].vPatchPosBase.xy) * _41.uScale.xy;
float2 _739 = (gl_in[0].vPatchPosBase.xy + (float2(1.5, -0.5) * _41.uPatchSize)) * _41.uScale.xy;
float2 _768 = (gl_in[0].vPatchPosBase.xy + (float2(-0.5, 0.5) * _41.uPatchSize)) * _41.uScale.xy;
float _787 = fast::clamp(log2((length(_41.uCamPos - float3(_768.x, 0.0, _768.y)) + 9.9999997473787516355514526367188e-05) * _41.uDistanceMod), 0.0, _41.uMaxTessLevel.x);
float2 _797 = fma(float2(0.5), _41.uPatchSize, gl_in[0].vPatchPosBase.xy) * _41.uScale.xy;
float2 _797 = (gl_in[0].vPatchPosBase.xy + (float2(0.5) * _41.uPatchSize)) * _41.uScale.xy;
float _816 = fast::clamp(log2((length(_41.uCamPos - float3(_797.x, 0.0, _797.y)) + 9.9999997473787516355514526367188e-05) * _41.uDistanceMod), 0.0, _41.uMaxTessLevel.x);
float2 _826 = fma(float2(1.5, 0.5), _41.uPatchSize, gl_in[0].vPatchPosBase.xy) * _41.uScale.xy;
float2 _826 = (gl_in[0].vPatchPosBase.xy + (float2(1.5, 0.5) * _41.uPatchSize)) * _41.uScale.xy;
float _845 = fast::clamp(log2((length(_41.uCamPos - float3(_826.x, 0.0, _826.y)) + 9.9999997473787516355514526367188e-05) * _41.uDistanceMod), 0.0, _41.uMaxTessLevel.x);
float2 _855 = fma(float2(-0.5, 1.5), _41.uPatchSize, gl_in[0].vPatchPosBase.xy) * _41.uScale.xy;
float2 _884 = fma(float2(0.5, 1.5), _41.uPatchSize, gl_in[0].vPatchPosBase.xy) * _41.uScale.xy;
float2 _855 = (gl_in[0].vPatchPosBase.xy + (float2(-0.5, 1.5) * _41.uPatchSize)) * _41.uScale.xy;
float2 _884 = (gl_in[0].vPatchPosBase.xy + (float2(0.5, 1.5) * _41.uPatchSize)) * _41.uScale.xy;
float _903 = fast::clamp(log2((length(_41.uCamPos - float3(_884.x, 0.0, _884.y)) + 9.9999997473787516355514526367188e-05) * _41.uDistanceMod), 0.0, _41.uMaxTessLevel.x);
float2 _913 = fma(float2(1.5), _41.uPatchSize, gl_in[0].vPatchPosBase.xy) * _41.uScale.xy;
float2 _913 = (gl_in[0].vPatchPosBase.xy + (float2(1.5) * _41.uPatchSize)) * _41.uScale.xy;
float _614 = dot(float4(_787, _816, fast::clamp(log2((length(_41.uCamPos - float3(_855.x, 0.0, _855.y)) + 9.9999997473787516355514526367188e-05) * _41.uDistanceMod), 0.0, _41.uMaxTessLevel.x), _903), float4(0.25));
float _620 = dot(float4(fast::clamp(log2((length(_41.uCamPos - float3(_681.x, 0.0, _681.y)) + 9.9999997473787516355514526367188e-05) * _41.uDistanceMod), 0.0, _41.uMaxTessLevel.x), _729, _787, _816), float4(0.25));
float _626 = dot(float4(_729, fast::clamp(log2((length(_41.uCamPos - float3(_739.x, 0.0, _739.y)) + 9.9999997473787516355514526367188e-05) * _41.uDistanceMod), 0.0, _41.uMaxTessLevel.x), _816, _845), float4(0.25));

View File

@ -60,20 +60,20 @@ kernel void main0(main0_in in [[stage_in]], constant UBO& _41 [[buffer(0)]], uin
else
{
patchOut.vOutPatchPosBase = gl_in[0].vPatchPosBase;
float2 _681 = fma(float2(-0.5), _41.uPatchSize, gl_in[0].vPatchPosBase) * _41.uScale.xy;
float2 _710 = fma(float2(0.5, -0.5), _41.uPatchSize, gl_in[0].vPatchPosBase) * _41.uScale.xy;
float2 _681 = (gl_in[0].vPatchPosBase + (float2(-0.5) * _41.uPatchSize)) * _41.uScale.xy;
float2 _710 = (gl_in[0].vPatchPosBase + (float2(0.5, -0.5) * _41.uPatchSize)) * _41.uScale.xy;
float _729 = fast::clamp(log2((length(_41.uCamPos - float3(_710.x, 0.0, _710.y)) + 9.9999997473787516355514526367188e-05) * _41.uDistanceMod), 0.0, _41.uMaxTessLevel.x);
float2 _739 = fma(float2(1.5, -0.5), _41.uPatchSize, gl_in[0].vPatchPosBase) * _41.uScale.xy;
float2 _768 = fma(float2(-0.5, 0.5), _41.uPatchSize, gl_in[0].vPatchPosBase) * _41.uScale.xy;
float2 _739 = (gl_in[0].vPatchPosBase + (float2(1.5, -0.5) * _41.uPatchSize)) * _41.uScale.xy;
float2 _768 = (gl_in[0].vPatchPosBase + (float2(-0.5, 0.5) * _41.uPatchSize)) * _41.uScale.xy;
float _787 = fast::clamp(log2((length(_41.uCamPos - float3(_768.x, 0.0, _768.y)) + 9.9999997473787516355514526367188e-05) * _41.uDistanceMod), 0.0, _41.uMaxTessLevel.x);
float2 _797 = fma(float2(0.5), _41.uPatchSize, gl_in[0].vPatchPosBase) * _41.uScale.xy;
float2 _797 = (gl_in[0].vPatchPosBase + (float2(0.5) * _41.uPatchSize)) * _41.uScale.xy;
float _816 = fast::clamp(log2((length(_41.uCamPos - float3(_797.x, 0.0, _797.y)) + 9.9999997473787516355514526367188e-05) * _41.uDistanceMod), 0.0, _41.uMaxTessLevel.x);
float2 _826 = fma(float2(1.5, 0.5), _41.uPatchSize, gl_in[0].vPatchPosBase) * _41.uScale.xy;
float2 _826 = (gl_in[0].vPatchPosBase + (float2(1.5, 0.5) * _41.uPatchSize)) * _41.uScale.xy;
float _845 = fast::clamp(log2((length(_41.uCamPos - float3(_826.x, 0.0, _826.y)) + 9.9999997473787516355514526367188e-05) * _41.uDistanceMod), 0.0, _41.uMaxTessLevel.x);
float2 _855 = fma(float2(-0.5, 1.5), _41.uPatchSize, gl_in[0].vPatchPosBase) * _41.uScale.xy;
float2 _884 = fma(float2(0.5, 1.5), _41.uPatchSize, gl_in[0].vPatchPosBase) * _41.uScale.xy;
float2 _855 = (gl_in[0].vPatchPosBase + (float2(-0.5, 1.5) * _41.uPatchSize)) * _41.uScale.xy;
float2 _884 = (gl_in[0].vPatchPosBase + (float2(0.5, 1.5) * _41.uPatchSize)) * _41.uScale.xy;
float _903 = fast::clamp(log2((length(_41.uCamPos - float3(_884.x, 0.0, _884.y)) + 9.9999997473787516355514526367188e-05) * _41.uDistanceMod), 0.0, _41.uMaxTessLevel.x);
float2 _913 = fma(float2(1.5), _41.uPatchSize, gl_in[0].vPatchPosBase) * _41.uScale.xy;
float2 _913 = (gl_in[0].vPatchPosBase + (float2(1.5) * _41.uPatchSize)) * _41.uScale.xy;
float _614 = dot(float4(_787, _816, fast::clamp(log2((length(_41.uCamPos - float3(_855.x, 0.0, _855.y)) + 9.9999997473787516355514526367188e-05) * _41.uDistanceMod), 0.0, _41.uMaxTessLevel.x), _903), float4(0.25));
float _620 = dot(float4(fast::clamp(log2((length(_41.uCamPos - float3(_681.x, 0.0, _681.y)) + 9.9999997473787516355514526367188e-05) * _41.uDistanceMod), 0.0, _41.uMaxTessLevel.x), _729, _787, _816), float4(0.25));
float _626 = dot(float4(_729, fast::clamp(log2((length(_41.uCamPos - float3(_739.x, 0.0, _739.y)) + 9.9999997473787516355514526367188e-05) * _41.uDistanceMod), 0.0, _41.uMaxTessLevel.x), _816, _845), float4(0.25));

View File

@ -68,7 +68,7 @@ struct main0_patchIn
gl_TessLevelOuter[3] = patchIn.gl_TessLevelOuter[3];
float3 gl_TessCoord = float3(gl_TessCoordIn.x, gl_TessCoordIn.y, 0.0);
gl_TessCoord.y = 1.0 - gl_TessCoord.y;
out.gl_Position = float4(fma(gl_TessCoord.x * gl_TessLevelInner[0], gl_TessLevelOuter[0], ((1.0 - gl_TessCoord.x) * gl_TessLevelInner[0]) * gl_TessLevelOuter[2]), fma(gl_TessCoord.y * gl_TessLevelInner[1], gl_TessLevelOuter[3], ((1.0 - gl_TessCoord.y) * gl_TessLevelInner[1]) * gl_TessLevelOuter[1]), 0.0, 1.0);
out.gl_Position = float4(((gl_TessCoord.x * gl_TessLevelInner[0]) * gl_TessLevelOuter[0]) + (((1.0 - gl_TessCoord.x) * gl_TessLevelInner[0]) * gl_TessLevelOuter[2]), ((gl_TessCoord.y * gl_TessLevelInner[1]) * gl_TessLevelOuter[3]) + (((1.0 - gl_TessCoord.y) * gl_TessLevelInner[1]) * gl_TessLevelOuter[1]), 0.0, 1.0);
return out;
}

View File

@ -67,7 +67,7 @@ struct main0_patchIn
gl_TessLevelOuter[2] = patchIn.gl_TessLevelOuter[2];
gl_TessLevelOuter[3] = patchIn.gl_TessLevelOuter[3];
float3 gl_TessCoord = float3(gl_TessCoordIn.x, gl_TessCoordIn.y, 0.0);
out.gl_Position = float4(fma(gl_TessCoord.x * gl_TessLevelInner[0], gl_TessLevelOuter[0], ((1.0 - gl_TessCoord.x) * gl_TessLevelInner[0]) * gl_TessLevelOuter[2]), fma(gl_TessCoord.y * gl_TessLevelInner[1], gl_TessLevelOuter[1], ((1.0 - gl_TessCoord.y) * gl_TessLevelInner[1]) * gl_TessLevelOuter[3]), 0.0, 1.0);
out.gl_Position = float4(((gl_TessCoord.x * gl_TessLevelInner[0]) * gl_TessLevelOuter[0]) + (((1.0 - gl_TessCoord.x) * gl_TessLevelInner[0]) * gl_TessLevelOuter[2]), ((gl_TessCoord.y * gl_TessLevelInner[1]) * gl_TessLevelOuter[1]) + (((1.0 - gl_TessCoord.y) * gl_TessLevelInner[1]) * gl_TessLevelOuter[3]), 0.0, 1.0);
return out;
}

View File

@ -31,14 +31,15 @@ struct main0_patchIn
main0_out out = {};
const device main0_patchIn& patchIn = spvPatchIn[gl_PrimitiveID];
float3 gl_TessCoord = float3(gl_TessCoordIn.x, gl_TessCoordIn.y, 0.0);
float2 _202 = fma(gl_TessCoord.xy, _31.uPatchSize, patchIn.vOutPatchPosBase);
float2 _202 = patchIn.vOutPatchPosBase + (gl_TessCoord.xy * _31.uPatchSize);
float2 _216 = mix(patchIn.vPatchLods.yx, patchIn.vPatchLods.zw, float2(gl_TessCoord.x));
float _223 = mix(_216.x, _216.y, gl_TessCoord.y);
float _225 = floor(_223);
float2 _125 = _202 * _31.uInvHeightmapSize;
float2 _141 = _31.uInvHeightmapSize * exp2(_225);
out.vGradNormalTex = float4(fma(_202, _31.uInvHeightmapSize, _31.uInvHeightmapSize * 0.5), (_202 * _31.uInvHeightmapSize) * _31.uScale.zw);
float3 _256 = mix(uHeightmapDisplacement.sample(uHeightmapDisplacementSmplr, fma(_202, _31.uInvHeightmapSize, _141 * 0.5), level(_225)).xyz, uHeightmapDisplacement.sample(uHeightmapDisplacementSmplr, fma(_202, _31.uInvHeightmapSize, _141 * 1.0), level(_225 + 1.0)).xyz, float3(_223 - _225));
float2 _171 = fma(_202, _31.uScale.xy, _256.yz);
out.vGradNormalTex = float4(_125 + (_31.uInvHeightmapSize * 0.5), _125 * _31.uScale.zw);
float3 _256 = mix(uHeightmapDisplacement.sample(uHeightmapDisplacementSmplr, (_125 + (_141 * 0.5)), level(_225)).xyz, uHeightmapDisplacement.sample(uHeightmapDisplacementSmplr, (_125 + (_141 * 1.0)), level(_225 + 1.0)).xyz, float3(_223 - _225));
float2 _171 = (_202 * _31.uScale.xy) + _256.yz;
out.vWorld = float3(_171.x, _256.x, _171.y);
out.gl_Position = _31.uMVP * float4(out.vWorld, 1.0);
return out;

View File

@ -30,14 +30,15 @@ struct main0_patchIn
{
main0_out out = {};
float3 gl_TessCoord = float3(gl_TessCoordIn.x, gl_TessCoordIn.y, 0.0);
float2 _202 = fma(gl_TessCoord.xy, _31.uPatchSize, patchIn.vOutPatchPosBase);
float2 _202 = patchIn.vOutPatchPosBase + (gl_TessCoord.xy * _31.uPatchSize);
float2 _216 = mix(patchIn.vPatchLods.yx, patchIn.vPatchLods.zw, float2(gl_TessCoord.x));
float _223 = mix(_216.x, _216.y, gl_TessCoord.y);
float _225 = floor(_223);
float2 _125 = _202 * _31.uInvHeightmapSize;
float2 _141 = _31.uInvHeightmapSize * exp2(_225);
out.vGradNormalTex = float4(fma(_202, _31.uInvHeightmapSize, _31.uInvHeightmapSize * 0.5), (_202 * _31.uInvHeightmapSize) * _31.uScale.zw);
float3 _256 = mix(uHeightmapDisplacement.sample(uHeightmapDisplacementSmplr, fma(_202, _31.uInvHeightmapSize, _141 * 0.5), level(_225)).xyz, uHeightmapDisplacement.sample(uHeightmapDisplacementSmplr, fma(_202, _31.uInvHeightmapSize, _141 * 1.0), level(_225 + 1.0)).xyz, float3(_223 - _225));
float2 _171 = fma(_202, _31.uScale.xy, _256.yz);
out.vGradNormalTex = float4(_125 + (_31.uInvHeightmapSize * 0.5), _125 * _31.uScale.zw);
float3 _256 = mix(uHeightmapDisplacement.sample(uHeightmapDisplacementSmplr, (_125 + (_141 * 0.5)), level(_225)).xyz, uHeightmapDisplacement.sample(uHeightmapDisplacementSmplr, (_125 + (_141 * 1.0)), level(_225 + 1.0)).xyz, float3(_223 - _225));
float2 _171 = (_202 * _31.uScale.xy) + _256.yz;
out.vWorld = float3(_171.x, _256.x, _171.y);
out.gl_Position = _31.uMVP * float4(out.vWorld, 1.0);
return out;

View File

@ -34,8 +34,8 @@ vertex main0_out main0(constant Registers& registers [[buffer(0)]], uint gl_Inst
out.gl_Position = registers.view_projection * float4((registers.references->buffers[int(gl_InstanceIndex)]->positions[int(gl_VertexIndex)] * 2.5) + ((float2(float(int(gl_InstanceIndex) % 8), float(int(gl_InstanceIndex) / 8)) - float2(3.5)) * 3.0), 0.0, 1.0);
int _82 = int(gl_VertexIndex) % 16;
int _85 = int(gl_VertexIndex) / 16;
float _111 = fma(float((_82 ^ _85) & 1), 0.800000011920928955078125, 0.20000000298023223876953125);
out.out_color = float4(fma(0.300000011920928955078125, sin(float(_82)), 0.5) * _111, fma(0.300000011920928955078125, sin(float(_85)), 0.5) * _111, 0.1500000059604644775390625, 1.0);
float _111 = (float((_82 ^ _85) & 1) * 0.800000011920928955078125) + 0.20000000298023223876953125;
out.out_color = float4((0.5 + (0.300000011920928955078125 * sin(float(_82)))) * _111, (0.5 + (0.300000011920928955078125 * sin(float(_85)))) * _111, 0.1500000059604644775390625, 1.0);
return out;
}

View File

@ -18,7 +18,8 @@ struct main0_in
vertex main0_out main0(main0_in in [[stage_in]])
{
main0_out out = {};
float4 _21 = fma(in.vInput1, in.vInput2, in.vInput0);
float4 _20 = in.vInput1 * in.vInput2;
float4 _21 = in.vInput0 + _20;
out.gl_Position = _21;
return out;
}

View File

@ -189,7 +189,7 @@ struct type_Globals
float4 PointLightDepthBiasAndProjParameters;
};
constant float4 _471 = {};
constant float4 _453 = {};
struct main0_out
{
@ -202,8 +202,8 @@ fragment main0_out main0(constant type_View& View [[buffer(0)]], constant type_G
float2 _114 = gl_FragCoord.xy * View.View_BufferSizeAndInvSize.zw;
float4 _118 = SceneTexturesStruct_SceneDepthTexture.sample(SceneTexturesStruct_SceneDepthTextureSampler, _114, level(0.0));
float _119 = _118.x;
float _133 = fma(_119, View.View_InvDeviceZToWorldZTransform.x, View.View_InvDeviceZToWorldZTransform.y) + (1.0 / fma(_119, View.View_InvDeviceZToWorldZTransform.z, -View.View_InvDeviceZToWorldZTransform.w));
float4 _147 = View.View_ScreenToWorld * float4((fma(gl_FragCoord.xy, View.View_BufferSizeAndInvSize.zw, -View.View_ScreenPositionScaleBias.wz) / View.View_ScreenPositionScaleBias.xy) * float2(_133), _133, 1.0);
float _133 = ((_119 * View.View_InvDeviceZToWorldZTransform.x) + View.View_InvDeviceZToWorldZTransform.y) + (1.0 / ((_119 * View.View_InvDeviceZToWorldZTransform.z) - View.View_InvDeviceZToWorldZTransform.w));
float4 _147 = View.View_ScreenToWorld * float4(((_114 - View.View_ScreenPositionScaleBias.wz) / View.View_ScreenPositionScaleBias.xy) * float2(_133), _133, 1.0);
float3 _148 = _147.xyz;
float3 _152 = _Globals.LightPositionAndInvRadius.xyz - _148;
float _158 = length(_152);
@ -242,20 +242,20 @@ fragment main0_out main0(constant type_View& View [[buffer(0)]], constant type_G
{
_207 = 1.0;
}
float _213 = fast::clamp(fma(_207 - 0.5, _Globals.ShadowSharpen, 0.5), 0.0, 1.0);
float _213 = fast::clamp(((_207 - 0.5) * _Globals.ShadowSharpen) + 0.5, 0.0, 1.0);
float _218 = sqrt(mix(1.0, _213 * _213, _Globals.ShadowFadeFraction));
float4 _219;
_219.z = _218;
float4 _220 = float4(float3(1.0).x, float3(1.0).y, _219.z, float3(1.0).z);
float3 _236 = fast::normalize(fma(SceneTexturesStruct_GBufferATexture.sample(SceneTexturesStruct_GBufferATextureSampler, _114, level(0.0)).xyz, float3(2.0), float3(-1.0)));
float3 _236 = fast::normalize((SceneTexturesStruct_GBufferATexture.sample(SceneTexturesStruct_GBufferATextureSampler, _114, level(0.0)).xyz * float3(2.0)) - float3(1.0));
uint _240 = uint(round(SceneTexturesStruct_GBufferBTexture.sample(SceneTexturesStruct_GBufferBTextureSampler, _114, level(0.0)).w * 255.0));
bool _248 = (_240 & 15u) == 5u;
float _448;
if (_248)
{
float4 _260 = SSProfilesTexture.read(uint2(int3(1, int(uint(fma(select(float4(0.0), SceneTexturesStruct_GBufferDTexture.sample(SceneTexturesStruct_GBufferDTextureSampler, _114, level(0.0)), bool4(!(((_240 & 4294967280u) & 16u) != 0u))).x, 255.0, 0.5))), 0).xy), 0);
float4 _260 = SSProfilesTexture.read(uint2(int3(1, int(uint((select(float4(0.0), SceneTexturesStruct_GBufferDTexture.sample(SceneTexturesStruct_GBufferDTextureSampler, _114, level(0.0)), bool4(!(((_240 & 4294967280u) & 16u) != 0u))).x * 255.0) + 0.5)), 0).xy), 0);
float _263 = _260.y * 0.5;
float3 _266 = fma(-_236, float3(_263), _148);
float3 _266 = _148 - (_236 * float3(_263));
float _274 = powr(fast::clamp(dot(-(_152 * float3(rsqrt(dot(_152, _152)))), _236), 0.0, 1.0), 1.0);
float _445;
if (_160)
@ -290,25 +290,19 @@ fragment main0_out main0(constant type_View& View [[buffer(0)]], constant type_G
}
float4 _318 = _Globals.ShadowViewProjectionMatrices[_311] * float4(_266, 1.0);
float _323 = _260.x * (10.0 / _Globals.LightPositionAndInvRadius.w);
float _457 = -_Globals.PointLightDepthBiasAndProjParameters.w;
float _328 = 1.0 / fma(_318.z / _318.w, _Globals.PointLightDepthBiasAndProjParameters.z, _457);
float _341 = fma(_328, _Globals.LightPositionAndInvRadius.w, -((1.0 / fma(float4(ShadowDepthCubeTexture.sample(ShadowDepthTextureSampler, fma(_286, float3(2.5), _278), level(0.0))).x, _Globals.PointLightDepthBiasAndProjParameters.z, _457)) * _Globals.LightPositionAndInvRadius.w));
float _342 = _341 * _323;
float _363 = fma(_328, _Globals.LightPositionAndInvRadius.w, -((1.0 / fma(float4(ShadowDepthCubeTexture.sample(ShadowDepthTextureSampler, fma(_286, float3(0.77254199981689453125), fma(_285, float3(2.3776409626007080078125), _278)), level(0.0))).x, _Globals.PointLightDepthBiasAndProjParameters.z, _457)) * _Globals.LightPositionAndInvRadius.w));
float _364 = _363 * _323;
float _386 = fma(_328, _Globals.LightPositionAndInvRadius.w, -((1.0 / fma(float4(ShadowDepthCubeTexture.sample(ShadowDepthTextureSampler, fma(_286, float3(-2.0225429534912109375), fma(_285, float3(1.46946299076080322265625), _278)), level(0.0))).x, _Globals.PointLightDepthBiasAndProjParameters.z, _457)) * _Globals.LightPositionAndInvRadius.w));
float _387 = _386 * _323;
float _409 = fma(_328, _Globals.LightPositionAndInvRadius.w, -((1.0 / fma(float4(ShadowDepthCubeTexture.sample(ShadowDepthTextureSampler, fma(_286, float3(-2.02254199981689453125), fma(_285, float3(-1.46946299076080322265625), _278)), level(0.0))).x, _Globals.PointLightDepthBiasAndProjParameters.z, _457)) * _Globals.LightPositionAndInvRadius.w));
float _410 = _409 * _323;
float _432 = fma(_328, _Globals.LightPositionAndInvRadius.w, -((1.0 / fma(float4(ShadowDepthCubeTexture.sample(ShadowDepthTextureSampler, fma(_286, float3(0.772543013095855712890625), fma(_285, float3(-2.3776409626007080078125), _278)), level(0.0))).x, _Globals.PointLightDepthBiasAndProjParameters.z, _457)) * _Globals.LightPositionAndInvRadius.w));
float _433 = _432 * _323;
_445 = (((((fast::clamp(abs((_342 > 0.0) ? fma(_341, _323, _263) : fast::max(0.0, fma(_342, _274, _263))), 0.1500000059604644775390625, 5.0) + 0.25) + (fast::clamp(abs((_364 > 0.0) ? fma(_363, _323, _263) : fast::max(0.0, fma(_364, _274, _263))), 0.1500000059604644775390625, 5.0) + 0.25)) + (fast::clamp(abs((_387 > 0.0) ? fma(_386, _323, _263) : fast::max(0.0, fma(_387, _274, _263))), 0.1500000059604644775390625, 5.0) + 0.25)) + (fast::clamp(abs((_410 > 0.0) ? fma(_409, _323, _263) : fast::max(0.0, fma(_410, _274, _263))), 0.1500000059604644775390625, 5.0) + 0.25)) + (fast::clamp(abs((_433 > 0.0) ? fma(_432, _323, _263) : fast::max(0.0, fma(_433, _274, _263))), 0.1500000059604644775390625, 5.0) + 0.25)) * 0.20000000298023223876953125;
float _329 = (1.0 / (((_318.z / _318.w) * _Globals.PointLightDepthBiasAndProjParameters.z) - _Globals.PointLightDepthBiasAndProjParameters.w)) * _Globals.LightPositionAndInvRadius.w;
float _342 = (_329 - ((1.0 / ((float4(ShadowDepthCubeTexture.sample(ShadowDepthTextureSampler, (_278 + (_286 * float3(2.5))), level(0.0))).x * _Globals.PointLightDepthBiasAndProjParameters.z) - _Globals.PointLightDepthBiasAndProjParameters.w)) * _Globals.LightPositionAndInvRadius.w)) * _323;
float _364 = (_329 - ((1.0 / ((float4(ShadowDepthCubeTexture.sample(ShadowDepthTextureSampler, ((_278 + (_285 * float3(2.3776409626007080078125))) + (_286 * float3(0.77254199981689453125))), level(0.0))).x * _Globals.PointLightDepthBiasAndProjParameters.z) - _Globals.PointLightDepthBiasAndProjParameters.w)) * _Globals.LightPositionAndInvRadius.w)) * _323;
float _387 = (_329 - ((1.0 / ((float4(ShadowDepthCubeTexture.sample(ShadowDepthTextureSampler, ((_278 + (_285 * float3(1.46946299076080322265625))) + (_286 * float3(-2.0225429534912109375))), level(0.0))).x * _Globals.PointLightDepthBiasAndProjParameters.z) - _Globals.PointLightDepthBiasAndProjParameters.w)) * _Globals.LightPositionAndInvRadius.w)) * _323;
float _410 = (_329 - ((1.0 / ((float4(ShadowDepthCubeTexture.sample(ShadowDepthTextureSampler, ((_278 + (_285 * float3(-1.46946299076080322265625))) + (_286 * float3(-2.02254199981689453125))), level(0.0))).x * _Globals.PointLightDepthBiasAndProjParameters.z) - _Globals.PointLightDepthBiasAndProjParameters.w)) * _Globals.LightPositionAndInvRadius.w)) * _323;
float _433 = (_329 - ((1.0 / ((float4(ShadowDepthCubeTexture.sample(ShadowDepthTextureSampler, ((_278 + (_285 * float3(-2.3776409626007080078125))) + (_286 * float3(0.772543013095855712890625))), level(0.0))).x * _Globals.PointLightDepthBiasAndProjParameters.z) - _Globals.PointLightDepthBiasAndProjParameters.w)) * _Globals.LightPositionAndInvRadius.w)) * _323;
_445 = (((((fast::clamp(abs((_342 > 0.0) ? (_342 + _263) : fast::max(0.0, (_342 * _274) + _263)), 0.1500000059604644775390625, 5.0) + 0.25) + (fast::clamp(abs((_364 > 0.0) ? (_364 + _263) : fast::max(0.0, (_364 * _274) + _263)), 0.1500000059604644775390625, 5.0) + 0.25)) + (fast::clamp(abs((_387 > 0.0) ? (_387 + _263) : fast::max(0.0, (_387 * _274) + _263)), 0.1500000059604644775390625, 5.0) + 0.25)) + (fast::clamp(abs((_410 > 0.0) ? (_410 + _263) : fast::max(0.0, (_410 * _274) + _263)), 0.1500000059604644775390625, 5.0) + 0.25)) + (fast::clamp(abs((_433 > 0.0) ? (_433 + _263) : fast::max(0.0, (_433 * _274) + _263)), 0.1500000059604644775390625, 5.0) + 0.25)) * 0.20000000298023223876953125;
}
else
{
_445 = 1.0;
}
_448 = fma(-_445, 0.20000000298023223876953125, 1.0);
_448 = 1.0 - (_445 * 0.20000000298023223876953125);
}
else
{

View File

@ -162,23 +162,23 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
if (_Globals.OutputDevice >= 3u)
{
float3 _591 = powr(_577, float3(0.0126833133399486541748046875));
_599 = powr(fast::max(float3(0.0), _591 - float3(0.8359375)) / fma(float3(-18.6875), _591, float3(18.8515625)), float3(6.277394771575927734375)) * float3(10000.0);
_599 = powr(fast::max(float3(0.0), _591 - float3(0.8359375)) / (float3(18.8515625) - (float3(18.6875) * _591)), float3(6.277394771575927734375)) * float3(10000.0);
}
else
{
_599 = fma(exp2((_577 - float3(0.434017598628997802734375)) * float3(14.0)), float3(0.180000007152557373046875), float3(-0.00266771926544606685638427734375));
_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));
float _633 = fma(1.2864121856637211749330163002014e-07 * _Globals.WhiteTemp, _Globals.WhiteTemp, fma(0.00015411825734190642833709716796875, _Globals.WhiteTemp, 0.860117733478546142578125)) / fma(7.0814513719597016461193561553955e-07 * _Globals.WhiteTemp, _Globals.WhiteTemp, fma(0.0008424202096648514270782470703125, _Globals.WhiteTemp, 1.0));
float _644 = fma(4.2048167614439080352894961833954e-08 * _Globals.WhiteTemp, _Globals.WhiteTemp, fma(4.25, _Globals.WhiteTemp, 0.317398726940155029296875)) / fma(1.6145605741257895715534687042236e-07 * _Globals.WhiteTemp, _Globals.WhiteTemp, fma(-2.8974181986995972692966461181641e-05, _Globals.WhiteTemp, 1.0));
float _649 = fma(2.0, _633, _644 * (-8.0)) + 4.0;
float _633 = ((0.860117733478546142578125 + (0.00015411825734190642833709716796875 * _Globals.WhiteTemp)) + ((1.2864121856637211749330163002014e-07 * _Globals.WhiteTemp) * _Globals.WhiteTemp)) / ((1.0 + (0.0008424202096648514270782470703125 * _Globals.WhiteTemp)) + ((7.0814513719597016461193561553955e-07 * _Globals.WhiteTemp) * _Globals.WhiteTemp));
float _644 = ((0.317398726940155029296875 + (4.25 * _Globals.WhiteTemp)) + ((4.2048167614439080352894961833954e-08 * _Globals.WhiteTemp) * _Globals.WhiteTemp)) / ((1.0 - (2.8974181986995972692966461181641e-05 * _Globals.WhiteTemp)) + ((1.6145605741257895715534687042236e-07 * _Globals.WhiteTemp) * _Globals.WhiteTemp));
float _649 = ((2.0 * _633) - (8.0 * _644)) + 4.0;
float2 _653 = float2((3.0 * _633) / _649, (2.0 * _644) / _649);
float2 _660 = fast::normalize(float2(_633, _644));
float _665 = fma((-_660.y) * _Globals.WhiteTint, 0.0500000007450580596923828125, _633);
float _669 = fma(_660.x * _Globals.WhiteTint, 0.0500000007450580596923828125, _644);
float _674 = fma(2.0, _665, _669 * (-8.0)) + 4.0;
float2 _680 = select(float2(_616, fma(_616, fma(-3.0, _616, 2.86999988555908203125), -0.2750000059604644775390625)), _653, bool2(_Globals.WhiteTemp < 4000.0)) + (float2((3.0 * _665) / _674, (2.0 * _669) / _674) - _653);
float _665 = _633 + (((-_660.y) * _Globals.WhiteTint) * 0.0500000007450580596923828125);
float _669 = _644 + ((_660.x * _Globals.WhiteTint) * 0.0500000007450580596923828125);
float _674 = ((2.0 * _665) - (8.0 * _669)) + 4.0;
float2 _680 = select(float2(_616, (_616 * (((-3.0) * _616) + 2.86999988555908203125)) - 0.2750000059604644775390625), _653, bool2(_Globals.WhiteTemp < 4000.0)) + (float2((3.0 * _665) / _674, (2.0 * _669) / _674) - _653);
float _683 = fast::max(_680.y, 1.0000000133514319600180897396058e-10);
float3 _697 = float3(_680.x / _683, 1.0, ((1.0 - _680.x) - _680.y) / _683) * float3x3(float3(0.89509999752044677734375, 0.2664000093936920166015625, -0.16140000522136688232421875), float3(-0.750199973583221435546875, 1.71350002288818359375, 0.0366999991238117218017578125), float3(0.0388999991118907928466796875, -0.06849999725818634033203125, 1.02960002422332763671875));
float3 _717 = (_599 * ((float3x3(float3(0.41245639324188232421875, 0.3575761020183563232421875, 0.180437505245208740234375), float3(0.21267290413379669189453125, 0.715152204036712646484375, 0.072175003588199615478515625), float3(0.01933390088379383087158203125, 0.119191996753215789794921875, 0.950304090976715087890625)) * ((float3x3(float3(0.89509999752044677734375, 0.2664000093936920166015625, -0.16140000522136688232421875), float3(-0.750199973583221435546875, 1.71350002288818359375, 0.0366999991238117218017578125), float3(0.0388999991118907928466796875, -0.06849999725818634033203125, 1.02960002422332763671875)) * float3x3(float3(0.941379249095916748046875 / _697.x, 0.0, 0.0), float3(0.0, 1.04043638706207275390625 / _697.y, 0.0), float3(0.0, 0.0, 1.08976650238037109375 / _697.z))) * float3x3(float3(0.986992895603179931640625, -0.14705429971218109130859375, 0.15996269881725311279296875), float3(0.4323053061962127685546875, 0.518360316753387451171875, 0.049291200935840606689453125), float3(-0.00852870009839534759521484375, 0.0400427989661693572998046875, 0.968486726284027099609375)))) * float3x3(float3(3.2409698963165283203125, -1.53738319873809814453125, -0.4986107647418975830078125), float3(-0.96924364566802978515625, 1.875967502593994140625, 0.0415550582110881805419921875), float3(0.055630080401897430419921875, -0.2039769589900970458984375, 1.05697154998779296875)))) * _547;
@ -212,7 +212,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float4 _861 = _Globals.ColorGammaMidtones * _Globals.ColorGamma;
float4 _864 = _Globals.ColorGainMidtones * _Globals.ColorGain;
float4 _867 = _Globals.ColorOffsetMidtones + _Globals.ColorOffset;
float3 _905 = fma(fma(powr(powr(fast::max(float3(0.0), mix(_772, _745, _808.xyz * float3(_808.w))) * float3(5.5555553436279296875), _811.xyz * float3(_811.w)) * float3(0.180000007152557373046875), float3(1.0) / (_814.xyz * float3(_814.w))), _817.xyz * float3(_817.w), _820.xyz + float3(_820.w)), float3(_852), fma(fma(powr(powr(fast::max(float3(0.0), mix(_772, _745, _751.xyz * float3(_751.w))) * float3(5.5555553436279296875), _756.xyz * float3(_756.w)) * float3(0.180000007152557373046875), float3(1.0) / (_761.xyz * float3(_761.w))), _766.xyz * float3(_766.w), _771.xyz + float3(_771.w)), float3(1.0 - _804), fma(powr(powr(fast::max(float3(0.0), mix(_772, _745, _855.xyz * float3(_855.w))) * float3(5.5555553436279296875), _858.xyz * float3(_858.w)) * float3(0.180000007152557373046875), float3(1.0) / (_861.xyz * float3(_861.w))), _864.xyz * float3(_864.w), _867.xyz + float3(_867.w)) * float3(_804 - _852)));
float3 _905 = ((((powr(powr(fast::max(float3(0.0), mix(_772, _745, _751.xyz * float3(_751.w))) * float3(5.5555553436279296875), _756.xyz * float3(_756.w)) * float3(0.180000007152557373046875), float3(1.0) / (_761.xyz * float3(_761.w))) * (_766.xyz * float3(_766.w))) + (_771.xyz + float3(_771.w))) * float3(1.0 - _804)) + (((powr(powr(fast::max(float3(0.0), mix(_772, _745, _855.xyz * float3(_855.w))) * float3(5.5555553436279296875), _858.xyz * float3(_858.w)) * float3(0.180000007152557373046875), float3(1.0) / (_861.xyz * float3(_861.w))) * (_864.xyz * float3(_864.w))) + (_867.xyz + float3(_867.w))) * float3(_804 - _852))) + (((powr(powr(fast::max(float3(0.0), mix(_772, _745, _808.xyz * float3(_808.w))) * float3(5.5555553436279296875), _811.xyz * float3(_811.w)) * float3(0.180000007152557373046875), float3(1.0) / (_814.xyz * float3(_814.w))) * (_817.xyz * float3(_817.w))) + (_820.xyz + float3(_820.w))) * float3(_852));
float3 _906 = _905 * _549;
float3 _914 = float3(_Globals.BlueCorrection);
float3 _916 = mix(_905, _905 * ((_551 * float3x3(float3(0.940437257289886474609375, -0.01830687932670116424560546875, 0.07786960899829864501953125), float3(0.008378696627914905548095703125, 0.82866001129150390625, 0.162961304187774658203125), float3(0.0005471261101774871349334716796875, -0.00088337459601461887359619140625, 1.00033628940582275390625))) * _550), _914) * _551;
@ -221,11 +221,11 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _920 = _916.z;
float _923 = fast::max(fast::max(_917, _918), _920);
float _928 = (fast::max(_923, 1.0000000133514319600180897396058e-10) - fast::max(fast::min(fast::min(_917, _918), _920), 1.0000000133514319600180897396058e-10)) / fast::max(_923, 0.00999999977648258209228515625);
float _941 = fma(1.75, sqrt(fma(_917, _917 - _920, fma(_920, _920 - _918, _918 * (_918 - _917)))), (_920 + _918) + _917);
float _941 = ((_920 + _918) + _917) + (1.75 * sqrt(((_920 * (_920 - _918)) + (_918 * (_918 - _917))) + (_917 * (_917 - _920))));
float _942 = _941 * 0.3333333432674407958984375;
float _943 = _928 - 0.4000000059604644775390625;
float _948 = fast::max(1.0 - abs(_943 * 2.5), 0.0);
float _956 = fma(float(int(sign(_943 * 5.0))), fma(-_948, _948, 1.0), 1.0) * 0.02500000037252902984619140625;
float _956 = (1.0 + (float(int(sign(_943 * 5.0))) * (1.0 - (_948 * _948)))) * 0.02500000037252902984619140625;
float _969;
if (_942 <= 0.053333334624767303466796875)
{
@ -255,7 +255,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
}
else
{
_990 = 57.2957763671875 * precise::atan2(1.73205077648162841796875 * (_974 - _976), fma(2.0, _973, -_974) - _976);
_990 = 57.2957763671875 * precise::atan2(1.73205077648162841796875 * (_974 - _976), ((2.0 * _973) - _974) - _976);
}
float _995;
if (_990 < 0.0)
@ -277,7 +277,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
_1001 = _996;
}
float _1005 = smoothstep(0.0, 1.0, 1.0 - abs(_1001 * 0.01481481455266475677490234375));
_972.x = fma(((_1005 * _1005) * _928) * (0.02999999932944774627685546875 - _973), 0.180000007152557373046875, _973);
_972.x = _973 + ((((_1005 * _1005) * _928) * (0.02999999932944774627685546875 - _973)) * 0.180000007152557373046875);
float3 _1014 = fast::max(float3(0.0), _972 * float3x3(float3(1.45143926143646240234375, -0.236510753631591796875, -0.214928567409515380859375), float3(-0.07655377686023712158203125, 1.1762297153472900390625, -0.0996759235858917236328125), float3(0.0083161480724811553955078125, -0.0060324496589601039886474609375, 0.99771630764007568359375)));
float _1023 = (1.0 + _Globals.FilmBlackClip) - _Globals.FilmToe;
float _1026 = 1.0 + _Globals.FilmWhiteClip;
@ -290,33 +290,32 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
else
{
float _1035 = (0.180000007152557373046875 + _Globals.FilmBlackClip) / _1023;
_1056 = fma(log(_1035 / (2.0 - _1035)) * (-0.5), _1023 / _Globals.FilmSlope, -0.744727432727813720703125);
_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;
float3 _1064 = log(mix(float3(dot(_1014, float3(0.272228717803955078125, 0.674081742763519287109375, 0.053689517080783843994140625))), _1014, float3(0.959999978542327880859375)));
float3 _1067 = _1064 * float3(0.4342944622039794921875);
float3 _1071 = float3(_Globals.FilmSlope) * fma(_1064, float3(0.4342944622039794921875), float3(_1061));
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 = fma(_1064, float3(0.4342944622039794921875), -_1079);
float3 _1080 = _1067 - _1079;
float3 _1092 = float3(_1063);
float3 _1106 = fast::clamp(_1080 / float3(_1063 - _1056), float3(0.0), float3(1.0));
float3 _1110 = select(_1106, float3(1.0) - _1106, bool3(_1063 < _1056));
float3 _1115 = mix(select(_1071, float3(-_Globals.FilmBlackClip) + (float3(2.0 * _1023) / (float3(1.0) + exp(float3(((-2.0) * _Globals.FilmSlope) / _1023) * _1080))), _1067 < _1079), select(_1071, float3(_1026) - (float3(2.0 * _1029) / (float3(1.0) + exp(float3((2.0 * _Globals.FilmSlope) / _1029) * fma(_1064, float3(0.4342944622039794921875), -_1092)))), _1067 > _1092), (fma(float3(-2.0), _1110, float3(3.0)) * _1110) * _1110);
float3 _1115 = mix(select(_1071, float3(-_Globals.FilmBlackClip) + (float3(2.0 * _1023) / (float3(1.0) + exp(float3(((-2.0) * _Globals.FilmSlope) / _1023) * _1080))), _1067 < _1079), select(_1071, float3(_1026) - (float3(2.0 * _1029) / (float3(1.0) + exp(float3((2.0 * _Globals.FilmSlope) / _1029) * (_1067 - _1092)))), _1067 > _1092), ((float3(3.0) - (float3(2.0) * _1110)) * _1110) * _1110);
float3 _1119 = fast::max(float3(0.0), mix(float3(dot(_1115, float3(0.272228717803955078125, 0.674081742763519287109375, 0.053689517080783843994140625))), _1115, float3(0.930000007152557373046875)));
float3 _1189;
if (_Globals.ColorShadow_Tint2.w == 0.0)
{
float3 _1157 = fast::max(float3(0.0), float3(dot(_906, _Globals.ColorMatrixR_ColorCurveCd1.xyz), dot(_906, _Globals.ColorMatrixG_ColorCurveCd3Cm3.xyz), dot(_906, _Globals.ColorMatrixB_ColorCurveCm2.xyz)) * fma(_Globals.ColorShadow_Tint2.xyz, float3(1.0 / (dot(_906, _Globals.ColorShadow_Luma.xyz) + 1.0)), _Globals.ColorShadow_Tint1.xyz));
float3 _1157 = fast::max(float3(0.0), float3(dot(_906, _Globals.ColorMatrixR_ColorCurveCd1.xyz), dot(_906, _Globals.ColorMatrixG_ColorCurveCd3Cm3.xyz), dot(_906, _Globals.ColorMatrixB_ColorCurveCm2.xyz)) * (_Globals.ColorShadow_Tint1.xyz + (_Globals.ColorShadow_Tint2.xyz * float3(1.0 / (dot(_906, _Globals.ColorShadow_Luma.xyz) + 1.0)))));
float3 _1162 = fast::max(float3(0.0), _Globals.ColorCurve_Cm0Cd0_Cd2_Ch0Cm1_Ch3.xxx - _1157);
float3 _1164 = fast::max(_1157, _Globals.ColorCurve_Cm0Cd0_Cd2_Ch0Cm1_Ch3.zzz);
_1189 = fma(fma(_1164, _Globals.ColorCurve_Ch1_Ch2.xxx, _Globals.ColorCurve_Ch1_Ch2.yyy), float3(1.0) / (_1164 + _Globals.ColorCurve_Cm0Cd0_Cd2_Ch0Cm1_Ch3.www), fma(fast::clamp(_1157, _Globals.ColorCurve_Cm0Cd0_Cd2_Ch0Cm1_Ch3.xxx, _Globals.ColorCurve_Cm0Cd0_Cd2_Ch0Cm1_Ch3.zzz), _Globals.ColorMatrixB_ColorCurveCm2.www, fma(_1162 * _Globals.ColorMatrixR_ColorCurveCd1.www, float3(1.0) / (_1162 + _Globals.ColorCurve_Cm0Cd0_Cd2_Ch0Cm1_Ch3.yyy), _Globals.ColorMatrixG_ColorCurveCd3Cm3.www))) - float3(0.00200000009499490261077880859375);
_1189 = ((((_1164 * _Globals.ColorCurve_Ch1_Ch2.xxx) + _Globals.ColorCurve_Ch1_Ch2.yyy) * (float3(1.0) / (_1164 + _Globals.ColorCurve_Cm0Cd0_Cd2_Ch0Cm1_Ch3.www))) + ((fast::clamp(_1157, _Globals.ColorCurve_Cm0Cd0_Cd2_Ch0Cm1_Ch3.xxx, _Globals.ColorCurve_Cm0Cd0_Cd2_Ch0Cm1_Ch3.zzz) * _Globals.ColorMatrixB_ColorCurveCm2.www) + (((_1162 * _Globals.ColorMatrixR_ColorCurveCd1.www) * (float3(1.0) / (_1162 + _Globals.ColorCurve_Cm0Cd0_Cd2_Ch0Cm1_Ch3.yyy))) + _Globals.ColorMatrixG_ColorCurveCd3Cm3.www))) - float3(0.00200000009499490261077880859375);
}
else
{
_1189 = fast::max(float3(0.0), mix(_1119, _1119 * ((_551 * float3x3(float3(1.06317996978759765625, 0.02339559979736804962158203125, -0.08657260239124298095703125), float3(-0.010633699595928192138671875, 1.2063200473785400390625, -0.1956900060176849365234375), float3(-0.0005908869788981974124908447265625, 0.00105247995816171169281005859375, 0.999538004398345947265625))) * _550), _914) * _549);
}
float3 _1218 = powr(fast::max(float3(0.0), mix((fma(float3(_Globals.MappingPolynomial.x), _1189 * _1189, float3(_Globals.MappingPolynomial.y) * _1189) + float3(_Globals.MappingPolynomial.z)) * float3(_Globals.ColorScale), _Globals.OverlayColor.xyz, float3(_Globals.OverlayColor.w))), float3(_Globals.InverseGamma.y));
float3 _1218 = powr(fast::max(float3(0.0), mix((((float3(_Globals.MappingPolynomial.x) * (_1189 * _1189)) + (float3(_Globals.MappingPolynomial.y) * _1189)) + float3(_Globals.MappingPolynomial.z)) * float3(_Globals.ColorScale), _Globals.OverlayColor.xyz, float3(_Globals.OverlayColor.w))), float3(_Globals.InverseGamma.y));
float3 _3001;
if (_Globals.OutputDevice == 0u)
{
@ -329,7 +328,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
_2973 = _2961 * 12.9200000762939453125;
break;
}
_2973 = fma(powr(_2961, 0.4166666567325592041015625), 1.05499994754791259765625, -0.054999999701976776123046875);
_2973 = (powr(_2961, 0.4166666567325592041015625) * 1.05499994754791259765625) - 0.054999999701976776123046875;
break;
}
float _2974 = _1218.y;
@ -341,7 +340,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
_2986 = _2974 * 12.9200000762939453125;
break;
}
_2986 = fma(powr(_2974, 0.4166666567325592041015625), 1.05499994754791259765625, -0.054999999701976776123046875);
_2986 = (powr(_2974, 0.4166666567325592041015625) * 1.05499994754791259765625) - 0.054999999701976776123046875;
break;
}
float _2987 = _1218.z;
@ -353,7 +352,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
_2999 = _2987 * 12.9200000762939453125;
break;
}
_2999 = fma(powr(_2987, 0.4166666567325592041015625), 1.05499994754791259765625, -0.054999999701976776123046875);
_2999 = (powr(_2987, 0.4166666567325592041015625) * 1.05499994754791259765625) - 0.054999999701976776123046875;
break;
}
_3001 = float3(_2973, _2986, _2999);
@ -364,7 +363,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
if (_Globals.OutputDevice == 1u)
{
float3 _2953 = fast::max(float3(6.1035199905745685100555419921875e-05), (_1218 * _547) * _576);
_2960 = fast::min(_2953 * float3(4.5), fma(powr(fast::max(_2953, float3(0.017999999225139617919921875)), float3(0.449999988079071044921875)), float3(1.09899997711181640625), float3(-0.098999999463558197021484375)));
_2960 = fast::min(_2953 * float3(4.5), (powr(fast::max(_2953, float3(0.017999999225139617919921875)), float3(0.449999988079071044921875)) * float3(1.09899997711181640625)) - float3(0.098999999463558197021484375));
}
else
{
@ -377,11 +376,11 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _2104 = _2100.z;
float _2107 = fast::max(fast::max(_2101, _2102), _2104);
float _2112 = (fast::max(_2107, 1.0000000133514319600180897396058e-10) - fast::max(fast::min(fast::min(_2101, _2102), _2104), 1.0000000133514319600180897396058e-10)) / fast::max(_2107, 0.00999999977648258209228515625);
float _2125 = fma(1.75, sqrt(fma(_2101, _2101 - _2104, fma(_2104, _2104 - _2102, _2102 * (_2102 - _2101)))), (_2104 + _2102) + _2101);
float _2125 = ((_2104 + _2102) + _2101) + (1.75 * sqrt(((_2104 * (_2104 - _2102)) + (_2102 * (_2102 - _2101))) + (_2101 * (_2101 - _2104))));
float _2126 = _2125 * 0.3333333432674407958984375;
float _2127 = _2112 - 0.4000000059604644775390625;
float _2132 = fast::max(1.0 - abs(_2127 * 2.5), 0.0);
float _2140 = fma(float(int(sign(_2127 * 5.0))), fma(-_2132, _2132, 1.0), 1.0) * 0.02500000037252902984619140625;
float _2140 = (1.0 + (float(int(sign(_2127 * 5.0))) * (1.0 - (_2132 * _2132)))) * 0.02500000037252902984619140625;
float _2153;
if (_2126 <= 0.053333334624767303466796875)
{
@ -411,7 +410,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
}
else
{
_2174 = 57.2957763671875 * precise::atan2(1.73205077648162841796875 * (_2158 - _2160), fma(2.0, _2157, -_2158) - _2160);
_2174 = 57.2957763671875 * precise::atan2(1.73205077648162841796875 * (_2158 - _2160), ((2.0 * _2157) - _2158) - _2160);
}
float _2179;
if (_2174 < 0.0)
@ -435,29 +434,29 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _2235;
if ((_2185 > (-67.5)) && (_2185 < 67.5))
{
float _2191 = _2185 - (-67.5);
int _2193 = int(_2191 * 0.0296296291053295135498046875);
float _2195 = fma(_2191, 0.0296296291053295135498046875, -float(_2193));
float _2192 = (_2185 - (-67.5)) * 0.0296296291053295135498046875;
int _2193 = int(_2192);
float _2195 = _2192 - float(_2193);
float _2196 = _2195 * _2195;
float _2197 = _2196 * _2195;
float _2234;
if (_2193 == 3)
{
_2234 = fma(_2195, -0.5, fma(_2197, -0.16666667163372039794921875, _2196 * 0.5)) + 0.16666667163372039794921875;
_2234 = (((_2197 * (-0.16666667163372039794921875)) + (_2196 * 0.5)) + (_2195 * (-0.5))) + 0.16666667163372039794921875;
}
else
{
float _2227;
if (_2193 == 2)
{
_2227 = fma(_2197, 0.5, _2196 * (-1.0)) + 0.666666686534881591796875;
_2227 = ((_2197 * 0.5) + (_2196 * (-1.0))) + 0.666666686534881591796875;
}
else
{
float _2222;
if (_2193 == 1)
{
_2222 = fma(_2195, 0.5, fma(_2197, -0.5, _2196 * 0.5)) + 0.16666667163372039794921875;
_2222 = (((_2197 * (-0.5)) + (_2196 * 0.5)) + (_2195 * 0.5)) + 0.16666667163372039794921875;
}
else
{
@ -482,12 +481,11 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
{
_2235 = 0.0;
}
_2156.x = fma(((_2235 * 1.5) * _2112) * (0.02999999932944774627685546875 - _2157), 0.180000007152557373046875, _2157);
_2156.x = _2157 + ((((_2235 * 1.5) * _2112) * (0.02999999932944774627685546875 - _2157)) * 0.180000007152557373046875);
float3 _2245 = fast::clamp(fast::clamp(_2156, 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 _2257 = log((_2249 <= 0.0) ? 6.103515625e-05 : _2249);
float _2258 = _2257 * 0.4342944622039794921875;
float _2258 = log((_2249 <= 0.0) ? 6.103515625e-05 : _2249) * 0.4342944622039794921875;
float _2327;
if (_2258 <= (-5.2601776123046875))
{
@ -498,9 +496,9 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _2324;
if ((_2258 > (-5.2601776123046875)) && (_2258 < (-0.744727432727813720703125)))
{
float _2304 = fma(_2257, 0.4342944622039794921875, 5.2601776123046875);
int _2308 = int(_2304 * 0.6643855571746826171875);
float _2310 = fma(_2304, 0.6643855571746826171875, -float(_2308));
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
@ -508,9 +506,9 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _2303;
if ((_2258 >= (-0.744727432727813720703125)) && (_2258 < 4.673812389373779296875))
{
float _2283 = fma(_2257, 0.4342944622039794921875, 0.744727432727813720703125);
int _2287 = int(_2283 * 0.55365467071533203125);
float _2289 = fma(_2283, 0.55365467071533203125, -float(_2287));
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
@ -522,8 +520,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
_2327 = _2324;
}
float _2330 = _2248.y;
float _2333 = log((_2330 <= 0.0) ? 6.103515625e-05 : _2330);
float _2334 = _2333 * 0.4342944622039794921875;
float _2334 = log((_2330 <= 0.0) ? 6.103515625e-05 : _2330) * 0.4342944622039794921875;
float _2401;
if (_2334 <= (-5.2601776123046875))
{
@ -534,9 +531,9 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _2398;
if ((_2334 > (-5.2601776123046875)) && (_2334 < (-0.744727432727813720703125)))
{
float _2378 = fma(_2333, 0.4342944622039794921875, 5.2601776123046875);
int _2382 = int(_2378 * 0.6643855571746826171875);
float _2384 = fma(_2378, 0.6643855571746826171875, -float(_2382));
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
@ -544,9 +541,9 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _2377;
if ((_2334 >= (-0.744727432727813720703125)) && (_2334 < 4.673812389373779296875))
{
float _2357 = fma(_2333, 0.4342944622039794921875, 0.744727432727813720703125);
int _2361 = int(_2357 * 0.55365467071533203125);
float _2363 = fma(_2357, 0.55365467071533203125, -float(_2361));
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
@ -558,8 +555,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
_2401 = _2398;
}
float _2404 = _2248.z;
float _2407 = log((_2404 <= 0.0) ? 6.103515625e-05 : _2404);
float _2408 = _2407 * 0.4342944622039794921875;
float _2408 = log((_2404 <= 0.0) ? 6.103515625e-05 : _2404) * 0.4342944622039794921875;
float _2475;
if (_2408 <= (-5.2601776123046875))
{
@ -570,9 +566,9 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _2472;
if ((_2408 > (-5.2601776123046875)) && (_2408 < (-0.744727432727813720703125)))
{
float _2452 = fma(_2407, 0.4342944622039794921875, 5.2601776123046875);
int _2456 = int(_2452 * 0.6643855571746826171875);
float _2458 = fma(_2452, 0.6643855571746826171875, -float(_2456));
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
@ -580,9 +576,9 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _2451;
if ((_2408 >= (-0.744727432727813720703125)) && (_2408 < 4.673812389373779296875))
{
float _2431 = fma(_2407, 0.4342944622039794921875, 0.744727432727813720703125);
int _2435 = int(_2431 * 0.55365467071533203125);
float _2437 = fma(_2431, 0.55365467071533203125, -float(_2435));
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
@ -600,14 +596,14 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _2768;
if (_2689 <= (-3.84832763671875))
{
_2768 = fma(_2688, 1.3028833866119384765625, fma(8.86110210418701171875, 1.3028833866119384765625, -4.0));
_2768 = (_2688 * 1.3028833866119384765625) + 7.54498291015625;
}
else
{
float _2760;
if ((_2689 > (-3.84832763671875)) && (_2689 < 0.68124115467071533203125))
{
float _2743 = (7.0 * fma(_2688, 0.4342944622039794921875, 3.84832763671875)) / fma(1.56861579418182373046875, 0.4342944622039794921875, 3.84832763671875);
float _2743 = (_2689 - (-3.84832763671875)) * 1.54540097713470458984375;
int _2744 = int(_2743);
float _2746 = _2743 - float(_2744);
_2760 = dot(float3(_2746 * _2746, _2746, 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(_479[_2744], _479[_2744 + 1], _479[_2744 + 2]));
@ -617,14 +613,14 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _2739;
if ((_2689 >= 0.68124115467071533203125) && (_2689 < 3.65370273590087890625))
{
float _2722 = (7.0 * fma(_2688, 0.4342944622039794921875, -0.68124115467071533203125)) / fma(8.4129619598388671875, 0.4342944622039794921875, -0.68124115467071533203125);
float _2722 = (_2689 - 0.68124115467071533203125) * 2.354950428009033203125;
int _2723 = int(_2722);
float _2725 = _2722 - float(_2723);
_2739 = dot(float3(_2725 * _2725, _2725, 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(_480[_2723], _480[_2723 + 1], _480[_2723 + 2]));
}
else
{
_2739 = fma(_2688, 0.026057668030261993408203125, fma(-8.4129619598388671875, 0.026057668030261993408203125, 3.0));
_2739 = (_2688 * 0.026057668030261993408203125) + 2.78077793121337890625;
}
_2760 = _2739;
}
@ -636,14 +632,14 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _2852;
if (_2775 <= (-3.84832763671875))
{
_2852 = fma(_2774, 1.3028833866119384765625, fma(8.86110210418701171875, 1.3028833866119384765625, -4.0));
_2852 = (_2774 * 1.3028833866119384765625) + 7.54498291015625;
}
else
{
float _2844;
if ((_2775 > (-3.84832763671875)) && (_2775 < 0.68124115467071533203125))
{
float _2827 = (7.0 * fma(_2774, 0.4342944622039794921875, 3.84832763671875)) / fma(1.56861579418182373046875, 0.4342944622039794921875, 3.84832763671875);
float _2827 = (_2775 - (-3.84832763671875)) * 1.54540097713470458984375;
int _2828 = int(_2827);
float _2830 = _2827 - float(_2828);
_2844 = dot(float3(_2830 * _2830, _2830, 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(_479[_2828], _479[_2828 + 1], _479[_2828 + 2]));
@ -653,14 +649,14 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _2823;
if ((_2775 >= 0.68124115467071533203125) && (_2775 < 3.65370273590087890625))
{
float _2806 = (7.0 * fma(_2774, 0.4342944622039794921875, -0.68124115467071533203125)) / fma(8.4129619598388671875, 0.4342944622039794921875, -0.68124115467071533203125);
float _2806 = (_2775 - 0.68124115467071533203125) * 2.354950428009033203125;
int _2807 = int(_2806);
float _2809 = _2806 - float(_2807);
_2823 = dot(float3(_2809 * _2809, _2809, 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(_480[_2807], _480[_2807 + 1], _480[_2807 + 2]));
}
else
{
_2823 = fma(_2774, 0.026057668030261993408203125, fma(-8.4129619598388671875, 0.026057668030261993408203125, 3.0));
_2823 = (_2774 * 0.026057668030261993408203125) + 2.78077793121337890625;
}
_2844 = _2823;
}
@ -672,14 +668,14 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _2936;
if (_2859 <= (-3.84832763671875))
{
_2936 = fma(_2858, 1.3028833866119384765625, fma(8.86110210418701171875, 1.3028833866119384765625, -4.0));
_2936 = (_2858 * 1.3028833866119384765625) + 7.54498291015625;
}
else
{
float _2928;
if ((_2859 > (-3.84832763671875)) && (_2859 < 0.68124115467071533203125))
{
float _2911 = (7.0 * fma(_2858, 0.4342944622039794921875, 3.84832763671875)) / fma(1.56861579418182373046875, 0.4342944622039794921875, 3.84832763671875);
float _2911 = (_2859 - (-3.84832763671875)) * 1.54540097713470458984375;
int _2912 = int(_2911);
float _2914 = _2911 - float(_2912);
_2928 = dot(float3(_2914 * _2914, _2914, 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(_479[_2912], _479[_2912 + 1], _479[_2912 + 2]));
@ -689,21 +685,21 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _2907;
if ((_2859 >= 0.68124115467071533203125) && (_2859 < 3.65370273590087890625))
{
float _2890 = (7.0 * fma(_2858, 0.4342944622039794921875, -0.68124115467071533203125)) / fma(8.4129619598388671875, 0.4342944622039794921875, -0.68124115467071533203125);
float _2890 = (_2859 - 0.68124115467071533203125) * 2.354950428009033203125;
int _2891 = int(_2890);
float _2893 = _2890 - float(_2891);
_2907 = dot(float3(_2893 * _2893, _2893, 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(_480[_2891], _480[_2891 + 1], _480[_2891 + 2]));
}
else
{
_2907 = fma(_2858, 0.026057668030261993408203125, fma(-8.4129619598388671875, 0.026057668030261993408203125, 3.0));
_2907 = (_2858 * 0.026057668030261993408203125) + 2.78077793121337890625;
}
_2928 = _2907;
}
_2936 = _2928;
}
float3 _2942 = powr(((float3(powr(10.0, _2768), powr(10.0, _2852), powr(10.0, _2936)) - float3(3.5073844628641381859779357910156e-05)) * _576) * float3(9.9999997473787516355514526367188e-05), float3(0.1593017578125));
_2950 = powr(fma(float3(18.8515625), _2942, float3(0.8359375)) * (float3(1.0) / fma(float3(18.6875), _2942, float3(1.0))), float3(78.84375));
_2950 = powr((float3(0.8359375) + (float3(18.8515625) * _2942)) * (float3(1.0) / (float3(1.0) + (float3(18.6875) * _2942))), float3(78.84375));
}
else
{
@ -716,11 +712,11 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _1267 = _1263.z;
float _1270 = fast::max(fast::max(_1264, _1265), _1267);
float _1275 = (fast::max(_1270, 1.0000000133514319600180897396058e-10) - fast::max(fast::min(fast::min(_1264, _1265), _1267), 1.0000000133514319600180897396058e-10)) / fast::max(_1270, 0.00999999977648258209228515625);
float _1288 = fma(1.75, sqrt(fma(_1264, _1264 - _1267, fma(_1267, _1267 - _1265, _1265 * (_1265 - _1264)))), (_1267 + _1265) + _1264);
float _1288 = ((_1267 + _1265) + _1264) + (1.75 * sqrt(((_1267 * (_1267 - _1265)) + (_1265 * (_1265 - _1264))) + (_1264 * (_1264 - _1267))));
float _1289 = _1288 * 0.3333333432674407958984375;
float _1290 = _1275 - 0.4000000059604644775390625;
float _1295 = fast::max(1.0 - abs(_1290 * 2.5), 0.0);
float _1303 = fma(float(int(sign(_1290 * 5.0))), fma(-_1295, _1295, 1.0), 1.0) * 0.02500000037252902984619140625;
float _1303 = (1.0 + (float(int(sign(_1290 * 5.0))) * (1.0 - (_1295 * _1295)))) * 0.02500000037252902984619140625;
float _1316;
if (_1289 <= 0.053333334624767303466796875)
{
@ -750,7 +746,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
}
else
{
_1337 = 57.2957763671875 * precise::atan2(1.73205077648162841796875 * (_1321 - _1323), fma(2.0, _1320, -_1321) - _1323);
_1337 = 57.2957763671875 * precise::atan2(1.73205077648162841796875 * (_1321 - _1323), ((2.0 * _1320) - _1321) - _1323);
}
float _1342;
if (_1337 < 0.0)
@ -774,29 +770,29 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _1398;
if ((_1348 > (-67.5)) && (_1348 < 67.5))
{
float _1354 = _1348 - (-67.5);
int _1356 = int(_1354 * 0.0296296291053295135498046875);
float _1358 = fma(_1354, 0.0296296291053295135498046875, -float(_1356));
float _1355 = (_1348 - (-67.5)) * 0.0296296291053295135498046875;
int _1356 = int(_1355);
float _1358 = _1355 - float(_1356);
float _1359 = _1358 * _1358;
float _1360 = _1359 * _1358;
float _1397;
if (_1356 == 3)
{
_1397 = fma(_1358, -0.5, fma(_1360, -0.16666667163372039794921875, _1359 * 0.5)) + 0.16666667163372039794921875;
_1397 = (((_1360 * (-0.16666667163372039794921875)) + (_1359 * 0.5)) + (_1358 * (-0.5))) + 0.16666667163372039794921875;
}
else
{
float _1390;
if (_1356 == 2)
{
_1390 = fma(_1360, 0.5, _1359 * (-1.0)) + 0.666666686534881591796875;
_1390 = ((_1360 * 0.5) + (_1359 * (-1.0))) + 0.666666686534881591796875;
}
else
{
float _1385;
if (_1356 == 1)
{
_1385 = fma(_1358, 0.5, fma(_1360, -0.5, _1359 * 0.5)) + 0.16666667163372039794921875;
_1385 = (((_1360 * (-0.5)) + (_1359 * 0.5)) + (_1358 * 0.5)) + 0.16666667163372039794921875;
}
else
{
@ -821,12 +817,11 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
{
_1398 = 0.0;
}
_1319.x = fma(((_1398 * 1.5) * _1275) * (0.02999999932944774627685546875 - _1320), 0.180000007152557373046875, _1320);
_1319.x = _1320 + ((((_1398 * 1.5) * _1275) * (0.02999999932944774627685546875 - _1320)) * 0.180000007152557373046875);
float3 _1408 = fast::clamp(fast::clamp(_1319, 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 _1420 = log((_1412 <= 0.0) ? 6.103515625e-05 : _1412);
float _1421 = _1420 * 0.4342944622039794921875;
float _1421 = log((_1412 <= 0.0) ? 6.103515625e-05 : _1412) * 0.4342944622039794921875;
float _1490;
if (_1421 <= (-5.2601776123046875))
{
@ -837,9 +832,9 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _1487;
if ((_1421 > (-5.2601776123046875)) && (_1421 < (-0.744727432727813720703125)))
{
float _1467 = fma(_1420, 0.4342944622039794921875, 5.2601776123046875);
int _1471 = int(_1467 * 0.6643855571746826171875);
float _1473 = fma(_1467, 0.6643855571746826171875, -float(_1471));
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
@ -847,9 +842,9 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _1466;
if ((_1421 >= (-0.744727432727813720703125)) && (_1421 < 4.673812389373779296875))
{
float _1446 = fma(_1420, 0.4342944622039794921875, 0.744727432727813720703125);
int _1450 = int(_1446 * 0.55365467071533203125);
float _1452 = fma(_1446, 0.55365467071533203125, -float(_1450));
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
@ -861,8 +856,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
_1490 = _1487;
}
float _1493 = _1411.y;
float _1496 = log((_1493 <= 0.0) ? 6.103515625e-05 : _1493);
float _1497 = _1496 * 0.4342944622039794921875;
float _1497 = log((_1493 <= 0.0) ? 6.103515625e-05 : _1493) * 0.4342944622039794921875;
float _1564;
if (_1497 <= (-5.2601776123046875))
{
@ -873,9 +867,9 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _1561;
if ((_1497 > (-5.2601776123046875)) && (_1497 < (-0.744727432727813720703125)))
{
float _1541 = fma(_1496, 0.4342944622039794921875, 5.2601776123046875);
int _1545 = int(_1541 * 0.6643855571746826171875);
float _1547 = fma(_1541, 0.6643855571746826171875, -float(_1545));
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
@ -883,9 +877,9 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _1540;
if ((_1497 >= (-0.744727432727813720703125)) && (_1497 < 4.673812389373779296875))
{
float _1520 = fma(_1496, 0.4342944622039794921875, 0.744727432727813720703125);
int _1524 = int(_1520 * 0.55365467071533203125);
float _1526 = fma(_1520, 0.55365467071533203125, -float(_1524));
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
@ -897,8 +891,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
_1564 = _1561;
}
float _1567 = _1411.z;
float _1570 = log((_1567 <= 0.0) ? 6.103515625e-05 : _1567);
float _1571 = _1570 * 0.4342944622039794921875;
float _1571 = log((_1567 <= 0.0) ? 6.103515625e-05 : _1567) * 0.4342944622039794921875;
float _1638;
if (_1571 <= (-5.2601776123046875))
{
@ -909,9 +902,9 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _1635;
if ((_1571 > (-5.2601776123046875)) && (_1571 < (-0.744727432727813720703125)))
{
float _1615 = fma(_1570, 0.4342944622039794921875, 5.2601776123046875);
int _1619 = int(_1615 * 0.6643855571746826171875);
float _1621 = fma(_1615, 0.6643855571746826171875, -float(_1619));
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
@ -919,9 +912,9 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _1614;
if ((_1571 >= (-0.744727432727813720703125)) && (_1571 < 4.673812389373779296875))
{
float _1594 = fma(_1570, 0.4342944622039794921875, 0.744727432727813720703125);
int _1598 = int(_1594 * 0.55365467071533203125);
float _1600 = fma(_1594, 0.55365467071533203125, -float(_1598));
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
@ -946,7 +939,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _1923;
if ((_1852 > (-3.84832763671875)) && (_1852 < 0.68124115467071533203125))
{
float _1906 = (7.0 * fma(_1851, 0.4342944622039794921875, 3.84832763671875)) / fma(1.56861579418182373046875, 0.4342944622039794921875, 3.84832763671875);
float _1906 = (_1852 - (-3.84832763671875)) * 1.54540097713470458984375;
int _1907 = int(_1906);
float _1909 = _1906 - float(_1907);
_1923 = dot(float3(_1909 * _1909, _1909, 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(_482[_1907], _482[_1907 + 1], _482[_1907 + 2]));
@ -956,14 +949,14 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _1902;
if ((_1852 >= 0.68124115467071533203125) && (_1852 < 3.761315822601318359375))
{
float _1885 = (7.0 * fma(_1851, 0.4342944622039794921875, -0.68124115467071533203125)) / fma(8.66075038909912109375, 0.4342944622039794921875, -0.68124115467071533203125);
float _1885 = (_1852 - 0.68124115467071533203125) * 2.272672176361083984375;
int _1886 = int(_1885);
float _1888 = _1885 - float(_1886);
_1902 = dot(float3(_1888 * _1888, _1888, 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(_483[_1886], _483[_1886 + 1], _483[_1886 + 2]));
}
else
{
_1902 = fma(_1851, 0.05211533606052398681640625, fma(-8.66075038909912109375, 0.05211533606052398681640625, 3.3010299205780029296875));
_1902 = (_1851 * 0.05211533606052398681640625) + 2.8496720790863037109375;
}
_1923 = _1902;
}
@ -982,7 +975,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _2002;
if ((_1933 > (-3.84832763671875)) && (_1933 < 0.68124115467071533203125))
{
float _1985 = (7.0 * fma(_1932, 0.4342944622039794921875, 3.84832763671875)) / fma(1.56861579418182373046875, 0.4342944622039794921875, 3.84832763671875);
float _1985 = (_1933 - (-3.84832763671875)) * 1.54540097713470458984375;
int _1986 = int(_1985);
float _1988 = _1985 - float(_1986);
_2002 = dot(float3(_1988 * _1988, _1988, 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(_482[_1986], _482[_1986 + 1], _482[_1986 + 2]));
@ -992,14 +985,14 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _1981;
if ((_1933 >= 0.68124115467071533203125) && (_1933 < 3.761315822601318359375))
{
float _1964 = (7.0 * fma(_1932, 0.4342944622039794921875, -0.68124115467071533203125)) / fma(8.66075038909912109375, 0.4342944622039794921875, -0.68124115467071533203125);
float _1964 = (_1933 - 0.68124115467071533203125) * 2.272672176361083984375;
int _1965 = int(_1964);
float _1967 = _1964 - float(_1965);
_1981 = dot(float3(_1967 * _1967, _1967, 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(_483[_1965], _483[_1965 + 1], _483[_1965 + 2]));
}
else
{
_1981 = fma(_1932, 0.05211533606052398681640625, fma(-8.66075038909912109375, 0.05211533606052398681640625, 3.3010299205780029296875));
_1981 = (_1932 * 0.05211533606052398681640625) + 2.8496720790863037109375;
}
_2002 = _1981;
}
@ -1018,7 +1011,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _2081;
if ((_2012 > (-3.84832763671875)) && (_2012 < 0.68124115467071533203125))
{
float _2064 = (7.0 * fma(_2011, 0.4342944622039794921875, 3.84832763671875)) / fma(1.56861579418182373046875, 0.4342944622039794921875, 3.84832763671875);
float _2064 = (_2012 - (-3.84832763671875)) * 1.54540097713470458984375;
int _2065 = int(_2064);
float _2067 = _2064 - float(_2065);
_2081 = dot(float3(_2067 * _2067, _2067, 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(_482[_2065], _482[_2065 + 1], _482[_2065 + 2]));
@ -1028,21 +1021,21 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _2060;
if ((_2012 >= 0.68124115467071533203125) && (_2012 < 3.761315822601318359375))
{
float _2043 = (7.0 * fma(_2011, 0.4342944622039794921875, -0.68124115467071533203125)) / fma(8.66075038909912109375, 0.4342944622039794921875, -0.68124115467071533203125);
float _2043 = (_2012 - 0.68124115467071533203125) * 2.272672176361083984375;
int _2044 = int(_2043);
float _2046 = _2043 - float(_2044);
_2060 = dot(float3(_2046 * _2046, _2046, 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(_483[_2044], _483[_2044 + 1], _483[_2044 + 2]));
}
else
{
_2060 = fma(_2011, 0.05211533606052398681640625, fma(-8.66075038909912109375, 0.05211533606052398681640625, 3.3010299205780029296875));
_2060 = (_2011 * 0.05211533606052398681640625) + 2.8496720790863037109375;
}
_2081 = _2060;
}
_2084 = _2081;
}
float3 _2089 = powr((float3(powr(10.0, _1926), powr(10.0, _2005), powr(10.0, _2084)) * _576) * float3(9.9999997473787516355514526367188e-05), float3(0.1593017578125));
_2097 = powr(fma(float3(18.8515625), _2089, float3(0.8359375)) * (float3(1.0) / fma(float3(18.6875), _2089, float3(1.0))), float3(78.84375));
_2097 = powr((float3(0.8359375) + (float3(18.8515625) * _2089)) * (float3(1.0) / (float3(1.0) + (float3(18.6875) * _2089))), float3(78.84375));
}
else
{
@ -1050,7 +1043,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
if (_Globals.OutputDevice == 7u)
{
float3 _1252 = powr(((_906 * _547) * _576) * float3(9.9999997473787516355514526367188e-05), float3(0.1593017578125));
_1260 = powr(fma(float3(18.8515625), _1252, float3(0.8359375)) * (float3(1.0) / fma(float3(18.6875), _1252, float3(1.0))), float3(78.84375));
_1260 = powr((float3(0.8359375) + (float3(18.8515625) * _1252)) * (float3(1.0) / (float3(1.0) + (float3(18.6875) * _1252))), float3(78.84375));
}
else
{

View File

@ -163,23 +163,23 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
if (_Globals.OutputDevice >= 3u)
{
float3 _617 = powr(_603, float3(0.0126833133399486541748046875));
_625 = powr(fast::max(float3(0.0), _617 - float3(0.8359375)) / fma(float3(-18.6875), _617, float3(18.8515625)), float3(6.277394771575927734375)) * float3(10000.0);
_625 = powr(fast::max(float3(0.0), _617 - float3(0.8359375)) / (float3(18.8515625) - (float3(18.6875) * _617)), float3(6.277394771575927734375)) * float3(10000.0);
}
else
{
_625 = fma(exp2((_603 - float3(0.434017598628997802734375)) * float3(14.0)), float3(0.180000007152557373046875), float3(-0.00266771926544606685638427734375));
_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));
float _659 = fma(1.2864121856637211749330163002014e-07 * _Globals.WhiteTemp, _Globals.WhiteTemp, fma(0.00015411825734190642833709716796875, _Globals.WhiteTemp, 0.860117733478546142578125)) / fma(7.0814513719597016461193561553955e-07 * _Globals.WhiteTemp, _Globals.WhiteTemp, fma(0.0008424202096648514270782470703125, _Globals.WhiteTemp, 1.0));
float _670 = fma(4.2048167614439080352894961833954e-08 * _Globals.WhiteTemp, _Globals.WhiteTemp, fma(4.25, _Globals.WhiteTemp, 0.317398726940155029296875)) / fma(1.6145605741257895715534687042236e-07 * _Globals.WhiteTemp, _Globals.WhiteTemp, fma(-2.8974181986995972692966461181641e-05, _Globals.WhiteTemp, 1.0));
float _675 = fma(2.0, _659, _670 * (-8.0)) + 4.0;
float _659 = ((0.860117733478546142578125 + (0.00015411825734190642833709716796875 * _Globals.WhiteTemp)) + ((1.2864121856637211749330163002014e-07 * _Globals.WhiteTemp) * _Globals.WhiteTemp)) / ((1.0 + (0.0008424202096648514270782470703125 * _Globals.WhiteTemp)) + ((7.0814513719597016461193561553955e-07 * _Globals.WhiteTemp) * _Globals.WhiteTemp));
float _670 = ((0.317398726940155029296875 + (4.25 * _Globals.WhiteTemp)) + ((4.2048167614439080352894961833954e-08 * _Globals.WhiteTemp) * _Globals.WhiteTemp)) / ((1.0 - (2.8974181986995972692966461181641e-05 * _Globals.WhiteTemp)) + ((1.6145605741257895715534687042236e-07 * _Globals.WhiteTemp) * _Globals.WhiteTemp));
float _675 = ((2.0 * _659) - (8.0 * _670)) + 4.0;
float2 _679 = float2((3.0 * _659) / _675, (2.0 * _670) / _675);
float2 _686 = fast::normalize(float2(_659, _670));
float _691 = fma((-_686.y) * _Globals.WhiteTint, 0.0500000007450580596923828125, _659);
float _695 = fma(_686.x * _Globals.WhiteTint, 0.0500000007450580596923828125, _670);
float _700 = fma(2.0, _691, _695 * (-8.0)) + 4.0;
float2 _706 = select(float2(_642, fma(_642, fma(-3.0, _642, 2.86999988555908203125), -0.2750000059604644775390625)), _679, bool2(_Globals.WhiteTemp < 4000.0)) + (float2((3.0 * _691) / _700, (2.0 * _695) / _700) - _679);
float _691 = _659 + (((-_686.y) * _Globals.WhiteTint) * 0.0500000007450580596923828125);
float _695 = _670 + ((_686.x * _Globals.WhiteTint) * 0.0500000007450580596923828125);
float _700 = ((2.0 * _691) - (8.0 * _695)) + 4.0;
float2 _706 = select(float2(_642, (_642 * (((-3.0) * _642) + 2.86999988555908203125)) - 0.2750000059604644775390625), _679, bool2(_Globals.WhiteTemp < 4000.0)) + (float2((3.0 * _691) / _700, (2.0 * _695) / _700) - _679);
float _709 = fast::max(_706.y, 1.0000000133514319600180897396058e-10);
float3 _723 = float3(_706.x / _709, 1.0, ((1.0 - _706.x) - _706.y) / _709) * float3x3(float3(0.89509999752044677734375, 0.2664000093936920166015625, -0.16140000522136688232421875), float3(-0.750199973583221435546875, 1.71350002288818359375, 0.0366999991238117218017578125), float3(0.0388999991118907928466796875, -0.06849999725818634033203125, 1.02960002422332763671875));
float3 _743 = (_625 * ((float3x3(float3(0.41245639324188232421875, 0.3575761020183563232421875, 0.180437505245208740234375), float3(0.21267290413379669189453125, 0.715152204036712646484375, 0.072175003588199615478515625), float3(0.01933390088379383087158203125, 0.119191996753215789794921875, 0.950304090976715087890625)) * ((float3x3(float3(0.89509999752044677734375, 0.2664000093936920166015625, -0.16140000522136688232421875), float3(-0.750199973583221435546875, 1.71350002288818359375, 0.0366999991238117218017578125), float3(0.0388999991118907928466796875, -0.06849999725818634033203125, 1.02960002422332763671875)) * float3x3(float3(0.941379249095916748046875 / _723.x, 0.0, 0.0), float3(0.0, 1.04043638706207275390625 / _723.y, 0.0), float3(0.0, 0.0, 1.08976650238037109375 / _723.z))) * float3x3(float3(0.986992895603179931640625, -0.14705429971218109130859375, 0.15996269881725311279296875), float3(0.4323053061962127685546875, 0.518360316753387451171875, 0.049291200935840606689453125), float3(-0.00852870009839534759521484375, 0.0400427989661693572998046875, 0.968486726284027099609375)))) * float3x3(float3(3.2409698963165283203125, -1.53738319873809814453125, -0.4986107647418975830078125), float3(-0.96924364566802978515625, 1.875967502593994140625, 0.0415550582110881805419921875), float3(0.055630080401897430419921875, -0.2039769589900970458984375, 1.05697154998779296875)))) * _573;
@ -213,7 +213,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float4 _887 = _Globals.ColorGammaMidtones * _Globals.ColorGamma;
float4 _890 = _Globals.ColorGainMidtones * _Globals.ColorGain;
float4 _893 = _Globals.ColorOffsetMidtones + _Globals.ColorOffset;
float3 _931 = fma(fma(powr(powr(fast::max(float3(0.0), mix(_798, _771, _834.xyz * float3(_834.w))) * float3(5.5555553436279296875), _837.xyz * float3(_837.w)) * float3(0.180000007152557373046875), float3(1.0) / (_840.xyz * float3(_840.w))), _843.xyz * float3(_843.w), _846.xyz + float3(_846.w)), float3(_878), fma(fma(powr(powr(fast::max(float3(0.0), mix(_798, _771, _777.xyz * float3(_777.w))) * float3(5.5555553436279296875), _782.xyz * float3(_782.w)) * float3(0.180000007152557373046875), float3(1.0) / (_787.xyz * float3(_787.w))), _792.xyz * float3(_792.w), _797.xyz + float3(_797.w)), float3(1.0 - _830), fma(powr(powr(fast::max(float3(0.0), mix(_798, _771, _881.xyz * float3(_881.w))) * float3(5.5555553436279296875), _884.xyz * float3(_884.w)) * float3(0.180000007152557373046875), float3(1.0) / (_887.xyz * float3(_887.w))), _890.xyz * float3(_890.w), _893.xyz + float3(_893.w)) * float3(_830 - _878)));
float3 _931 = ((((powr(powr(fast::max(float3(0.0), mix(_798, _771, _777.xyz * float3(_777.w))) * float3(5.5555553436279296875), _782.xyz * float3(_782.w)) * float3(0.180000007152557373046875), float3(1.0) / (_787.xyz * float3(_787.w))) * (_792.xyz * float3(_792.w))) + (_797.xyz + float3(_797.w))) * float3(1.0 - _830)) + (((powr(powr(fast::max(float3(0.0), mix(_798, _771, _881.xyz * float3(_881.w))) * float3(5.5555553436279296875), _884.xyz * float3(_884.w)) * float3(0.180000007152557373046875), float3(1.0) / (_887.xyz * float3(_887.w))) * (_890.xyz * float3(_890.w))) + (_893.xyz + float3(_893.w))) * float3(_830 - _878))) + (((powr(powr(fast::max(float3(0.0), mix(_798, _771, _834.xyz * float3(_834.w))) * float3(5.5555553436279296875), _837.xyz * float3(_837.w)) * float3(0.180000007152557373046875), float3(1.0) / (_840.xyz * float3(_840.w))) * (_843.xyz * float3(_843.w))) + (_846.xyz + float3(_846.w))) * float3(_878));
float3 _932 = _931 * _575;
float3 _940 = float3(_Globals.BlueCorrection);
float3 _942 = mix(_931, _931 * ((_577 * float3x3(float3(0.940437257289886474609375, -0.01830687932670116424560546875, 0.07786960899829864501953125), float3(0.008378696627914905548095703125, 0.82866001129150390625, 0.162961304187774658203125), float3(0.0005471261101774871349334716796875, -0.00088337459601461887359619140625, 1.00033628940582275390625))) * _576), _940) * _577;
@ -222,11 +222,11 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _946 = _942.z;
float _949 = fast::max(fast::max(_943, _944), _946);
float _954 = (fast::max(_949, 1.0000000133514319600180897396058e-10) - fast::max(fast::min(fast::min(_943, _944), _946), 1.0000000133514319600180897396058e-10)) / fast::max(_949, 0.00999999977648258209228515625);
float _967 = fma(1.75, sqrt(fma(_943, _943 - _946, fma(_946, _946 - _944, _944 * (_944 - _943)))), (_946 + _944) + _943);
float _967 = ((_946 + _944) + _943) + (1.75 * sqrt(((_946 * (_946 - _944)) + (_944 * (_944 - _943))) + (_943 * (_943 - _946))));
float _968 = _967 * 0.3333333432674407958984375;
float _969 = _954 - 0.4000000059604644775390625;
float _974 = fast::max(1.0 - abs(_969 * 2.5), 0.0);
float _982 = fma(float(int(sign(_969 * 5.0))), fma(-_974, _974, 1.0), 1.0) * 0.02500000037252902984619140625;
float _982 = (1.0 + (float(int(sign(_969 * 5.0))) * (1.0 - (_974 * _974)))) * 0.02500000037252902984619140625;
float _995;
if (_968 <= 0.053333334624767303466796875)
{
@ -256,7 +256,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
}
else
{
_1016 = 57.2957763671875 * precise::atan2(1.73205077648162841796875 * (_1000 - _1002), fma(2.0, _999, -_1000) - _1002);
_1016 = 57.2957763671875 * precise::atan2(1.73205077648162841796875 * (_1000 - _1002), ((2.0 * _999) - _1000) - _1002);
}
float _1021;
if (_1016 < 0.0)
@ -278,7 +278,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
_1027 = _1022;
}
float _1031 = smoothstep(0.0, 1.0, 1.0 - abs(_1027 * 0.01481481455266475677490234375));
_998.x = fma(((_1031 * _1031) * _954) * (0.02999999932944774627685546875 - _999), 0.180000007152557373046875, _999);
_998.x = _999 + ((((_1031 * _1031) * _954) * (0.02999999932944774627685546875 - _999)) * 0.180000007152557373046875);
float3 _1040 = fast::max(float3(0.0), _998 * float3x3(float3(1.45143926143646240234375, -0.236510753631591796875, -0.214928567409515380859375), float3(-0.07655377686023712158203125, 1.1762297153472900390625, -0.0996759235858917236328125), float3(0.0083161480724811553955078125, -0.0060324496589601039886474609375, 0.99771630764007568359375)));
float _1049 = (1.0 + _Globals.FilmBlackClip) - _Globals.FilmToe;
float _1052 = 1.0 + _Globals.FilmWhiteClip;
@ -291,27 +291,26 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
else
{
float _1061 = (0.180000007152557373046875 + _Globals.FilmBlackClip) / _1049;
_1082 = fma(log(_1061 / (2.0 - _1061)) * (-0.5), _1049 / _Globals.FilmSlope, -0.744727432727813720703125);
_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;
float3 _1090 = log(mix(float3(dot(_1040, float3(0.272228717803955078125, 0.674081742763519287109375, 0.053689517080783843994140625))), _1040, float3(0.959999978542327880859375)));
float3 _1093 = _1090 * float3(0.4342944622039794921875);
float3 _1097 = float3(_Globals.FilmSlope) * fma(_1090, float3(0.4342944622039794921875), float3(_1087));
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 = fma(_1090, float3(0.4342944622039794921875), -_1105);
float3 _1106 = _1093 - _1105;
float3 _1118 = float3(_1089);
float3 _1132 = fast::clamp(_1106 / float3(_1089 - _1082), float3(0.0), float3(1.0));
float3 _1136 = select(_1132, float3(1.0) - _1132, bool3(_1089 < _1082));
float3 _1141 = mix(select(_1097, float3(-_Globals.FilmBlackClip) + (float3(2.0 * _1049) / (float3(1.0) + exp(float3(((-2.0) * _Globals.FilmSlope) / _1049) * _1106))), _1093 < _1105), select(_1097, float3(_1052) - (float3(2.0 * _1055) / (float3(1.0) + exp(float3((2.0 * _Globals.FilmSlope) / _1055) * fma(_1090, float3(0.4342944622039794921875), -_1118)))), _1093 > _1118), (fma(float3(-2.0), _1136, float3(3.0)) * _1136) * _1136);
float3 _1141 = mix(select(_1097, float3(-_Globals.FilmBlackClip) + (float3(2.0 * _1049) / (float3(1.0) + exp(float3(((-2.0) * _Globals.FilmSlope) / _1049) * _1106))), _1093 < _1105), select(_1097, float3(_1052) - (float3(2.0 * _1055) / (float3(1.0) + exp(float3((2.0 * _Globals.FilmSlope) / _1055) * (_1093 - _1118)))), _1093 > _1118), ((float3(3.0) - (float3(2.0) * _1136)) * _1136) * _1136);
float3 _1145 = fast::max(float3(0.0), mix(float3(dot(_1141, float3(0.272228717803955078125, 0.674081742763519287109375, 0.053689517080783843994140625))), _1141, float3(0.930000007152557373046875)));
float3 _1215;
if (_Globals.ColorShadow_Tint2.w == 0.0)
{
float3 _1183 = fast::max(float3(0.0), float3(dot(_932, _Globals.ColorMatrixR_ColorCurveCd1.xyz), dot(_932, _Globals.ColorMatrixG_ColorCurveCd3Cm3.xyz), dot(_932, _Globals.ColorMatrixB_ColorCurveCm2.xyz)) * fma(_Globals.ColorShadow_Tint2.xyz, float3(1.0 / (dot(_932, _Globals.ColorShadow_Luma.xyz) + 1.0)), _Globals.ColorShadow_Tint1.xyz));
float3 _1183 = fast::max(float3(0.0), float3(dot(_932, _Globals.ColorMatrixR_ColorCurveCd1.xyz), dot(_932, _Globals.ColorMatrixG_ColorCurveCd3Cm3.xyz), dot(_932, _Globals.ColorMatrixB_ColorCurveCm2.xyz)) * (_Globals.ColorShadow_Tint1.xyz + (_Globals.ColorShadow_Tint2.xyz * float3(1.0 / (dot(_932, _Globals.ColorShadow_Luma.xyz) + 1.0)))));
float3 _1188 = fast::max(float3(0.0), _Globals.ColorCurve_Cm0Cd0_Cd2_Ch0Cm1_Ch3.xxx - _1183);
float3 _1190 = fast::max(_1183, _Globals.ColorCurve_Cm0Cd0_Cd2_Ch0Cm1_Ch3.zzz);
_1215 = fma(fma(_1190, _Globals.ColorCurve_Ch1_Ch2.xxx, _Globals.ColorCurve_Ch1_Ch2.yyy), float3(1.0) / (_1190 + _Globals.ColorCurve_Cm0Cd0_Cd2_Ch0Cm1_Ch3.www), fma(fast::clamp(_1183, _Globals.ColorCurve_Cm0Cd0_Cd2_Ch0Cm1_Ch3.xxx, _Globals.ColorCurve_Cm0Cd0_Cd2_Ch0Cm1_Ch3.zzz), _Globals.ColorMatrixB_ColorCurveCm2.www, fma(_1188 * _Globals.ColorMatrixR_ColorCurveCd1.www, float3(1.0) / (_1188 + _Globals.ColorCurve_Cm0Cd0_Cd2_Ch0Cm1_Ch3.yyy), _Globals.ColorMatrixG_ColorCurveCd3Cm3.www))) - float3(0.00200000009499490261077880859375);
_1215 = ((((_1190 * _Globals.ColorCurve_Ch1_Ch2.xxx) + _Globals.ColorCurve_Ch1_Ch2.yyy) * (float3(1.0) / (_1190 + _Globals.ColorCurve_Cm0Cd0_Cd2_Ch0Cm1_Ch3.www))) + ((fast::clamp(_1183, _Globals.ColorCurve_Cm0Cd0_Cd2_Ch0Cm1_Ch3.xxx, _Globals.ColorCurve_Cm0Cd0_Cd2_Ch0Cm1_Ch3.zzz) * _Globals.ColorMatrixB_ColorCurveCm2.www) + (((_1188 * _Globals.ColorMatrixR_ColorCurveCd1.www) * (float3(1.0) / (_1188 + _Globals.ColorCurve_Cm0Cd0_Cd2_Ch0Cm1_Ch3.yyy))) + _Globals.ColorMatrixG_ColorCurveCd3Cm3.www))) - float3(0.00200000009499490261077880859375);
}
else
{
@ -327,7 +326,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
_1229 = _1217 * 12.9200000762939453125;
break;
}
_1229 = fma(powr(_1217, 0.4166666567325592041015625), 1.05499994754791259765625, -0.054999999701976776123046875);
_1229 = (powr(_1217, 0.4166666567325592041015625) * 1.05499994754791259765625) - 0.054999999701976776123046875;
break;
}
float _1230 = _1216.y;
@ -339,7 +338,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
_1242 = _1230 * 12.9200000762939453125;
break;
}
_1242 = fma(powr(_1230, 0.4166666567325592041015625), 1.05499994754791259765625, -0.054999999701976776123046875);
_1242 = (powr(_1230, 0.4166666567325592041015625) * 1.05499994754791259765625) - 0.054999999701976776123046875;
break;
}
float _1243 = _1216.z;
@ -351,57 +350,54 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
_1255 = _1243 * 12.9200000762939453125;
break;
}
_1255 = fma(powr(_1243, 0.4166666567325592041015625), 1.05499994754791259765625, -0.054999999701976776123046875);
_1255 = (powr(_1243, 0.4166666567325592041015625) * 1.05499994754791259765625) - 0.054999999701976776123046875;
break;
}
float3 _1256 = float3(_1229, _1242, _1255);
float3 _1258 = fma(_1256, float3(0.9375), float3(0.03125));
float _1270 = fma(_1258.z, 16.0, -0.5);
float3 _1258 = (_1256 * float3(0.9375)) + float3(0.03125);
float _1270 = (_1258.z * 16.0) - 0.5;
float _1271 = floor(_1270);
float _1274 = _1258.x + _1271;
float _1275 = (_1258.x + _1271) * 0.0625;
float _1276 = _1258.y;
float4 _1279 = Texture1.sample(Texture1Sampler, float2(_1274 * 0.0625, _1276));
float4 _1283 = Texture1.sample(Texture1Sampler, float2(fma(_1274, 0.0625, 0.0625), _1276));
float3 _1289 = fast::max(float3(6.1035199905745685100555419921875e-05), fma(float3(_Globals.LUTWeights[0].x), _1256, float3(_Globals.LUTWeights[1].x) * mix(_1279, _1283, float4(_1270 - _1271)).xyz));
float3 _1295 = select(_1289 * float3(0.077399380505084991455078125), powr(fma(_1289, float3(0.94786727428436279296875), float3(0.0521326996386051177978515625)), float3(2.400000095367431640625)), _1289 > float3(0.040449999272823333740234375));
float3 _1324 = powr(fast::max(float3(0.0), mix((fma(float3(_Globals.MappingPolynomial.x), _1295 * _1295, float3(_Globals.MappingPolynomial.y) * _1295) + float3(_Globals.MappingPolynomial.z)) * _Globals.ColorScale, _Globals.OverlayColor.xyz, float3(_Globals.OverlayColor.w))), float3(_Globals.InverseGamma.y));
float4 _1279 = Texture1.sample(Texture1Sampler, float2(_1275, _1276));
float4 _1283 = Texture1.sample(Texture1Sampler, float2(_1275 + 0.0625, _1276));
float3 _1289 = fast::max(float3(6.1035199905745685100555419921875e-05), (float3(_Globals.LUTWeights[0].x) * _1256) + (float3(_Globals.LUTWeights[1].x) * mix(_1279, _1283, float4(_1270 - _1271)).xyz));
float3 _1295 = select(_1289 * float3(0.077399380505084991455078125), powr((_1289 * float3(0.94786727428436279296875)) + float3(0.0521326996386051177978515625), float3(2.400000095367431640625)), _1289 > float3(0.040449999272823333740234375));
float3 _1324 = powr(fast::max(float3(0.0), mix((((float3(_Globals.MappingPolynomial.x) * (_1295 * _1295)) + (float3(_Globals.MappingPolynomial.y) * _1295)) + float3(_Globals.MappingPolynomial.z)) * _Globals.ColorScale, _Globals.OverlayColor.xyz, float3(_Globals.OverlayColor.w))), float3(_Globals.InverseGamma.y));
float3 _3103;
if (_Globals.OutputDevice == 0u)
{
float _3063 = _1324.x;
float _3075;
for (;;)
{
if (_3063 < 0.00313066993840038776397705078125)
if (_1324.x < 0.00313066993840038776397705078125)
{
_3075 = _3063 * 12.9200000762939453125;
_3075 = _1324.x * 12.9200000762939453125;
break;
}
_3075 = fma(powr(_3063, 0.4166666567325592041015625), 1.05499994754791259765625, -0.054999999701976776123046875);
_3075 = (powr(_1324.x, 0.4166666567325592041015625) * 1.05499994754791259765625) - 0.054999999701976776123046875;
break;
}
float _3076 = _1324.y;
float _3088;
for (;;)
{
if (_3076 < 0.00313066993840038776397705078125)
if (_1324.y < 0.00313066993840038776397705078125)
{
_3088 = _3076 * 12.9200000762939453125;
_3088 = _1324.y * 12.9200000762939453125;
break;
}
_3088 = fma(powr(_3076, 0.4166666567325592041015625), 1.05499994754791259765625, -0.054999999701976776123046875);
_3088 = (powr(_1324.y, 0.4166666567325592041015625) * 1.05499994754791259765625) - 0.054999999701976776123046875;
break;
}
float _3089 = _1324.z;
float _3101;
for (;;)
{
if (_3089 < 0.00313066993840038776397705078125)
if (_1324.z < 0.00313066993840038776397705078125)
{
_3101 = _3089 * 12.9200000762939453125;
_3101 = _1324.z * 12.9200000762939453125;
break;
}
_3101 = fma(powr(_3089, 0.4166666567325592041015625), 1.05499994754791259765625, -0.054999999701976776123046875);
_3101 = (powr(_1324.z, 0.4166666567325592041015625) * 1.05499994754791259765625) - 0.054999999701976776123046875;
break;
}
_3103 = float3(_3075, _3088, _3101);
@ -412,7 +408,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
if (_Globals.OutputDevice == 1u)
{
float3 _3055 = fast::max(float3(6.1035199905745685100555419921875e-05), (_1324 * _573) * _602);
_3062 = fast::min(_3055 * float3(4.5), fma(powr(fast::max(_3055, float3(0.017999999225139617919921875)), float3(0.449999988079071044921875)), float3(1.09899997711181640625), float3(-0.098999999463558197021484375)));
_3062 = fast::min(_3055 * float3(4.5), (powr(fast::max(_3055, float3(0.017999999225139617919921875)), float3(0.449999988079071044921875)) * float3(1.09899997711181640625)) - float3(0.098999999463558197021484375));
}
else
{
@ -425,11 +421,11 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _2208 = _2204.z;
float _2211 = fast::max(fast::max(_2205, _2206), _2208);
float _2216 = (fast::max(_2211, 1.0000000133514319600180897396058e-10) - fast::max(fast::min(fast::min(_2205, _2206), _2208), 1.0000000133514319600180897396058e-10)) / fast::max(_2211, 0.00999999977648258209228515625);
float _2229 = fma(1.75, sqrt(fma(_2205, _2205 - _2208, fma(_2208, _2208 - _2206, _2206 * (_2206 - _2205)))), (_2208 + _2206) + _2205);
float _2229 = ((_2208 + _2206) + _2205) + (1.75 * sqrt(((_2208 * (_2208 - _2206)) + (_2206 * (_2206 - _2205))) + (_2205 * (_2205 - _2208))));
float _2230 = _2229 * 0.3333333432674407958984375;
float _2231 = _2216 - 0.4000000059604644775390625;
float _2236 = fast::max(1.0 - abs(_2231 * 2.5), 0.0);
float _2244 = fma(float(int(sign(_2231 * 5.0))), fma(-_2236, _2236, 1.0), 1.0) * 0.02500000037252902984619140625;
float _2244 = (1.0 + (float(int(sign(_2231 * 5.0))) * (1.0 - (_2236 * _2236)))) * 0.02500000037252902984619140625;
float _2257;
if (_2230 <= 0.053333334624767303466796875)
{
@ -459,7 +455,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
}
else
{
_2278 = 57.2957763671875 * precise::atan2(1.73205077648162841796875 * (_2262 - _2264), fma(2.0, _2261, -_2262) - _2264);
_2278 = 57.2957763671875 * precise::atan2(1.73205077648162841796875 * (_2262 - _2264), ((2.0 * _2261) - _2262) - _2264);
}
float _2283;
if (_2278 < 0.0)
@ -483,29 +479,29 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _2339;
if ((_2289 > (-67.5)) && (_2289 < 67.5))
{
float _2295 = _2289 - (-67.5);
int _2297 = int(_2295 * 0.0296296291053295135498046875);
float _2299 = fma(_2295, 0.0296296291053295135498046875, -float(_2297));
float _2296 = (_2289 - (-67.5)) * 0.0296296291053295135498046875;
int _2297 = int(_2296);
float _2299 = _2296 - float(_2297);
float _2300 = _2299 * _2299;
float _2301 = _2300 * _2299;
float _2338;
if (_2297 == 3)
{
_2338 = fma(_2299, -0.5, fma(_2301, -0.16666667163372039794921875, _2300 * 0.5)) + 0.16666667163372039794921875;
_2338 = (((_2301 * (-0.16666667163372039794921875)) + (_2300 * 0.5)) + (_2299 * (-0.5))) + 0.16666667163372039794921875;
}
else
{
float _2331;
if (_2297 == 2)
{
_2331 = fma(_2301, 0.5, _2300 * (-1.0)) + 0.666666686534881591796875;
_2331 = ((_2301 * 0.5) + (_2300 * (-1.0))) + 0.666666686534881591796875;
}
else
{
float _2326;
if (_2297 == 1)
{
_2326 = fma(_2299, 0.5, fma(_2301, -0.5, _2300 * 0.5)) + 0.16666667163372039794921875;
_2326 = (((_2301 * (-0.5)) + (_2300 * 0.5)) + (_2299 * 0.5)) + 0.16666667163372039794921875;
}
else
{
@ -530,12 +526,11 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
{
_2339 = 0.0;
}
_2260.x = fma(((_2339 * 1.5) * _2216) * (0.02999999932944774627685546875 - _2261), 0.180000007152557373046875, _2261);
_2260.x = _2261 + ((((_2339 * 1.5) * _2216) * (0.02999999932944774627685546875 - _2261)) * 0.180000007152557373046875);
float3 _2349 = fast::clamp(fast::clamp(_2260, 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 _2361 = log((_2353 <= 0.0) ? 6.103515625e-05 : _2353);
float _2362 = _2361 * 0.4342944622039794921875;
float _2362 = log((_2353 <= 0.0) ? 6.103515625e-05 : _2353) * 0.4342944622039794921875;
float _2431;
if (_2362 <= (-5.2601776123046875))
{
@ -546,9 +541,9 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _2428;
if ((_2362 > (-5.2601776123046875)) && (_2362 < (-0.744727432727813720703125)))
{
float _2408 = fma(_2361, 0.4342944622039794921875, 5.2601776123046875);
int _2412 = int(_2408 * 0.6643855571746826171875);
float _2414 = fma(_2408, 0.6643855571746826171875, -float(_2412));
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
@ -556,9 +551,9 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _2407;
if ((_2362 >= (-0.744727432727813720703125)) && (_2362 < 4.673812389373779296875))
{
float _2387 = fma(_2361, 0.4342944622039794921875, 0.744727432727813720703125);
int _2391 = int(_2387 * 0.55365467071533203125);
float _2393 = fma(_2387, 0.55365467071533203125, -float(_2391));
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
@ -570,8 +565,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
_2431 = _2428;
}
float _2434 = _2352.y;
float _2437 = log((_2434 <= 0.0) ? 6.103515625e-05 : _2434);
float _2438 = _2437 * 0.4342944622039794921875;
float _2438 = log((_2434 <= 0.0) ? 6.103515625e-05 : _2434) * 0.4342944622039794921875;
float _2505;
if (_2438 <= (-5.2601776123046875))
{
@ -582,9 +576,9 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _2502;
if ((_2438 > (-5.2601776123046875)) && (_2438 < (-0.744727432727813720703125)))
{
float _2482 = fma(_2437, 0.4342944622039794921875, 5.2601776123046875);
int _2486 = int(_2482 * 0.6643855571746826171875);
float _2488 = fma(_2482, 0.6643855571746826171875, -float(_2486));
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
@ -592,9 +586,9 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _2481;
if ((_2438 >= (-0.744727432727813720703125)) && (_2438 < 4.673812389373779296875))
{
float _2461 = fma(_2437, 0.4342944622039794921875, 0.744727432727813720703125);
int _2465 = int(_2461 * 0.55365467071533203125);
float _2467 = fma(_2461, 0.55365467071533203125, -float(_2465));
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
@ -606,8 +600,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
_2505 = _2502;
}
float _2508 = _2352.z;
float _2511 = log((_2508 <= 0.0) ? 6.103515625e-05 : _2508);
float _2512 = _2511 * 0.4342944622039794921875;
float _2512 = log((_2508 <= 0.0) ? 6.103515625e-05 : _2508) * 0.4342944622039794921875;
float _2579;
if (_2512 <= (-5.2601776123046875))
{
@ -618,9 +611,9 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _2576;
if ((_2512 > (-5.2601776123046875)) && (_2512 < (-0.744727432727813720703125)))
{
float _2556 = fma(_2511, 0.4342944622039794921875, 5.2601776123046875);
int _2560 = int(_2556 * 0.6643855571746826171875);
float _2562 = fma(_2556, 0.6643855571746826171875, -float(_2560));
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
@ -628,9 +621,9 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _2555;
if ((_2512 >= (-0.744727432727813720703125)) && (_2512 < 4.673812389373779296875))
{
float _2535 = fma(_2511, 0.4342944622039794921875, 0.744727432727813720703125);
int _2539 = int(_2535 * 0.55365467071533203125);
float _2541 = fma(_2535, 0.55365467071533203125, -float(_2539));
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
@ -648,14 +641,14 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _2870;
if (_2791 <= (-3.84832763671875))
{
_2870 = fma(_2790, 1.3028833866119384765625, fma(8.86110210418701171875, 1.3028833866119384765625, -4.0));
_2870 = (_2790 * 1.3028833866119384765625) + 7.54498291015625;
}
else
{
float _2862;
if ((_2791 > (-3.84832763671875)) && (_2791 < 0.68124115467071533203125))
{
float _2845 = (7.0 * fma(_2790, 0.4342944622039794921875, 3.84832763671875)) / fma(1.56861579418182373046875, 0.4342944622039794921875, 3.84832763671875);
float _2845 = (_2791 - (-3.84832763671875)) * 1.54540097713470458984375;
int _2846 = int(_2845);
float _2848 = _2845 - float(_2846);
_2862 = dot(float3(_2848 * _2848, _2848, 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(_503[_2846], _503[_2846 + 1], _503[_2846 + 2]));
@ -665,14 +658,14 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _2841;
if ((_2791 >= 0.68124115467071533203125) && (_2791 < 3.65370273590087890625))
{
float _2824 = (7.0 * fma(_2790, 0.4342944622039794921875, -0.68124115467071533203125)) / fma(8.4129619598388671875, 0.4342944622039794921875, -0.68124115467071533203125);
float _2824 = (_2791 - 0.68124115467071533203125) * 2.354950428009033203125;
int _2825 = int(_2824);
float _2827 = _2824 - float(_2825);
_2841 = dot(float3(_2827 * _2827, _2827, 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(_504[_2825], _504[_2825 + 1], _504[_2825 + 2]));
}
else
{
_2841 = fma(_2790, 0.026057668030261993408203125, fma(-8.4129619598388671875, 0.026057668030261993408203125, 3.0));
_2841 = (_2790 * 0.026057668030261993408203125) + 2.78077793121337890625;
}
_2862 = _2841;
}
@ -684,14 +677,14 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _2954;
if (_2877 <= (-3.84832763671875))
{
_2954 = fma(_2876, 1.3028833866119384765625, fma(8.86110210418701171875, 1.3028833866119384765625, -4.0));
_2954 = (_2876 * 1.3028833866119384765625) + 7.54498291015625;
}
else
{
float _2946;
if ((_2877 > (-3.84832763671875)) && (_2877 < 0.68124115467071533203125))
{
float _2929 = (7.0 * fma(_2876, 0.4342944622039794921875, 3.84832763671875)) / fma(1.56861579418182373046875, 0.4342944622039794921875, 3.84832763671875);
float _2929 = (_2877 - (-3.84832763671875)) * 1.54540097713470458984375;
int _2930 = int(_2929);
float _2932 = _2929 - float(_2930);
_2946 = dot(float3(_2932 * _2932, _2932, 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(_503[_2930], _503[_2930 + 1], _503[_2930 + 2]));
@ -701,14 +694,14 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _2925;
if ((_2877 >= 0.68124115467071533203125) && (_2877 < 3.65370273590087890625))
{
float _2908 = (7.0 * fma(_2876, 0.4342944622039794921875, -0.68124115467071533203125)) / fma(8.4129619598388671875, 0.4342944622039794921875, -0.68124115467071533203125);
float _2908 = (_2877 - 0.68124115467071533203125) * 2.354950428009033203125;
int _2909 = int(_2908);
float _2911 = _2908 - float(_2909);
_2925 = dot(float3(_2911 * _2911, _2911, 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(_504[_2909], _504[_2909 + 1], _504[_2909 + 2]));
}
else
{
_2925 = fma(_2876, 0.026057668030261993408203125, fma(-8.4129619598388671875, 0.026057668030261993408203125, 3.0));
_2925 = (_2876 * 0.026057668030261993408203125) + 2.78077793121337890625;
}
_2946 = _2925;
}
@ -720,14 +713,14 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _3038;
if (_2961 <= (-3.84832763671875))
{
_3038 = fma(_2960, 1.3028833866119384765625, fma(8.86110210418701171875, 1.3028833866119384765625, -4.0));
_3038 = (_2960 * 1.3028833866119384765625) + 7.54498291015625;
}
else
{
float _3030;
if ((_2961 > (-3.84832763671875)) && (_2961 < 0.68124115467071533203125))
{
float _3013 = (7.0 * fma(_2960, 0.4342944622039794921875, 3.84832763671875)) / fma(1.56861579418182373046875, 0.4342944622039794921875, 3.84832763671875);
float _3013 = (_2961 - (-3.84832763671875)) * 1.54540097713470458984375;
int _3014 = int(_3013);
float _3016 = _3013 - float(_3014);
_3030 = dot(float3(_3016 * _3016, _3016, 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(_503[_3014], _503[_3014 + 1], _503[_3014 + 2]));
@ -737,21 +730,21 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _3009;
if ((_2961 >= 0.68124115467071533203125) && (_2961 < 3.65370273590087890625))
{
float _2992 = (7.0 * fma(_2960, 0.4342944622039794921875, -0.68124115467071533203125)) / fma(8.4129619598388671875, 0.4342944622039794921875, -0.68124115467071533203125);
float _2992 = (_2961 - 0.68124115467071533203125) * 2.354950428009033203125;
int _2993 = int(_2992);
float _2995 = _2992 - float(_2993);
_3009 = dot(float3(_2995 * _2995, _2995, 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(_504[_2993], _504[_2993 + 1], _504[_2993 + 2]));
}
else
{
_3009 = fma(_2960, 0.026057668030261993408203125, fma(-8.4129619598388671875, 0.026057668030261993408203125, 3.0));
_3009 = (_2960 * 0.026057668030261993408203125) + 2.78077793121337890625;
}
_3030 = _3009;
}
_3038 = _3030;
}
float3 _3044 = powr(((float3(powr(10.0, _2870), powr(10.0, _2954), powr(10.0, _3038)) - float3(3.5073844628641381859779357910156e-05)) * _602) * float3(9.9999997473787516355514526367188e-05), float3(0.1593017578125));
_3052 = powr(fma(float3(18.8515625), _3044, float3(0.8359375)) * (float3(1.0) / fma(float3(18.6875), _3044, float3(1.0))), float3(78.84375));
_3052 = powr((float3(0.8359375) + (float3(18.8515625) * _3044)) * (float3(1.0) / (float3(1.0) + (float3(18.6875) * _3044))), float3(78.84375));
}
else
{
@ -764,11 +757,11 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _1373 = _1369.z;
float _1376 = fast::max(fast::max(_1370, _1371), _1373);
float _1381 = (fast::max(_1376, 1.0000000133514319600180897396058e-10) - fast::max(fast::min(fast::min(_1370, _1371), _1373), 1.0000000133514319600180897396058e-10)) / fast::max(_1376, 0.00999999977648258209228515625);
float _1394 = fma(1.75, sqrt(fma(_1370, _1370 - _1373, fma(_1373, _1373 - _1371, _1371 * (_1371 - _1370)))), (_1373 + _1371) + _1370);
float _1394 = ((_1373 + _1371) + _1370) + (1.75 * sqrt(((_1373 * (_1373 - _1371)) + (_1371 * (_1371 - _1370))) + (_1370 * (_1370 - _1373))));
float _1395 = _1394 * 0.3333333432674407958984375;
float _1396 = _1381 - 0.4000000059604644775390625;
float _1401 = fast::max(1.0 - abs(_1396 * 2.5), 0.0);
float _1409 = fma(float(int(sign(_1396 * 5.0))), fma(-_1401, _1401, 1.0), 1.0) * 0.02500000037252902984619140625;
float _1409 = (1.0 + (float(int(sign(_1396 * 5.0))) * (1.0 - (_1401 * _1401)))) * 0.02500000037252902984619140625;
float _1422;
if (_1395 <= 0.053333334624767303466796875)
{
@ -798,7 +791,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
}
else
{
_1443 = 57.2957763671875 * precise::atan2(1.73205077648162841796875 * (_1427 - _1429), fma(2.0, _1426, -_1427) - _1429);
_1443 = 57.2957763671875 * precise::atan2(1.73205077648162841796875 * (_1427 - _1429), ((2.0 * _1426) - _1427) - _1429);
}
float _1448;
if (_1443 < 0.0)
@ -822,29 +815,29 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _1504;
if ((_1454 > (-67.5)) && (_1454 < 67.5))
{
float _1460 = _1454 - (-67.5);
int _1462 = int(_1460 * 0.0296296291053295135498046875);
float _1464 = fma(_1460, 0.0296296291053295135498046875, -float(_1462));
float _1461 = (_1454 - (-67.5)) * 0.0296296291053295135498046875;
int _1462 = int(_1461);
float _1464 = _1461 - float(_1462);
float _1465 = _1464 * _1464;
float _1466 = _1465 * _1464;
float _1503;
if (_1462 == 3)
{
_1503 = fma(_1464, -0.5, fma(_1466, -0.16666667163372039794921875, _1465 * 0.5)) + 0.16666667163372039794921875;
_1503 = (((_1466 * (-0.16666667163372039794921875)) + (_1465 * 0.5)) + (_1464 * (-0.5))) + 0.16666667163372039794921875;
}
else
{
float _1496;
if (_1462 == 2)
{
_1496 = fma(_1466, 0.5, _1465 * (-1.0)) + 0.666666686534881591796875;
_1496 = ((_1466 * 0.5) + (_1465 * (-1.0))) + 0.666666686534881591796875;
}
else
{
float _1491;
if (_1462 == 1)
{
_1491 = fma(_1464, 0.5, fma(_1466, -0.5, _1465 * 0.5)) + 0.16666667163372039794921875;
_1491 = (((_1466 * (-0.5)) + (_1465 * 0.5)) + (_1464 * 0.5)) + 0.16666667163372039794921875;
}
else
{
@ -869,12 +862,11 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
{
_1504 = 0.0;
}
_1425.x = fma(((_1504 * 1.5) * _1381) * (0.02999999932944774627685546875 - _1426), 0.180000007152557373046875, _1426);
_1425.x = _1426 + ((((_1504 * 1.5) * _1381) * (0.02999999932944774627685546875 - _1426)) * 0.180000007152557373046875);
float3 _1514 = fast::clamp(fast::clamp(_1425, 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 _1526 = log((_1518 <= 0.0) ? 6.103515625e-05 : _1518);
float _1527 = _1526 * 0.4342944622039794921875;
float _1527 = log((_1518 <= 0.0) ? 6.103515625e-05 : _1518) * 0.4342944622039794921875;
float _1596;
if (_1527 <= (-5.2601776123046875))
{
@ -885,9 +877,9 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _1593;
if ((_1527 > (-5.2601776123046875)) && (_1527 < (-0.744727432727813720703125)))
{
float _1573 = fma(_1526, 0.4342944622039794921875, 5.2601776123046875);
int _1577 = int(_1573 * 0.6643855571746826171875);
float _1579 = fma(_1573, 0.6643855571746826171875, -float(_1577));
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
@ -895,9 +887,9 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _1572;
if ((_1527 >= (-0.744727432727813720703125)) && (_1527 < 4.673812389373779296875))
{
float _1552 = fma(_1526, 0.4342944622039794921875, 0.744727432727813720703125);
int _1556 = int(_1552 * 0.55365467071533203125);
float _1558 = fma(_1552, 0.55365467071533203125, -float(_1556));
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
@ -909,8 +901,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
_1596 = _1593;
}
float _1599 = _1517.y;
float _1602 = log((_1599 <= 0.0) ? 6.103515625e-05 : _1599);
float _1603 = _1602 * 0.4342944622039794921875;
float _1603 = log((_1599 <= 0.0) ? 6.103515625e-05 : _1599) * 0.4342944622039794921875;
float _1670;
if (_1603 <= (-5.2601776123046875))
{
@ -921,9 +912,9 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _1667;
if ((_1603 > (-5.2601776123046875)) && (_1603 < (-0.744727432727813720703125)))
{
float _1647 = fma(_1602, 0.4342944622039794921875, 5.2601776123046875);
int _1651 = int(_1647 * 0.6643855571746826171875);
float _1653 = fma(_1647, 0.6643855571746826171875, -float(_1651));
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
@ -931,9 +922,9 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _1646;
if ((_1603 >= (-0.744727432727813720703125)) && (_1603 < 4.673812389373779296875))
{
float _1626 = fma(_1602, 0.4342944622039794921875, 0.744727432727813720703125);
int _1630 = int(_1626 * 0.55365467071533203125);
float _1632 = fma(_1626, 0.55365467071533203125, -float(_1630));
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
@ -945,8 +936,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
_1670 = _1667;
}
float _1673 = _1517.z;
float _1676 = log((_1673 <= 0.0) ? 6.103515625e-05 : _1673);
float _1677 = _1676 * 0.4342944622039794921875;
float _1677 = log((_1673 <= 0.0) ? 6.103515625e-05 : _1673) * 0.4342944622039794921875;
float _1744;
if (_1677 <= (-5.2601776123046875))
{
@ -957,9 +947,9 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _1741;
if ((_1677 > (-5.2601776123046875)) && (_1677 < (-0.744727432727813720703125)))
{
float _1721 = fma(_1676, 0.4342944622039794921875, 5.2601776123046875);
int _1725 = int(_1721 * 0.6643855571746826171875);
float _1727 = fma(_1721, 0.6643855571746826171875, -float(_1725));
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
@ -967,9 +957,9 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _1720;
if ((_1677 >= (-0.744727432727813720703125)) && (_1677 < 4.673812389373779296875))
{
float _1700 = fma(_1676, 0.4342944622039794921875, 0.744727432727813720703125);
int _1704 = int(_1700 * 0.55365467071533203125);
float _1706 = fma(_1700, 0.55365467071533203125, -float(_1704));
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
@ -994,7 +984,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _2027;
if ((_1956 > (-3.84832763671875)) && (_1956 < 0.68124115467071533203125))
{
float _2010 = (7.0 * fma(_1955, 0.4342944622039794921875, 3.84832763671875)) / fma(1.56861579418182373046875, 0.4342944622039794921875, 3.84832763671875);
float _2010 = (_1956 - (-3.84832763671875)) * 1.54540097713470458984375;
int _2011 = int(_2010);
float _2013 = _2010 - float(_2011);
_2027 = dot(float3(_2013 * _2013, _2013, 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(_506[_2011], _506[_2011 + 1], _506[_2011 + 2]));
@ -1004,14 +994,14 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _2006;
if ((_1956 >= 0.68124115467071533203125) && (_1956 < 3.761315822601318359375))
{
float _1989 = (7.0 * fma(_1955, 0.4342944622039794921875, -0.68124115467071533203125)) / fma(8.66075038909912109375, 0.4342944622039794921875, -0.68124115467071533203125);
float _1989 = (_1956 - 0.68124115467071533203125) * 2.272672176361083984375;
int _1990 = int(_1989);
float _1992 = _1989 - float(_1990);
_2006 = dot(float3(_1992 * _1992, _1992, 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(_507[_1990], _507[_1990 + 1], _507[_1990 + 2]));
}
else
{
_2006 = fma(_1955, 0.05211533606052398681640625, fma(-8.66075038909912109375, 0.05211533606052398681640625, 3.3010299205780029296875));
_2006 = (_1955 * 0.05211533606052398681640625) + 2.8496720790863037109375;
}
_2027 = _2006;
}
@ -1030,7 +1020,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _2106;
if ((_2037 > (-3.84832763671875)) && (_2037 < 0.68124115467071533203125))
{
float _2089 = (7.0 * fma(_2036, 0.4342944622039794921875, 3.84832763671875)) / fma(1.56861579418182373046875, 0.4342944622039794921875, 3.84832763671875);
float _2089 = (_2037 - (-3.84832763671875)) * 1.54540097713470458984375;
int _2090 = int(_2089);
float _2092 = _2089 - float(_2090);
_2106 = dot(float3(_2092 * _2092, _2092, 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(_506[_2090], _506[_2090 + 1], _506[_2090 + 2]));
@ -1040,14 +1030,14 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _2085;
if ((_2037 >= 0.68124115467071533203125) && (_2037 < 3.761315822601318359375))
{
float _2068 = (7.0 * fma(_2036, 0.4342944622039794921875, -0.68124115467071533203125)) / fma(8.66075038909912109375, 0.4342944622039794921875, -0.68124115467071533203125);
float _2068 = (_2037 - 0.68124115467071533203125) * 2.272672176361083984375;
int _2069 = int(_2068);
float _2071 = _2068 - float(_2069);
_2085 = dot(float3(_2071 * _2071, _2071, 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(_507[_2069], _507[_2069 + 1], _507[_2069 + 2]));
}
else
{
_2085 = fma(_2036, 0.05211533606052398681640625, fma(-8.66075038909912109375, 0.05211533606052398681640625, 3.3010299205780029296875));
_2085 = (_2036 * 0.05211533606052398681640625) + 2.8496720790863037109375;
}
_2106 = _2085;
}
@ -1066,7 +1056,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _2185;
if ((_2116 > (-3.84832763671875)) && (_2116 < 0.68124115467071533203125))
{
float _2168 = (7.0 * fma(_2115, 0.4342944622039794921875, 3.84832763671875)) / fma(1.56861579418182373046875, 0.4342944622039794921875, 3.84832763671875);
float _2168 = (_2116 - (-3.84832763671875)) * 1.54540097713470458984375;
int _2169 = int(_2168);
float _2171 = _2168 - float(_2169);
_2185 = dot(float3(_2171 * _2171, _2171, 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(_506[_2169], _506[_2169 + 1], _506[_2169 + 2]));
@ -1076,21 +1066,21 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
float _2164;
if ((_2116 >= 0.68124115467071533203125) && (_2116 < 3.761315822601318359375))
{
float _2147 = (7.0 * fma(_2115, 0.4342944622039794921875, -0.68124115467071533203125)) / fma(8.66075038909912109375, 0.4342944622039794921875, -0.68124115467071533203125);
float _2147 = (_2116 - 0.68124115467071533203125) * 2.272672176361083984375;
int _2148 = int(_2147);
float _2150 = _2147 - float(_2148);
_2164 = dot(float3(_2150 * _2150, _2150, 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(_507[_2148], _507[_2148 + 1], _507[_2148 + 2]));
}
else
{
_2164 = fma(_2115, 0.05211533606052398681640625, fma(-8.66075038909912109375, 0.05211533606052398681640625, 3.3010299205780029296875));
_2164 = (_2115 * 0.05211533606052398681640625) + 2.8496720790863037109375;
}
_2185 = _2164;
}
_2188 = _2185;
}
float3 _2193 = powr((float3(powr(10.0, _2030), powr(10.0, _2109), powr(10.0, _2188)) * _602) * float3(9.9999997473787516355514526367188e-05), float3(0.1593017578125));
_2201 = powr(fma(float3(18.8515625), _2193, float3(0.8359375)) * (float3(1.0) / fma(float3(18.6875), _2193, float3(1.0))), float3(78.84375));
_2201 = powr((float3(0.8359375) + (float3(18.8515625) * _2193)) * (float3(1.0) / (float3(1.0) + (float3(18.6875) * _2193))), float3(78.84375));
}
else
{
@ -1098,7 +1088,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_Globals& _Globa
if (_Globals.OutputDevice == 7u)
{
float3 _1358 = powr(((_932 * _573) * _602) * float3(9.9999997473787516355514526367188e-05), float3(0.1593017578125));
_1366 = powr(fma(float3(18.8515625), _1358, float3(0.8359375)) * (float3(1.0) / fma(float3(18.6875), _1358, float3(1.0))), float3(78.84375));
_1366 = powr((float3(0.8359375) + (float3(18.8515625) * _1358)) * (float3(1.0) / (float3(1.0) + (float3(18.6875) * _1358))), float3(78.84375));
}
else
{

View File

@ -491,19 +491,19 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_View& View [[bu
float4 _202;
if (_165)
{
_202 = TranslucentBasePass_Shared_Fog_IntegratedLightScattering.sample(View_SharedBilinearClampedSampler, float3(fma((_172.xy / float2(_173)).xy, float2(0.5, -0.5), float2(0.5)), (log2(fma(_173, View.View_VolumetricFogGridZParams[0], View.View_VolumetricFogGridZParams[1])) * View.View_VolumetricFogGridZParams[2]) * View.View_VolumetricFogInvGridSize[2]), level(0.0));
_202 = TranslucentBasePass_Shared_Fog_IntegratedLightScattering.sample(View_SharedBilinearClampedSampler, float3(((_172.xy / float2(_173)).xy * float2(0.5, -0.5)) + float2(0.5), (log2((_173 * View.View_VolumetricFogGridZParams[0]) + View.View_VolumetricFogGridZParams[1]) * View.View_VolumetricFogGridZParams[2]) * View.View_VolumetricFogInvGridSize[2]), level(0.0));
}
else
{
_202 = float4(0.0, 0.0, 0.0, 1.0);
}
_215 = float4(fma(in.in_var_TEXCOORD7.xyz, float3(_202.w), _202.xyz), _202.w * in.in_var_TEXCOORD7.w);
_215 = float4(_202.xyz + (in.in_var_TEXCOORD7.xyz * float3(_202.w)), _202.w * in.in_var_TEXCOORD7.w);
}
else
{
_215 = in.in_var_TEXCOORD7;
}
float3 _216 = fast::max(Material.Material_VectorExpressions[1].xyz * float3(fma(1.0 + dot(float3(-0.2857142984867095947265625, -0.4285714328289031982421875, 0.857142865657806396484375), fast::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) * fast::normalize(fma(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), fast::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) * fast::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)
{
@ -523,7 +523,7 @@ fragment main0_out main0(main0_in in [[stage_in]], constant type_View& View [[bu
{
_246 = _216;
}
float4 _255 = float4(fma(_246, float3(_215.w), _215.xyz), _108);
float4 _255 = float4((_246 * float3(_215.w)) + _215.xyz, _108);
_255.w = 1.0;
float4 _268;
uint _269;

View File

@ -202,8 +202,8 @@ fragment main0_out main0(constant type_View& View [[buffer(0)]], constant type_G
main0_out out = {};
float4 _67 = _RESERVED_IDENTIFIER_FIXUP_gl_LastFragData;
float _68 = _67.w;
float4 _82 = _Globals.ScreenToShadowMatrix * float4((fma(gl_FragCoord.xy, View.View_BufferSizeAndInvSize.zw, -View.View_ScreenPositionScaleBias.wz) / View.View_ScreenPositionScaleBias.xy) * float2(_68), _68, 1.0);
float _118 = fast::clamp(fma(fast::clamp(fma(ShadowDepthTexture.sample(ShadowDepthTextureSampler, (((_82.xyz / float3(_82.w)).xy * _Globals.ShadowTileOffsetAndSize.zw).xy + _Globals.ShadowTileOffsetAndSize.xy).xy, level(0.0)).xxx, float3(_Globals.SoftTransitionScale.z), -float3(fma(fast::min(_82.z, 0.999989986419677734375), _Globals.SoftTransitionScale.z, -1.0))), float3(0.0), float3(1.0)).x - 0.5, _Globals.ShadowSharpen, 0.5), 0.0, 1.0);
float4 _82 = _Globals.ScreenToShadowMatrix * float4((((gl_FragCoord.xy * View.View_BufferSizeAndInvSize.zw) - View.View_ScreenPositionScaleBias.wz) / View.View_ScreenPositionScaleBias.xy) * float2(_68), _68, 1.0);
float _118 = fast::clamp(((fast::clamp((ShadowDepthTexture.sample(ShadowDepthTextureSampler, (((_82.xyz / float3(_82.w)).xy * _Globals.ShadowTileOffsetAndSize.zw).xy + _Globals.ShadowTileOffsetAndSize.xy).xy, level(0.0)).xxx * float3(_Globals.SoftTransitionScale.z)) - float3((fast::min(_82.z, 0.999989986419677734375) * _Globals.SoftTransitionScale.z) - 1.0), float3(0.0), float3(1.0)).x - 0.5) * _Globals.ShadowSharpen) + 0.5, 0.0, 1.0);
float3 _127 = mix(_Globals.ModulatedShadowColor.xyz, float3(1.0), float3(mix(1.0, _118 * _118, _Globals.ShadowFadeFraction)));
float4 _128 = float4(_127.x, _127.y, _127.z, _58.w);
_128.w = 0.0;

View File

@ -202,8 +202,8 @@ fragment main0_out main0(constant type_View& View [[buffer(0)]], constant type_G
main0_out out = {};
float4 _67 = _RESERVED_IDENTIFIER_FIXUP_gl_LastFragData;
float _68 = _67.w;
float4 _82 = _Globals.ScreenToShadowMatrix * float4((fma(gl_FragCoord.xy, View.View_BufferSizeAndInvSize.zw, -View.View_ScreenPositionScaleBias.wz) / View.View_ScreenPositionScaleBias.xy) * float2(_68), _68, 1.0);
float _118 = fast::clamp(fma(fast::clamp(fma(ShadowDepthTexture.sample(ShadowDepthTextureSampler, (((_82.xyz / float3(_82.w)).xy * _Globals.ShadowTileOffsetAndSize.zw).xy + _Globals.ShadowTileOffsetAndSize.xy).xy, level(0.0)).xxx, float3(_Globals.SoftTransitionScale.z), -float3(fma(fast::min(_82.z, 0.999989986419677734375), _Globals.SoftTransitionScale.z, -1.0))), float3(0.0), float3(1.0)).x - 0.5, _Globals.ShadowSharpen, 0.5), 0.0, 1.0);
float4 _82 = _Globals.ScreenToShadowMatrix * float4((((gl_FragCoord.xy * View.View_BufferSizeAndInvSize.zw) - View.View_ScreenPositionScaleBias.wz) / View.View_ScreenPositionScaleBias.xy) * float2(_68), _68, 1.0);
float _118 = fast::clamp(((fast::clamp((ShadowDepthTexture.sample(ShadowDepthTextureSampler, (((_82.xyz / float3(_82.w)).xy * _Globals.ShadowTileOffsetAndSize.zw).xy + _Globals.ShadowTileOffsetAndSize.xy).xy, level(0.0)).xxx * float3(_Globals.SoftTransitionScale.z)) - float3((fast::min(_82.z, 0.999989986419677734375) * _Globals.SoftTransitionScale.z) - 1.0), float3(0.0), float3(1.0)).x - 0.5) * _Globals.ShadowSharpen) + 0.5, 0.0, 1.0);
float3 _127 = mix(_Globals.ModulatedShadowColor.xyz, float3(1.0), float3(mix(1.0, _118 * _118, _Globals.ShadowFadeFraction)));
float4 _128 = float4(_127.x, _127.y, _127.z, _58.w);
_128.w = 0.0;

View File

@ -44,34 +44,34 @@ fragment main0_out main0(main0_in in [[stage_in]], constant spvDescriptorSetBuff
uint _83 = _77.x;
float2 _91 = float2(float(_83), float(((*spvDescriptorSet0._Globals).ShadowTileListGroupSize.y - 1u) - _78));
float2 _93 = float2((*spvDescriptorSet0._Globals).ShadowTileListGroupSize);
float2 _96 = fma(_91 / _93, float2(2.0), float2(-1.0));
float2 _100 = fma((_91 + float2(1.0)) / _93, float2(2.0), float2(-1.0));
float2 _96 = ((_91 / _93) * float2(2.0)) - float2(1.0);
float2 _100 = (((_91 + float2(1.0)) / _93) * float2(2.0)) - float2(1.0);
float3 _101 = float3(_100.x, _100.y, _70.z);
_101.z = 1.0;
uint _103 = in.in_var_TEXCOORD0 * 5u;
uint _107 = _103 + 1u;
if (all((*spvDescriptorSet0.CulledObjectBoxBounds)._m0[_107].xy > _96.xy) && all((*spvDescriptorSet0.CulledObjectBoxBounds)._m0[_103].xyz < _101))
{
float3 _120 = (*spvDescriptorSet0.CulledObjectBoxBounds)._m0[_103].xyz + (*spvDescriptorSet0.CulledObjectBoxBounds)._m0[_107].xyz;
float3 _121 = float3(0.5) * ((*spvDescriptorSet0.CulledObjectBoxBounds)._m0[_103].xyz + (*spvDescriptorSet0.CulledObjectBoxBounds)._m0[_107].xyz);
float _122 = _96.x;
float _123 = _96.y;
float _126 = _100.x;
float _129 = _100.y;
float3 _166 = fma(float3(-0.5), _120, float3(_122, _123, -1000.0));
float3 _166 = float3(_122, _123, -1000.0) - _121;
float3 _170 = float3(dot(_166, (*spvDescriptorSet0.CulledObjectBoxBounds)._m0[_103 + 2u].xyz), dot(_166, (*spvDescriptorSet0.CulledObjectBoxBounds)._m0[_103 + 3u].xyz), dot(_166, (*spvDescriptorSet0.CulledObjectBoxBounds)._m0[_103 + 4u].xyz));
float3 _189 = fma(float3(-0.5), _120, float3(_126, _123, -1000.0));
float3 _189 = float3(_126, _123, -1000.0) - _121;
float3 _193 = float3(dot(_189, (*spvDescriptorSet0.CulledObjectBoxBounds)._m0[_103 + 2u].xyz), dot(_189, (*spvDescriptorSet0.CulledObjectBoxBounds)._m0[_103 + 3u].xyz), dot(_189, (*spvDescriptorSet0.CulledObjectBoxBounds)._m0[_103 + 4u].xyz));
float3 _205 = fma(float3(-0.5), _120, float3(_122, _129, -1000.0));
float3 _205 = float3(_122, _129, -1000.0) - _121;
float3 _209 = float3(dot(_205, (*spvDescriptorSet0.CulledObjectBoxBounds)._m0[_103 + 2u].xyz), dot(_205, (*spvDescriptorSet0.CulledObjectBoxBounds)._m0[_103 + 3u].xyz), dot(_205, (*spvDescriptorSet0.CulledObjectBoxBounds)._m0[_103 + 4u].xyz));
float3 _221 = fma(float3(-0.5), _120, float3(_126, _129, -1000.0));
float3 _221 = float3(_126, _129, -1000.0) - _121;
float3 _225 = float3(dot(_221, (*spvDescriptorSet0.CulledObjectBoxBounds)._m0[_103 + 2u].xyz), dot(_221, (*spvDescriptorSet0.CulledObjectBoxBounds)._m0[_103 + 3u].xyz), dot(_221, (*spvDescriptorSet0.CulledObjectBoxBounds)._m0[_103 + 4u].xyz));
float3 _237 = fma(float3(-0.5), _120, float3(_122, _123, 1.0));
float3 _237 = float3(_122, _123, 1.0) - _121;
float3 _241 = float3(dot(_237, (*spvDescriptorSet0.CulledObjectBoxBounds)._m0[_103 + 2u].xyz), dot(_237, (*spvDescriptorSet0.CulledObjectBoxBounds)._m0[_103 + 3u].xyz), dot(_237, (*spvDescriptorSet0.CulledObjectBoxBounds)._m0[_103 + 4u].xyz));
float3 _253 = fma(float3(-0.5), _120, float3(_126, _123, 1.0));
float3 _253 = float3(_126, _123, 1.0) - _121;
float3 _257 = float3(dot(_253, (*spvDescriptorSet0.CulledObjectBoxBounds)._m0[_103 + 2u].xyz), dot(_253, (*spvDescriptorSet0.CulledObjectBoxBounds)._m0[_103 + 3u].xyz), dot(_253, (*spvDescriptorSet0.CulledObjectBoxBounds)._m0[_103 + 4u].xyz));
float3 _269 = fma(float3(-0.5), _120, float3(_122, _129, 1.0));
float3 _269 = float3(_122, _129, 1.0) - _121;
float3 _273 = float3(dot(_269, (*spvDescriptorSet0.CulledObjectBoxBounds)._m0[_103 + 2u].xyz), dot(_269, (*spvDescriptorSet0.CulledObjectBoxBounds)._m0[_103 + 3u].xyz), dot(_269, (*spvDescriptorSet0.CulledObjectBoxBounds)._m0[_103 + 4u].xyz));
float3 _285 = fma(float3(-0.5), _120, float3(_126, _129, 1.0));
float3 _285 = float3(_126, _129, 1.0) - _121;
float3 _289 = float3(dot(_285, (*spvDescriptorSet0.CulledObjectBoxBounds)._m0[_103 + 2u].xyz), dot(_285, (*spvDescriptorSet0.CulledObjectBoxBounds)._m0[_103 + 3u].xyz), dot(_285, (*spvDescriptorSet0.CulledObjectBoxBounds)._m0[_103 + 4u].xyz));
if (all(fast::min(fast::min(fast::min(fast::min(fast::min(fast::min(fast::min(fast::min(float3(500000.0), _170), _193), _209), _225), _241), _257), _273), _289) < float3(1.0)) && all(fast::max(fast::max(fast::max(fast::max(fast::max(fast::max(fast::max(fast::max(float3(-500000.0), _170), _193), _209), _225), _241), _257), _273), _289) > float3(-1.0)))
{

View File

@ -36,34 +36,34 @@ fragment main0_out main0(main0_in in [[stage_in]], const device type_StructuredB
uint _83 = _77.x;
float2 _91 = float2(float(_83), float((_Globals.ShadowTileListGroupSize.y - 1u) - _78));
float2 _93 = float2(_Globals.ShadowTileListGroupSize);
float2 _96 = fma(_91 / _93, float2(2.0), float2(-1.0));
float2 _100 = fma((_91 + float2(1.0)) / _93, float2(2.0), float2(-1.0));
float2 _96 = ((_91 / _93) * float2(2.0)) - float2(1.0);
float2 _100 = (((_91 + float2(1.0)) / _93) * float2(2.0)) - float2(1.0);
float3 _101 = float3(_100.x, _100.y, _70.z);
_101.z = 1.0;
uint _103 = in.in_var_TEXCOORD0 * 5u;
uint _107 = _103 + 1u;
if (all(CulledObjectBoxBounds._m0[_107].xy > _96.xy) && all(CulledObjectBoxBounds._m0[_103].xyz < _101))
{
float3 _120 = CulledObjectBoxBounds._m0[_103].xyz + CulledObjectBoxBounds._m0[_107].xyz;
float3 _121 = float3(0.5) * (CulledObjectBoxBounds._m0[_103].xyz + CulledObjectBoxBounds._m0[_107].xyz);
float _122 = _96.x;
float _123 = _96.y;
float _126 = _100.x;
float _129 = _100.y;
float3 _166 = fma(float3(-0.5), _120, float3(_122, _123, -1000.0));
float3 _166 = float3(_122, _123, -1000.0) - _121;
float3 _170 = float3(dot(_166, CulledObjectBoxBounds._m0[_103 + 2u].xyz), dot(_166, CulledObjectBoxBounds._m0[_103 + 3u].xyz), dot(_166, CulledObjectBoxBounds._m0[_103 + 4u].xyz));
float3 _189 = fma(float3(-0.5), _120, float3(_126, _123, -1000.0));
float3 _189 = float3(_126, _123, -1000.0) - _121;
float3 _193 = float3(dot(_189, CulledObjectBoxBounds._m0[_103 + 2u].xyz), dot(_189, CulledObjectBoxBounds._m0[_103 + 3u].xyz), dot(_189, CulledObjectBoxBounds._m0[_103 + 4u].xyz));
float3 _205 = fma(float3(-0.5), _120, float3(_122, _129, -1000.0));
float3 _205 = float3(_122, _129, -1000.0) - _121;
float3 _209 = float3(dot(_205, CulledObjectBoxBounds._m0[_103 + 2u].xyz), dot(_205, CulledObjectBoxBounds._m0[_103 + 3u].xyz), dot(_205, CulledObjectBoxBounds._m0[_103 + 4u].xyz));
float3 _221 = fma(float3(-0.5), _120, float3(_126, _129, -1000.0));
float3 _221 = float3(_126, _129, -1000.0) - _121;
float3 _225 = float3(dot(_221, CulledObjectBoxBounds._m0[_103 + 2u].xyz), dot(_221, CulledObjectBoxBounds._m0[_103 + 3u].xyz), dot(_221, CulledObjectBoxBounds._m0[_103 + 4u].xyz));
float3 _237 = fma(float3(-0.5), _120, float3(_122, _123, 1.0));
float3 _237 = float3(_122, _123, 1.0) - _121;
float3 _241 = float3(dot(_237, CulledObjectBoxBounds._m0[_103 + 2u].xyz), dot(_237, CulledObjectBoxBounds._m0[_103 + 3u].xyz), dot(_237, CulledObjectBoxBounds._m0[_103 + 4u].xyz));
float3 _253 = fma(float3(-0.5), _120, float3(_126, _123, 1.0));
float3 _253 = float3(_126, _123, 1.0) - _121;
float3 _257 = float3(dot(_253, CulledObjectBoxBounds._m0[_103 + 2u].xyz), dot(_253, CulledObjectBoxBounds._m0[_103 + 3u].xyz), dot(_253, CulledObjectBoxBounds._m0[_103 + 4u].xyz));
float3 _269 = fma(float3(-0.5), _120, float3(_122, _129, 1.0));
float3 _269 = float3(_122, _129, 1.0) - _121;
float3 _273 = float3(dot(_269, CulledObjectBoxBounds._m0[_103 + 2u].xyz), dot(_269, CulledObjectBoxBounds._m0[_103 + 3u].xyz), dot(_269, CulledObjectBoxBounds._m0[_103 + 4u].xyz));
float3 _285 = fma(float3(-0.5), _120, float3(_126, _129, 1.0));
float3 _285 = float3(_126, _129, 1.0) - _121;
float3 _289 = float3(dot(_285, CulledObjectBoxBounds._m0[_103 + 2u].xyz), dot(_285, CulledObjectBoxBounds._m0[_103 + 3u].xyz), dot(_285, CulledObjectBoxBounds._m0[_103 + 4u].xyz));
if (all(fast::min(fast::min(fast::min(fast::min(fast::min(fast::min(fast::min(fast::min(float3(500000.0), _170), _193), _209), _225), _241), _257), _273), _289) < float3(1.0)) && all(fast::max(fast::max(fast::max(fast::max(fast::max(fast::max(fast::max(fast::max(float3(-500000.0), _170), _193), _209), _225), _241), _257), _273), _289) > float3(-1.0)))
{

View File

@ -37,34 +37,34 @@ fragment main0_out main0(main0_in in [[stage_in]], constant uint* spvBufferSizeC
uint _83 = _77.x;
float2 _91 = float2(float(_83), float((_Globals.ShadowTileListGroupSize.y - 1u) - _78));
float2 _93 = float2(_Globals.ShadowTileListGroupSize);
float2 _96 = fma(_91 / _93, float2(2.0), float2(-1.0));
float2 _100 = fma((_91 + float2(1.0)) / _93, float2(2.0), float2(-1.0));
float2 _96 = ((_91 / _93) * float2(2.0)) - float2(1.0);
float2 _100 = (((_91 + float2(1.0)) / _93) * float2(2.0)) - float2(1.0);
float3 _101 = float3(_100.x, _100.y, _70.z);
_101.z = 1.0;
uint _103 = in.in_var_TEXCOORD0 * 5u;
uint _323 = uint(clamp(int(_103 + 1u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 2147483647u))));
if (all(CulledObjectBoxBounds._m0[_323].xy > _96.xy) && all(CulledObjectBoxBounds._m0[uint(clamp(int(_103), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 2147483647u))))].xyz < _101))
uint _310 = uint(clamp(int(_103 + 1u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 2147483647u))));
if (all(CulledObjectBoxBounds._m0[_310].xy > _96.xy) && all(CulledObjectBoxBounds._m0[uint(clamp(int(_103), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 2147483647u))))].xyz < _101))
{
float3 _120 = CulledObjectBoxBounds._m0[uint(clamp(int(_103), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 2147483647u))))].xyz + CulledObjectBoxBounds._m0[_323].xyz;
float3 _121 = float3(0.5) * (CulledObjectBoxBounds._m0[uint(clamp(int(_103), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 2147483647u))))].xyz + CulledObjectBoxBounds._m0[_310].xyz);
float _122 = _96.x;
float _123 = _96.y;
float _126 = _100.x;
float _129 = _100.y;
float3 _166 = fma(float3(-0.5), _120, float3(_122, _123, -1000.0));
float3 _166 = float3(_122, _123, -1000.0) - _121;
float3 _170 = float3(dot(_166, CulledObjectBoxBounds._m0[uint(clamp(int(_103 + 2u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 2147483647u))))].xyz), dot(_166, CulledObjectBoxBounds._m0[uint(clamp(int(_103 + 3u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 2147483647u))))].xyz), dot(_166, CulledObjectBoxBounds._m0[uint(clamp(int(_103 + 4u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 2147483647u))))].xyz));
float3 _189 = fma(float3(-0.5), _120, float3(_126, _123, -1000.0));
float3 _189 = float3(_126, _123, -1000.0) - _121;
float3 _193 = float3(dot(_189, CulledObjectBoxBounds._m0[uint(clamp(int(_103 + 2u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 2147483647u))))].xyz), dot(_189, CulledObjectBoxBounds._m0[uint(clamp(int(_103 + 3u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 2147483647u))))].xyz), dot(_189, CulledObjectBoxBounds._m0[uint(clamp(int(_103 + 4u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 2147483647u))))].xyz));
float3 _205 = fma(float3(-0.5), _120, float3(_122, _129, -1000.0));
float3 _205 = float3(_122, _129, -1000.0) - _121;
float3 _209 = float3(dot(_205, CulledObjectBoxBounds._m0[uint(clamp(int(_103 + 2u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 2147483647u))))].xyz), dot(_205, CulledObjectBoxBounds._m0[uint(clamp(int(_103 + 3u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 2147483647u))))].xyz), dot(_205, CulledObjectBoxBounds._m0[uint(clamp(int(_103 + 4u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 2147483647u))))].xyz));
float3 _221 = fma(float3(-0.5), _120, float3(_126, _129, -1000.0));
float3 _221 = float3(_126, _129, -1000.0) - _121;
float3 _225 = float3(dot(_221, CulledObjectBoxBounds._m0[uint(clamp(int(_103 + 2u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 2147483647u))))].xyz), dot(_221, CulledObjectBoxBounds._m0[uint(clamp(int(_103 + 3u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 2147483647u))))].xyz), dot(_221, CulledObjectBoxBounds._m0[uint(clamp(int(_103 + 4u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 2147483647u))))].xyz));
float3 _237 = fma(float3(-0.5), _120, float3(_122, _123, 1.0));
float3 _237 = float3(_122, _123, 1.0) - _121;
float3 _241 = float3(dot(_237, CulledObjectBoxBounds._m0[uint(clamp(int(_103 + 2u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 2147483647u))))].xyz), dot(_237, CulledObjectBoxBounds._m0[uint(clamp(int(_103 + 3u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 2147483647u))))].xyz), dot(_237, CulledObjectBoxBounds._m0[uint(clamp(int(_103 + 4u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 2147483647u))))].xyz));
float3 _253 = fma(float3(-0.5), _120, float3(_126, _123, 1.0));
float3 _253 = float3(_126, _123, 1.0) - _121;
float3 _257 = float3(dot(_253, CulledObjectBoxBounds._m0[uint(clamp(int(_103 + 2u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 2147483647u))))].xyz), dot(_253, CulledObjectBoxBounds._m0[uint(clamp(int(_103 + 3u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 2147483647u))))].xyz), dot(_253, CulledObjectBoxBounds._m0[uint(clamp(int(_103 + 4u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 2147483647u))))].xyz));
float3 _269 = fma(float3(-0.5), _120, float3(_122, _129, 1.0));
float3 _269 = float3(_122, _129, 1.0) - _121;
float3 _273 = float3(dot(_269, CulledObjectBoxBounds._m0[uint(clamp(int(_103 + 2u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 2147483647u))))].xyz), dot(_269, CulledObjectBoxBounds._m0[uint(clamp(int(_103 + 3u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 2147483647u))))].xyz), dot(_269, CulledObjectBoxBounds._m0[uint(clamp(int(_103 + 4u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 2147483647u))))].xyz));
float3 _285 = fma(float3(-0.5), _120, float3(_126, _129, 1.0));
float3 _285 = float3(_126, _129, 1.0) - _121;
float3 _289 = float3(dot(_285, CulledObjectBoxBounds._m0[uint(clamp(int(_103 + 2u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 2147483647u))))].xyz), dot(_285, CulledObjectBoxBounds._m0[uint(clamp(int(_103 + 3u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 2147483647u))))].xyz), dot(_285, CulledObjectBoxBounds._m0[uint(clamp(int(_103 + 4u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 2147483647u))))].xyz));
if (all(fast::min(fast::min(fast::min(fast::min(fast::min(fast::min(fast::min(fast::min(float3(500000.0), _170), _193), _209), _225), _241), _257), _273), _289) < float3(1.0)) && all(fast::max(fast::max(fast::max(fast::max(fast::max(fast::max(fast::max(fast::max(float3(-500000.0), _170), _193), _209), _225), _241), _257), _273), _289) > float3(-1.0)))
{

View File

@ -381,14 +381,14 @@ struct main0_patchIn
float4 _177 = float4(_157 * 3.0);
float4 _181 = float4(_158 * 3.0);
float4 _188 = float4(_159 * 3.0);
float4 _202 = fma(((patchIn.in_var_PN_POSITION9 * float4(6.0)) * _174) * _165, _169, fma(_135[2][2] * _177, _174, fma(_135[2][1] * _188, _165, fma(_135[1][2] * _188, _169, fma(_135[1][1] * _181, _174, fma(_135[0][2] * _181, _165, fma(_135[0][1] * _177, _169, fma(_135[2][0] * float4(_159), _174, fma(_135[0][0] * float4(_157), _165, (_135[1][0] * float4(_158)) * _169)))))))));
float3 _226 = fma(_117[2].xyz, float3(gl_TessCoord.z), fma(_117[0].xyz, float3(gl_TessCoord.x), _117[1].xyz * float3(gl_TessCoord.y)).xyz);
float4 _229 = fma(_118[2], _174, fma(_118[0], _165, _118[1] * _169));
float4 _231 = fma(_119[2], _174, fma(_119[0], _165, _119[1] * _169));
float4 _233 = fma(_120[2][0], _174, fma(_120[0][0], _165, _120[1][0] * _169));
float4 _202 = ((((((((((_135[0][0] * float4(_157)) * _165) + ((_135[1][0] * float4(_158)) * _169)) + ((_135[2][0] * float4(_159)) * _174)) + ((_135[0][1] * _177) * _169)) + ((_135[0][2] * _181) * _165)) + ((_135[1][1] * _181) * _174)) + ((_135[1][2] * _188) * _169)) + ((_135[2][1] * _188) * _165)) + ((_135[2][2] * _177) * _174)) + ((((patchIn.in_var_PN_POSITION9 * float4(6.0)) * _174) * _165) * _169);
float3 _226 = ((_117[0].xyz * float3(gl_TessCoord.x)) + (_117[1].xyz * float3(gl_TessCoord.y))).xyz + (_117[2].xyz * float3(gl_TessCoord.z));
float4 _229 = ((_118[0] * _165) + (_118[1] * _169)) + (_118[2] * _174);
float4 _231 = ((_119[0] * _165) + (_119[1] * _169)) + (_119[2] * _174);
float4 _233 = ((_120[0][0] * _165) + (_120[1][0] * _169)) + (_120[2][0] * _174);
spvUnsafeArray<float4, 1> _234 = spvUnsafeArray<float4, 1>({ _233 });
float3 _236 = _229.xyz;
float3 _264 = fma((float3((Material_Texture2D_3.sample(Material_Texture2D_3Sampler, fma(_233.zw, float2(1.0, 2.0), float2(View.View_GameTime * 0.20000000298023223876953125, View.View_GameTime * (-0.699999988079071044921875))), level(-1.0)).x * 10.0) * (1.0 - _231.x)) * _236) * float3(0.5), float3(fma(_136[2], gl_TessCoord.z, fma(_136[0], gl_TessCoord.x, _136[1] * gl_TessCoord.y))), _202.xyz);
float3 _264 = _202.xyz + (((float3((Material_Texture2D_3.sample(Material_Texture2D_3Sampler, (float2(View.View_GameTime * 0.20000000298023223876953125, View.View_GameTime * (-0.699999988079071044921875)) + (_233.zw * float2(1.0, 2.0))), level(-1.0)).x * 10.0) * (1.0 - _231.x)) * _236) * float3(0.5)) * float3(((_136[0] * gl_TessCoord.x) + (_136[1] * gl_TessCoord.y)) + (_136[2] * gl_TessCoord.z)));
float4 _270 = ShadowDepthPass.ShadowDepthPass_ProjectionMatrix * float4(_264.x, _264.y, _264.z, _202.w);
float4 _281;
if ((ShadowDepthPass.ShadowDepthPass_bClampToNearPlane > 0.0) && (_270.z < 0.0))
@ -409,7 +409,7 @@ struct main0_patchIn
out_var_TEXCOORD0 = _234;
out.out_var_PRIMITIVE_ID = patchIn.gl_in[0u].in_var_PRIMITIVE_ID;
out.out_var_TEXCOORD6 = _281.z;
out.out_var_TEXCOORD8 = fma(ShadowDepthPass.ShadowDepthPass_ShadowParams.y, fast::clamp((abs(_290) > 0.0) ? (sqrt(fast::clamp(fma(-_290, _290, 1.0), 0.0, 1.0)) / _290) : ShadowDepthPass.ShadowDepthPass_ShadowParams.z, 0.0, ShadowDepthPass.ShadowDepthPass_ShadowParams.z), ShadowDepthPass.ShadowDepthPass_ShadowParams.x);
out.out_var_TEXCOORD8 = (ShadowDepthPass.ShadowDepthPass_ShadowParams.y * fast::clamp((abs(_290) > 0.0) ? (sqrt(fast::clamp(1.0 - (_290 * _290), 0.0, 1.0)) / _290) : ShadowDepthPass.ShadowDepthPass_ShadowParams.z, 0.0, ShadowDepthPass.ShadowDepthPass_ShadowParams.z)) + ShadowDepthPass.ShadowDepthPass_ShadowParams.x;
out.out_var_TEXCOORD7 = _264.xyz;
out.gl_Position = _281;
out.out_var_TEXCOORD0_0 = out_var_TEXCOORD0[0];

View File

@ -299,12 +299,12 @@ struct main0_patchIn
float4 _210 = float4(_190 * 3.0);
float4 _214 = float4(_191 * 3.0);
float4 _221 = float4(_192 * 3.0);
float4 _235 = fma(((patchIn.in_var_PN_POSITION9 * float4(6.0)) * _207) * _198, _202, fma(_136[2][2] * _210, _207, fma(_136[2][1] * _221, _198, fma(_136[1][2] * _221, _202, fma(_136[1][1] * _214, _207, fma(_136[0][2] * _214, _198, fma(_136[0][1] * _210, _202, fma(_136[2][0] * float4(_192), _207, fma(_136[0][0] * float4(_190), _198, (_136[1][0] * float4(_191)) * _202)))))))));
float4 _235 = ((((((((((_136[0][0] * float4(_190)) * _198) + ((_136[1][0] * float4(_191)) * _202)) + ((_136[2][0] * float4(_192)) * _207)) + ((_136[0][1] * _210) * _202)) + ((_136[0][2] * _214) * _198)) + ((_136[1][1] * _214) * _207)) + ((_136[1][2] * _221) * _202)) + ((_136[2][1] * _221) * _198)) + ((_136[2][2] * _210) * _207)) + ((((patchIn.in_var_PN_POSITION9 * float4(6.0)) * _207) * _198) * _202);
float3 _237 = float3(gl_TessCoord.x);
float3 _240 = float3(gl_TessCoord.y);
float3 _254 = float3(gl_TessCoord.z);
float3 _256 = fma(_128[2].xyz, _254, fma(_128[0].xyz, _237, _128[1].xyz * _240).xyz);
float4 _259 = fma(_129[2], _207, fma(_129[0], _198, _129[1] * _202));
float3 _256 = ((_128[0].xyz * _237) + (_128[1].xyz * _240)).xyz + (_128[2].xyz * _254);
float4 _259 = ((_129[0] * _198) + (_129[1] * _202)) + (_129[2] * _207);
float3 _264 = _235.xyz;
float3 _265 = _256.xyz;
float3 _266 = _259.xyz;
@ -321,8 +321,8 @@ struct main0_patchIn
float _363 = float(int((_282 + _285) == 2.0));
float _367 = float(int((_285 + _279) == 2.0));
float _370 = float(int(_286 == 2.0));
_387 = fma(float4(_370), _138[2], fma(float4(_363), _138[0], float4(_367) * _138[1]));
_388 = fma(float3(_370), _139[2], fma(float3(_363), _139[0], float3(_367) * _139[1]));
_387 = ((float4(_363) * _138[0]) + (float4(_367) * _138[1])) + (float4(_370) * _138[2]);
_388 = ((float3(_363) * _139[0]) + (float3(_367) * _139[1])) + (float3(_370) * _139[2]);
}
else
{
@ -333,15 +333,15 @@ struct main0_patchIn
float4 _304 = float4(_279);
float4 _306 = float4(_282);
float4 _309 = float4(_285);
float4 _311 = fma(_309, _146[2], fma(_304, _146[0], _306 * _146[1]));
float4 _316 = fma(_309, _147[2], fma(_304, _147[0], _306 * _147[1]));
float4 _311 = ((_304 * _146[0]) + (_306 * _146[1])) + (_309 * _146[2]);
float4 _316 = ((_304 * _147[0]) + (_306 * _147[1])) + (_309 * _147[2]);
float3 _331 = float3(_279);
float3 _333 = float3(_282);
float3 _336 = float3(_285);
float3 _338 = fma(_336, _148[2], fma(_331, _148[0], _333 * _148[1]));
float3 _343 = fma(_336, _149[2], fma(_331, _149[0], _333 * _149[1]));
_358 = fma(_309, fma(_198, _311, _202 * _316), fma(_304, fma(_202, _311, _207 * _316), _306 * fma(_207, _311, _198 * _316)));
_359 = fma(_336, fma(_237, _338, _240 * _343), fma(_331, fma(_240, _338, _254 * _343), _333 * fma(_254, _338, _237 * _343)));
float3 _338 = ((_331 * _148[0]) + (_333 * _148[1])) + (_336 * _148[2]);
float3 _343 = ((_331 * _149[0]) + (_333 * _149[1])) + (_336 * _149[2]);
_358 = ((_304 * ((_202 * _311) + (_207 * _316))) + (_306 * ((_207 * _311) + (_198 * _316)))) + (_309 * ((_198 * _311) + (_202 * _316)));
_359 = ((_331 * ((_240 * _338) + (_254 * _343))) + (_333 * ((_254 * _338) + (_237 * _343)))) + (_336 * ((_237 * _338) + (_240 * _343)));
}
else
{
@ -364,7 +364,7 @@ struct main0_patchIn
float _547;
if (fast::min(_411.x, fast::min(_411.y, _411.z)) > (View.View_GlobalVolumeCenterAndExtent[0].w * View.View_GlobalVolumeTexelSize))
{
_547 = View_GlobalDistanceFieldTexture0.sample(View_GlobalDistanceFieldSampler0, fma(_272, View.View_GlobalVolumeWorldToUVAddAndMul[0u].www, View.View_GlobalVolumeWorldToUVAddAndMul[0u].xyz), level(0.0)).x;
_547 = View_GlobalDistanceFieldTexture0.sample(View_GlobalDistanceFieldSampler0, ((_272 * View.View_GlobalVolumeWorldToUVAddAndMul[0u].www) + View.View_GlobalVolumeWorldToUVAddAndMul[0u].xyz), level(0.0)).x;
}
else
{
@ -372,7 +372,7 @@ struct main0_patchIn
float _535;
if (fast::min(_436.x, fast::min(_436.y, _436.z)) > (View.View_GlobalVolumeCenterAndExtent[1].w * View.View_GlobalVolumeTexelSize))
{
_535 = View_GlobalDistanceFieldTexture1.sample(View_GlobalDistanceFieldSampler0, fma(_272, View.View_GlobalVolumeWorldToUVAddAndMul[1u].www, View.View_GlobalVolumeWorldToUVAddAndMul[1u].xyz), level(0.0)).x;
_535 = View_GlobalDistanceFieldTexture1.sample(View_GlobalDistanceFieldSampler0, ((_272 * View.View_GlobalVolumeWorldToUVAddAndMul[1u].www) + View.View_GlobalVolumeWorldToUVAddAndMul[1u].xyz), level(0.0)).x;
}
else
{
@ -382,14 +382,14 @@ struct main0_patchIn
float _523;
if (fast::min(_459.x, fast::min(_459.y, _459.z)) > (View.View_GlobalVolumeCenterAndExtent[2].w * View.View_GlobalVolumeTexelSize))
{
_523 = View_GlobalDistanceFieldTexture2.sample(View_GlobalDistanceFieldSampler0, fma(_272, View.View_GlobalVolumeWorldToUVAddAndMul[2u].www, View.View_GlobalVolumeWorldToUVAddAndMul[2u].xyz), level(0.0)).x;
_523 = View_GlobalDistanceFieldTexture2.sample(View_GlobalDistanceFieldSampler0, ((_272 * View.View_GlobalVolumeWorldToUVAddAndMul[2u].www) + View.View_GlobalVolumeWorldToUVAddAndMul[2u].xyz), level(0.0)).x;
}
else
{
float _511;
if (_480 > (View.View_GlobalVolumeCenterAndExtent[3].w * View.View_GlobalVolumeTexelSize))
{
_511 = mix(View.View_MaxGlobalDistance, View_GlobalDistanceFieldTexture3.sample(View_GlobalDistanceFieldSampler0, fma(_272, View.View_GlobalVolumeWorldToUVAddAndMul[3u].www, View.View_GlobalVolumeWorldToUVAddAndMul[3u].xyz), level(0.0)).x, fast::clamp((_480 * 10.0) * View.View_GlobalVolumeWorldToUVAddAndMul[3].w, 0.0, 1.0));
_511 = mix(View.View_MaxGlobalDistance, View_GlobalDistanceFieldTexture3.sample(View_GlobalDistanceFieldSampler0, ((_272 * View.View_GlobalVolumeWorldToUVAddAndMul[3u].www) + View.View_GlobalVolumeWorldToUVAddAndMul[3u].xyz), level(0.0)).x, fast::clamp((_480 * 10.0) * View.View_GlobalVolumeWorldToUVAddAndMul[3].w, 0.0, 1.0));
}
else
{
@ -401,12 +401,12 @@ struct main0_patchIn
}
_547 = _535;
}
float3 _565 = fma(_398[2] * float3(fast::min(_547 + Material.Material_ScalarExpressions[0].z, 0.0) * Material.Material_ScalarExpressions[0].w), float3(fma(_137[2], gl_TessCoord.z, fma(_137[0], gl_TessCoord.x, _137[1] * gl_TessCoord.y))), _264);
float3 _565 = _264 + ((_398[2] * float3(fast::min(_547 + Material.Material_ScalarExpressions[0].z, 0.0) * Material.Material_ScalarExpressions[0].w)) * float3(((_137[0] * gl_TessCoord.x) + (_137[1] * gl_TessCoord.y)) + (_137[2] * gl_TessCoord.z)));
float4 _574 = View.View_TranslatedWorldToClip * float4(_565.x, _565.y, _565.z, _235.w);
_574.z = fma(0.001000000047497451305389404296875, _574.w, _574.z);
_574.z = _574.z + (0.001000000047497451305389404296875 * _574.w);
out.gl_Position = _574;
out.out_var_TEXCOORD6 = fma(_120[2], _207, fma(_120[0], _198, _120[1] * _202));
out.out_var_TEXCOORD7 = fma(_121[2], _207, fma(_121[0], _198, _121[1] * _202));
out.out_var_TEXCOORD6 = ((_120[0] * _198) + (_120[1] * _202)) + (_120[2] * _207);
out.out_var_TEXCOORD7 = ((_121[0] * _198) + (_121[1] * _202)) + (_121[2] * _207);
out.out_var_TEXCOORD10_centroid = float4(_256.x, _256.y, _256.z, _118.w);
out.out_var_TEXCOORD11_centroid = _259;
out.gl_ClipDistance[0u] = dot(View.View_GlobalClippingPlane, float4(_565.xyz - float3(View.View_PreViewTranslation), 1.0));

View File

@ -186,9 +186,9 @@ struct main0_patchIn
float4 _139 = float4(_119 * 3.0);
float4 _143 = float4(_120 * 3.0);
float4 _150 = float4(_121 * 3.0);
float4 _164 = fma(((patchIn.in_var_PN_POSITION9 * float4(6.0)) * _136) * _127, _131, fma(_101[2][2] * _139, _136, fma(_101[2][1] * _150, _127, fma(_101[1][2] * _150, _131, fma(_101[1][1] * _143, _136, fma(_101[0][2] * _143, _127, fma(_101[0][1] * _139, _131, fma(_101[2][0] * float4(_121), _136, fma(_101[0][0] * float4(_119), _127, (_101[1][0] * float4(_120)) * _131)))))))));
float3 _179 = fma(_93[2].xyz, float3(gl_TessCoord.z), fma(_93[0].xyz, float3(gl_TessCoord.x), _93[1].xyz * float3(gl_TessCoord.y)).xyz);
float4 _182 = fma(_94[2], _136, fma(_94[0], _127, _94[1] * _131));
float4 _164 = ((((((((((_101[0][0] * float4(_119)) * _127) + ((_101[1][0] * float4(_120)) * _131)) + ((_101[2][0] * float4(_121)) * _136)) + ((_101[0][1] * _139) * _131)) + ((_101[0][2] * _143) * _127)) + ((_101[1][1] * _143) * _136)) + ((_101[1][2] * _150) * _131)) + ((_101[2][1] * _150) * _127)) + ((_101[2][2] * _139) * _136)) + ((((patchIn.in_var_PN_POSITION9 * float4(6.0)) * _136) * _127) * _131);
float3 _179 = ((_93[0].xyz * float3(gl_TessCoord.x)) + (_93[1].xyz * float3(gl_TessCoord.y))).xyz + (_93[2].xyz * float3(gl_TessCoord.z));
float4 _182 = ((_94[0] * _127) + (_94[1] * _131)) + (_94[2] * _136);
float4 _189 = ShadowDepthPass.ShadowDepthPass_ProjectionMatrix * float4(_164.x, _164.y, _164.z, _164.w);
float4 _200;
if ((ShadowDepthPass.ShadowDepthPass_bClampToNearPlane > 0.0) && (_189.z < 0.0))
@ -204,7 +204,7 @@ struct main0_patchIn
}
float _209 = abs(dot(float3(ShadowDepthPass.ShadowDepthPass_ViewMatrix[0].z, ShadowDepthPass.ShadowDepthPass_ViewMatrix[1].z, ShadowDepthPass.ShadowDepthPass_ViewMatrix[2].z), _182.xyz));
float4 _234 = _200;
_234.z = fma(_200.z, ShadowDepthPass.ShadowDepthPass_ShadowParams.w, fma(ShadowDepthPass.ShadowDepthPass_ShadowParams.y, fast::clamp((abs(_209) > 0.0) ? (sqrt(fast::clamp(fma(-_209, _209, 1.0), 0.0, 1.0)) / _209) : ShadowDepthPass.ShadowDepthPass_ShadowParams.z, 0.0, ShadowDepthPass.ShadowDepthPass_ShadowParams.z), ShadowDepthPass.ShadowDepthPass_ShadowParams.x)) * _200.w;
_234.z = ((_200.z * ShadowDepthPass.ShadowDepthPass_ShadowParams.w) + ((ShadowDepthPass.ShadowDepthPass_ShadowParams.y * fast::clamp((abs(_209) > 0.0) ? (sqrt(fast::clamp(1.0 - (_209 * _209), 0.0, 1.0)) / _209) : ShadowDepthPass.ShadowDepthPass_ShadowParams.z, 0.0, ShadowDepthPass.ShadowDepthPass_ShadowParams.z)) + ShadowDepthPass.ShadowDepthPass_ShadowParams.x)) * _200.w;
out.out_var_TEXCOORD10_centroid = float4(_179.x, _179.y, _179.z, _90.w);
out.out_var_TEXCOORD11_centroid = _182;
out.out_var_TEXCOORD6 = 0.0;

View File

@ -325,26 +325,24 @@ vertex main0_out main0(main0_in in [[stage_in]], constant type_View& View [[buff
in_var_ATTRIBUTE1[1] = in.in_var_ATTRIBUTE1_1;
float4 _115 = in.in_var_ATTRIBUTE0 * float4(255.0);
float2 _116 = _115.zw;
float2 _118 = fract(_116 * float2(0.5));
float2 _119 = _118 * float2(2.0);
float2 _121 = fma(-_118, float2(2.0), _116) * float2(0.0039215688593685626983642578125);
float2 _119 = fract(_116 * float2(0.5)) * float2(2.0);
float2 _121 = (_116 - _119) * float2(0.0039215688593685626983642578125);
float2 _122 = _115.xy;
float2 _126 = _122 * float2(_Globals.LodValues.w);
float _127 = _126.y;
float _128 = _126.x;
float4 _131 = float4(_127, _128, 1.0 - _128, 1.0 - _127);
float4 _132 = _131 * float4(2.0);
float4 _132 = float4(_127, _128, 1.0 - _128, 1.0 - _127) * float4(2.0);
float4 _186;
if (_119.y > 0.5)
{
float4 _161;
if (_119.x > 0.5)
{
_161 = fma(_132, float4(_Globals.SectionLods.w), fma(-_131, float4(2.0), float4(1.0)) * _Globals.NeighborSectionLod[3]);
_161 = (_132 * float4(_Globals.SectionLods.w)) + ((float4(1.0) - _132) * _Globals.NeighborSectionLod[3]);
}
else
{
_161 = fma(_132, float4(_Globals.SectionLods.z), fma(-_131, float4(2.0), float4(1.0)) * _Globals.NeighborSectionLod[2]);
_161 = (_132 * float4(_Globals.SectionLods.z)) + ((float4(1.0) - _132) * _Globals.NeighborSectionLod[2]);
}
_186 = _161;
}
@ -353,11 +351,11 @@ vertex main0_out main0(main0_in in [[stage_in]], constant type_View& View [[buff
float4 _185;
if (_119.x > 0.5)
{
_185 = fma(_132, float4(_Globals.SectionLods.y), fma(-_131, float4(2.0), float4(1.0)) * _Globals.NeighborSectionLod[1]);
_185 = (_132 * float4(_Globals.SectionLods.y)) + ((float4(1.0) - _132) * _Globals.NeighborSectionLod[1]);
}
else
{
_185 = fma(_132, float4(_Globals.SectionLods.x), fma(-_131, float4(2.0), float4(1.0)) * _Globals.NeighborSectionLod[0]);
_185 = (_132 * float4(_Globals.SectionLods.x)) + ((float4(1.0) - _132) * _Globals.NeighborSectionLod[0]);
}
_186 = _185;
}
@ -392,14 +390,15 @@ vertex main0_out main0(main0_in in [[stage_in]], constant type_View& View [[buff
float _220 = _121.x;
float3 _235 = select(select(select(select(select(float3(0.03125, _121.yy), float3(0.0625, _220, _121.y), bool3(_207 < 5.0)), float3(0.125, in_var_ATTRIBUTE1[1].w, _220), bool3(_207 < 4.0)), float3(0.25, in_var_ATTRIBUTE1[1].zw), bool3(_207 < 3.0)), float3(0.5, in_var_ATTRIBUTE1[1].yz), bool3(_207 < 2.0)), float3(1.0, in_var_ATTRIBUTE1[1].xy), bool3(_207 < 1.0));
float _236 = _235.x;
float _245 = (fma(in_var_ATTRIBUTE1[0].x, 65280.0, in_var_ATTRIBUTE1[0].y * 255.0) - 32768.0) * 0.0078125;
float _252 = (fma(in_var_ATTRIBUTE1[0].z, 65280.0, in_var_ATTRIBUTE1[0].w * 255.0) - 32768.0) * 0.0078125;
float _245 = (((in_var_ATTRIBUTE1[0].x * 65280.0) + (in_var_ATTRIBUTE1[0].y * 255.0)) - 32768.0) * 0.0078125;
float _252 = (((in_var_ATTRIBUTE1[0].z * 65280.0) + (in_var_ATTRIBUTE1[0].w * 255.0)) - 32768.0) * 0.0078125;
float2 _257 = floor(_122 * float2(_236));
float2 _271 = float2(fma(LandscapeParameters.LandscapeParameters_SubsectionSizeVertsLayerUVPan.x, _236, -1.0), fast::max((LandscapeParameters.LandscapeParameters_SubsectionSizeVertsLayerUVPan.x * 0.5) * _236, 2.0) - 1.0) * float2(LandscapeParameters.LandscapeParameters_SubsectionSizeVertsLayerUVPan.y);
float2 _271 = float2((LandscapeParameters.LandscapeParameters_SubsectionSizeVertsLayerUVPan.x * _236) - 1.0, fast::max((LandscapeParameters.LandscapeParameters_SubsectionSizeVertsLayerUVPan.x * 0.5) * _236, 2.0) - 1.0) * float2(LandscapeParameters.LandscapeParameters_SubsectionSizeVertsLayerUVPan.y);
float3 _287 = mix(float3(_257 / float2(_271.x), mix(_245, _252, _235.y)), float3(floor(_257 * float2(0.5)) / float2(_271.y), mix(_245, _252, _235.z)), float3(_206 - _207));
float2 _288 = _119.xy;
float3 _296 = _287 + float3(_288 * LandscapeParameters.LandscapeParameters_SubsectionOffsetParams.ww, 0.0);
float4 _322 = float4(fma(Primitive.Primitive_LocalToWorld[2u].xyz, _296.zzz, fma(Primitive.Primitive_LocalToWorld[0u].xyz, _296.xxx, Primitive.Primitive_LocalToWorld[1u].xyz * _296.yyy)) + (Primitive.Primitive_LocalToWorld[3u].xyz + float3(View.View_PreViewTranslation)), 1.0);
float2 _292 = _288 * LandscapeParameters.LandscapeParameters_SubsectionOffsetParams.ww;
float3 _296 = _287 + float3(_292, 0.0);
float4 _322 = float4((((Primitive.Primitive_LocalToWorld[0u].xyz * _296.xxx) + (Primitive.Primitive_LocalToWorld[1u].xyz * _296.yyy)) + (Primitive.Primitive_LocalToWorld[2u].xyz * _296.zzz)) + (Primitive.Primitive_LocalToWorld[3u].xyz + float3(View.View_PreViewTranslation)), 1.0);
float2 _323 = _287.xy;
float4 _338 = float4(_322.x, _322.y, _322.z, _322.w);
float4 _339 = View.View_TranslatedWorldToClip * _338;
@ -416,11 +415,12 @@ vertex main0_out main0(main0_in in [[stage_in]], constant type_View& View [[buff
if (_357 > 0.0)
{
float _361 = _357 * _346;
float _365 = fma(_361, _354, View.View_WorldCameraOrigin[2]);
_393 = fma(-_357, _346, 1.0) * _347;
float _362 = _361 * _354;
float _365 = View.View_WorldCameraOrigin[2] + _362;
_393 = (1.0 - _361) * _347;
_394 = MobileBasePass.MobileBasePass_Fog_ExponentialFogParameters2.z * exp2(-fast::max(-127.0, MobileBasePass.MobileBasePass_Fog_ExponentialFogParameters2.y * (_365 - MobileBasePass.MobileBasePass_Fog_ExponentialFogParameters2.w)));
_395 = MobileBasePass.MobileBasePass_Fog_ExponentialFogParameters3.x * exp2(-fast::max(-127.0, MobileBasePass.MobileBasePass_Fog_ExponentialFogParameters.y * (_365 - MobileBasePass.MobileBasePass_Fog_ExponentialFogParameters3.y)));
_396 = fma(-_361, _354, _354);
_396 = _354 - _362;
}
else
{
@ -431,7 +431,7 @@ vertex main0_out main0(main0_in in [[stage_in]], constant type_View& View [[buff
}
float _400 = fast::max(-127.0, MobileBasePass.MobileBasePass_Fog_ExponentialFogParameters.y * _396);
float _417 = fast::max(-127.0, MobileBasePass.MobileBasePass_Fog_ExponentialFogParameters2.y * _396);
float _428 = fma(_395, (abs(_400) > 0.00999999977648258209228515625) ? ((1.0 - exp2(-_400)) / _400) : fma(-0.2402265071868896484375, _400, 0.693147182464599609375), _394 * ((abs(_417) > 0.00999999977648258209228515625) ? ((1.0 - exp2(-_417)) / _417) : fma(-0.2402265071868896484375, _417, 0.693147182464599609375)));
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)
{
@ -443,11 +443,12 @@ vertex main0_out main0(main0_in in [[stage_in]], constant type_View& View [[buff
}
bool _468 = (MobileBasePass.MobileBasePass_Fog_ExponentialFogParameters3.w > 0.0) && (_347 > MobileBasePass.MobileBasePass_Fog_ExponentialFogParameters3.w);
float _471 = _468 ? 1.0 : fast::max(fast::clamp(exp2(-(_428 * _393)), 0.0, 1.0), MobileBasePass.MobileBasePass_Fog_ExponentialFogColorParameter.w);
float4 _479 = float4(fma(MobileBasePass.MobileBasePass_Fog_ExponentialFogColorParameter.xyz, float3(1.0 - _471), select(_459, float3(0.0), bool3(_468))), _471);
float3 _475 = (MobileBasePass.MobileBasePass_Fog_ExponentialFogColorParameter.xyz * float3(1.0 - _471)) + select(_459, float3(0.0), bool3(_468));
float4 _479 = float4(_475, _471);
float4 _482 = _338;
_482.w = _339.w;
out.out_var_TEXCOORD0 = fma(_288, LandscapeParameters.LandscapeParameters_SubsectionOffsetParams.ww, _323 + LandscapeParameters.LandscapeParameters_SubsectionSizeVertsLayerUVPan.zw).xy;
out.out_var_TEXCOORD1 = fma(_288, LandscapeParameters.LandscapeParameters_SubsectionOffsetParams.zz, fma(_323, LandscapeParameters.LandscapeParameters_WeightmapUVScaleBias.xy, LandscapeParameters.LandscapeParameters_WeightmapUVScaleBias.zw));
out.out_var_TEXCOORD0 = ((_323 + LandscapeParameters.LandscapeParameters_SubsectionSizeVertsLayerUVPan.zw) + _292).xy;
out.out_var_TEXCOORD1 = ((_323 * LandscapeParameters.LandscapeParameters_WeightmapUVScaleBias.xy) + LandscapeParameters.LandscapeParameters_WeightmapUVScaleBias.zw) + (_288 * LandscapeParameters.LandscapeParameters_SubsectionOffsetParams.zz);
out.out_var_TEXCOORD2 = float4(float4(0.0).x, float4(0.0).y, _479.x, _479.y);
out.out_var_TEXCOORD3 = float4(float4(0.0).x, float4(0.0).y, _479.z, _479.w);
out.out_var_TEXCOORD8 = _482;

View File

@ -297,8 +297,8 @@ vertex main0_out main0(main0_in in [[stage_in]], constant type_View& View [[buff
float _146 = _137.w;
float3 _158 = float3x3(Primitive.Primitive_LocalToWorld[0].xyz, Primitive.Primitive_LocalToWorld[1].xyz, Primitive.Primitive_LocalToWorld[2].xyz) * VelocityTexture.sample(VelocityTextureSampler, _133, level(0.0)).xyz;
float3 _160 = fast::normalize(_158 + float3(0.0, 0.0, 9.9999997473787516355514526367188e-05));
float2 _204 = ((((_145.xy + float2((_145.x < 0.5) ? 0.0 : (-0.5), (_145.y < 0.5) ? 0.0 : (-0.5))) * float2(2.0)) * (fma(CurveTexture.sample(CurveTextureSampler, fma(EmitterUniforms.EmitterUniforms_MiscCurve.zw, float2(_146), EmitterUniforms.EmitterUniforms_MiscCurve.xy), level(0.0)), EmitterUniforms.EmitterUniforms_MiscScale, EmitterUniforms.EmitterUniforms_MiscBias).xy * EmitterDynamicUniforms.EmitterDynamicUniforms_LocalToWorldScale)) * fast::min(fast::max(EmitterUniforms.EmitterUniforms_SizeBySpeed.xy * float2(length(_158)), float2(1.0)), EmitterUniforms.EmitterUniforms_SizeBySpeed.zw)) * float2(step(_146, 1.0));
float3 _239 = float4(fma(Primitive.Primitive_LocalToWorld[2u].xyz, _137.zzz, fma(Primitive.Primitive_LocalToWorld[0u].xyz, _137.xxx, Primitive.Primitive_LocalToWorld[1u].xyz * _137.yyy)) + (Primitive.Primitive_LocalToWorld[3u].xyz + float3(View.View_PreViewTranslation)), 1.0).xyz;
float2 _204 = ((((_145.xy + float2((_145.x < 0.5) ? 0.0 : (-0.5), (_145.y < 0.5) ? 0.0 : (-0.5))) * float2(2.0)) * (((CurveTexture.sample(CurveTextureSampler, (EmitterUniforms.EmitterUniforms_MiscCurve.xy + (EmitterUniforms.EmitterUniforms_MiscCurve.zw * float2(_146))), level(0.0)) * EmitterUniforms.EmitterUniforms_MiscScale) + EmitterUniforms.EmitterUniforms_MiscBias).xy * EmitterDynamicUniforms.EmitterDynamicUniforms_LocalToWorldScale)) * fast::min(fast::max(EmitterUniforms.EmitterUniforms_SizeBySpeed.xy * float2(length(_158)), float2(1.0)), EmitterUniforms.EmitterUniforms_SizeBySpeed.zw)) * float2(step(_146, 1.0));
float3 _239 = float4((((Primitive.Primitive_LocalToWorld[0u].xyz * _137.xxx) + (Primitive.Primitive_LocalToWorld[1u].xyz * _137.yyy)) + (Primitive.Primitive_LocalToWorld[2u].xyz * _137.zzz)) + (Primitive.Primitive_LocalToWorld[3u].xyz + float3(View.View_PreViewTranslation)), 1.0).xyz;
float3 _242 = float3(EmitterUniforms.EmitterUniforms_RemoveHMDRoll);
float3 _251 = mix(mix(float3(View.View_ViewRight), float3(View.View_HMDViewNoRollRight), _242), EmitterDynamicUniforms.EmitterDynamicUniforms_AxisLockRight.xyz, float3(EmitterDynamicUniforms.EmitterDynamicUniforms_AxisLockRight.w));
float3 _259 = mix(-mix(float3(View.View_ViewUp), float3(View.View_HMDViewNoRollUp), _242), EmitterDynamicUniforms.EmitterDynamicUniforms_AxisLockUp.xyz, float3(EmitterDynamicUniforms.EmitterDynamicUniforms_AxisLockUp.w));
@ -311,7 +311,7 @@ vertex main0_out main0(main0_in in [[stage_in]], constant type_View& View [[buff
{
float3 _279 = cross(_265, float3(0.0, 0.0, 1.0));
float3 _284 = _279 / float3(sqrt(fast::max(dot(_279, _279), 0.00999999977648258209228515625)));
float3 _286 = float3(fast::clamp(fma(_261, EmitterUniforms.EmitterUniforms_CameraFacingBlend[1], -EmitterUniforms.EmitterUniforms_CameraFacingBlend[2]), 0.0, 1.0));
float3 _286 = float3(fast::clamp((_261 * EmitterUniforms.EmitterUniforms_CameraFacingBlend[1]) - EmitterUniforms.EmitterUniforms_CameraFacingBlend[2], 0.0, 1.0));
_335 = fast::normalize(mix(_251, _284, _286));
_336 = fast::normalize(mix(_259, cross(_265, _284), _286));
}
@ -360,10 +360,10 @@ vertex main0_out main0(main0_in in [[stage_in]], constant type_View& View [[buff
_335 = _333;
_336 = _334;
}
float _339 = fma(fma(_145.w * EmitterUniforms.EmitterUniforms_RotationRateScale, _146, _145.z), 6.283185482025146484375, EmitterUniforms.EmitterUniforms_RotationBias);
float _339 = ((_145.z + ((_145.w * EmitterUniforms.EmitterUniforms_RotationRateScale) * _146)) * 6.283185482025146484375) + EmitterUniforms.EmitterUniforms_RotationBias;
float3 _342 = float3(sin(_339));
float3 _344 = float3(cos(_339));
float3 _367 = _239 + fma(float3(_204.x * (in.in_var_ATTRIBUTE0.x + EmitterUniforms.EmitterUniforms_PivotOffset.x)), fma(_342, _336, _344 * _335), float3(_204.y * (in.in_var_ATTRIBUTE0.y + EmitterUniforms.EmitterUniforms_PivotOffset.y)) * fma(_344, _336, -(_342 * _335)));
float3 _367 = _239 + ((float3(_204.x * (in.in_var_ATTRIBUTE0.x + EmitterUniforms.EmitterUniforms_PivotOffset.x)) * ((_342 * _336) + (_344 * _335))) + (float3(_204.y * (in.in_var_ATTRIBUTE0.y + EmitterUniforms.EmitterUniforms_PivotOffset.y)) * ((_344 * _336) - (_342 * _335))));
float4 _371 = float4(_367, 1.0);
float4 _375 = MobileShadowDepthPass.MobileShadowDepthPass_ProjectionMatrix * float4(_371.x, _371.y, _371.z, _371.w);
float4 _386;
@ -379,7 +379,7 @@ vertex main0_out main0(main0_in in [[stage_in]], constant type_View& View [[buff
_386 = _375;
}
float4 _396 = _386;
_396.z = fma(_386.z, MobileShadowDepthPass.MobileShadowDepthPass_ShadowParams.y, MobileShadowDepthPass.MobileShadowDepthPass_ShadowParams.x) * _386.w;
_396.z = ((_386.z * MobileShadowDepthPass.MobileShadowDepthPass_ShadowParams.y) + MobileShadowDepthPass.MobileShadowDepthPass_ShadowParams.x) * _386.w;
out.out_var_TEXCOORD6 = 0.0;
out.gl_Position = _396;
return out;

View File

@ -33,11 +33,10 @@ void main()
for (int _278 = -3; _278 <= 3; )
{
float _220 = float(_278);
float _227 = exp(((-_220) * _220) * 0.2222220003604888916015625);
vec4 _236 = texture(SPIRV_Cross_CombinedmapTexturemapSampler, IN_uv + (_180 * _220));
float _245 = float(abs(_236.y - _207) < _211);
_276 = fma(_236.x, _227 * _245, _276);
_277 = fma(_227, _245, _277);
float _246 = exp(((-_220) * _220) * 0.2222220003604888916015625) * float(abs(_236.y - _207) < _211);
_276 += (_236.x * _246);
_277 += _246;
_278++;
continue;
}

View File

@ -104,10 +104,11 @@ layout(location = 0) out vec4 _4317;
void main()
{
vec2 _19927 = gl_FragCoord.xy * _15259._m23.xy;
vec4 _17581 = _22044._m2 * _22044._m0.xyxy;
vec2 _7011 = _17581.xy;
vec2 _21058 = _17581.zw;
vec2 _13149 = clamp(fma(gl_FragCoord.xy, _15259._m23.xy, vec2(0.0, -2.0) * _22044._m0.xy), _7011, _21058);
vec2 _13149 = clamp(_19927 + (vec2(0.0, -2.0) * _22044._m0.xy), _7011, _21058);
vec3 _12103 = _12348._m5 * clamp(textureLod(SPIRV_Cross_Combined, _13149, 0.0).w * _22044._m1, 0.0, 1.0);
vec4 _17670 = textureLod(SPIRV_Cross_Combined_1, _13149, 0.0);
float _16938 = _17670.y;
@ -121,7 +122,7 @@ void main()
{
_7719 = _12103;
}
vec2 _13150 = clamp(fma(gl_FragCoord.xy, _15259._m23.xy, vec2(-1.0) * _22044._m0.xy), _7011, _21058);
vec2 _13150 = clamp(_19927 + (vec2(-1.0) * _22044._m0.xy), _7011, _21058);
vec3 _12104 = _12348._m5 * clamp(textureLod(SPIRV_Cross_Combined, _13150, 0.0).w * _22044._m1, 0.0, 1.0);
vec4 _17671 = textureLod(SPIRV_Cross_Combined_1, _13150, 0.0);
float _16939 = _17671.y;
@ -135,7 +136,7 @@ void main()
{
_7720 = _12104;
}
vec2 _13151 = clamp(fma(gl_FragCoord.xy, _15259._m23.xy, vec2(0.0, -1.0) * _22044._m0.xy), _7011, _21058);
vec2 _13151 = clamp(_19927 + (vec2(0.0, -1.0) * _22044._m0.xy), _7011, _21058);
vec3 _12105 = _12348._m5 * clamp(textureLod(SPIRV_Cross_Combined, _13151, 0.0).w * _22044._m1, 0.0, 1.0);
vec4 _17672 = textureLod(SPIRV_Cross_Combined_1, _13151, 0.0);
float _16940 = _17672.y;
@ -149,7 +150,7 @@ void main()
{
_7721 = _12105;
}
vec2 _13152 = clamp(fma(gl_FragCoord.xy, _15259._m23.xy, vec2(1.0, -1.0) * _22044._m0.xy), _7011, _21058);
vec2 _13152 = clamp(_19927 + (vec2(1.0, -1.0) * _22044._m0.xy), _7011, _21058);
vec3 _12106 = _12348._m5 * clamp(textureLod(SPIRV_Cross_Combined, _13152, 0.0).w * _22044._m1, 0.0, 1.0);
vec4 _17673 = textureLod(SPIRV_Cross_Combined_1, _13152, 0.0);
float _16941 = _17673.y;
@ -163,7 +164,7 @@ void main()
{
_7722 = _12106;
}
vec2 _13153 = clamp(fma(gl_FragCoord.xy, _15259._m23.xy, vec2(-2.0, 0.0) * _22044._m0.xy), _7011, _21058);
vec2 _13153 = clamp(_19927 + (vec2(-2.0, 0.0) * _22044._m0.xy), _7011, _21058);
vec3 _12107 = _12348._m5 * clamp(textureLod(SPIRV_Cross_Combined, _13153, 0.0).w * _22044._m1, 0.0, 1.0);
vec4 _17674 = textureLod(SPIRV_Cross_Combined_1, _13153, 0.0);
float _16942 = _17674.y;
@ -177,7 +178,7 @@ void main()
{
_7723 = _12107;
}
vec2 _13154 = clamp(fma(gl_FragCoord.xy, _15259._m23.xy, vec2(-1.0, 0.0) * _22044._m0.xy), _7011, _21058);
vec2 _13154 = clamp(_19927 + (vec2(-1.0, 0.0) * _22044._m0.xy), _7011, _21058);
vec3 _12108 = _12348._m5 * clamp(textureLod(SPIRV_Cross_Combined, _13154, 0.0).w * _22044._m1, 0.0, 1.0);
vec4 _17675 = textureLod(SPIRV_Cross_Combined_1, _13154, 0.0);
float _16943 = _17675.y;
@ -191,7 +192,7 @@ void main()
{
_7724 = _12108;
}
vec2 _13155 = clamp(gl_FragCoord.xy * _15259._m23.xy, _7011, _21058);
vec2 _13155 = clamp(_19927, _7011, _21058);
vec3 _12109 = _12348._m5 * clamp(textureLod(SPIRV_Cross_Combined, _13155, 0.0).w * _22044._m1, 0.0, 1.0);
vec4 _17676 = textureLod(SPIRV_Cross_Combined_1, _13155, 0.0);
float _16944 = _17676.y;
@ -205,7 +206,7 @@ void main()
{
_7725 = _12109;
}
vec2 _13156 = clamp(fma(gl_FragCoord.xy, _15259._m23.xy, vec2(1.0, 0.0) * _22044._m0.xy), _7011, _21058);
vec2 _13156 = clamp(_19927 + (vec2(1.0, 0.0) * _22044._m0.xy), _7011, _21058);
vec3 _12110 = _12348._m5 * clamp(textureLod(SPIRV_Cross_Combined, _13156, 0.0).w * _22044._m1, 0.0, 1.0);
vec4 _17677 = textureLod(SPIRV_Cross_Combined_1, _13156, 0.0);
float _16945 = _17677.y;
@ -219,7 +220,7 @@ void main()
{
_7726 = _12110;
}
vec2 _13157 = clamp(fma(gl_FragCoord.xy, _15259._m23.xy, vec2(2.0, 0.0) * _22044._m0.xy), _7011, _21058);
vec2 _13157 = clamp(_19927 + (vec2(2.0, 0.0) * _22044._m0.xy), _7011, _21058);
vec3 _12111 = _12348._m5 * clamp(textureLod(SPIRV_Cross_Combined, _13157, 0.0).w * _22044._m1, 0.0, 1.0);
vec4 _17678 = textureLod(SPIRV_Cross_Combined_1, _13157, 0.0);
float _16946 = _17678.y;
@ -233,7 +234,7 @@ void main()
{
_7727 = _12111;
}
vec2 _13158 = clamp(fma(gl_FragCoord.xy, _15259._m23.xy, vec2(-1.0, 1.0) * _22044._m0.xy), _7011, _21058);
vec2 _13158 = clamp(_19927 + (vec2(-1.0, 1.0) * _22044._m0.xy), _7011, _21058);
vec3 _12112 = _12348._m5 * clamp(textureLod(SPIRV_Cross_Combined, _13158, 0.0).w * _22044._m1, 0.0, 1.0);
vec4 _17679 = textureLod(SPIRV_Cross_Combined_1, _13158, 0.0);
float _16947 = _17679.y;
@ -247,7 +248,7 @@ void main()
{
_7728 = _12112;
}
vec2 _13159 = clamp(fma(gl_FragCoord.xy, _15259._m23.xy, vec2(0.0, 1.0) * _22044._m0.xy), _7011, _21058);
vec2 _13159 = clamp(_19927 + (vec2(0.0, 1.0) * _22044._m0.xy), _7011, _21058);
vec3 _12113 = _12348._m5 * clamp(textureLod(SPIRV_Cross_Combined, _13159, 0.0).w * _22044._m1, 0.0, 1.0);
vec4 _17680 = textureLod(SPIRV_Cross_Combined_1, _13159, 0.0);
float _16948 = _17680.y;
@ -261,7 +262,7 @@ void main()
{
_7729 = _12113;
}
vec2 _13160 = clamp(fma(gl_FragCoord.xy, _15259._m23.xy, _22044._m0.xy), _7011, _21058);
vec2 _13160 = clamp(_19927 + _22044._m0.xy, _7011, _21058);
vec3 _12114 = _12348._m5 * clamp(textureLod(SPIRV_Cross_Combined, _13160, 0.0).w * _22044._m1, 0.0, 1.0);
vec4 _17681 = textureLod(SPIRV_Cross_Combined_1, _13160, 0.0);
float _16949 = _17681.y;
@ -275,7 +276,7 @@ void main()
{
_7730 = _12114;
}
vec2 _13161 = clamp(fma(gl_FragCoord.xy, _15259._m23.xy, vec2(0.0, 2.0) * _22044._m0.xy), _7011, _21058);
vec2 _13161 = clamp(_19927 + (vec2(0.0, 2.0) * _22044._m0.xy), _7011, _21058);
vec3 _12115 = _12348._m5 * clamp(textureLod(SPIRV_Cross_Combined, _13161, 0.0).w * _22044._m1, 0.0, 1.0);
vec4 _17682 = textureLod(SPIRV_Cross_Combined_1, _13161, 0.0);
float _16950 = _17682.y;

View File

@ -27,12 +27,8 @@ void main()
vec2 _128 = _59.zw;
vec2 _157 = ((textureLodOffset(uDisplacement, _128, 0.0, ivec2(1, 0)).xy - textureLodOffset(uDisplacement, _128, 0.0, ivec2(-1, 0)).xy) * 0.60000002384185791015625) * _46.uScale.z;
vec2 _161 = ((textureLodOffset(uDisplacement, _128, 0.0, ivec2(0, 1)).xy - textureLodOffset(uDisplacement, _128, 0.0, ivec2(0, -1)).xy) * 0.60000002384185791015625) * _46.uScale.z;
mediump float _203 = _157.y * _161.x;
float hp_copy_203 = _203;
float _209 = -hp_copy_203;
mediump float mp_copy_209 = _209;
ivec2 _172 = ivec2(gl_GlobalInvocationID.xy);
imageStore(iHeightDisplacement, _172, vec4(textureLod(uHeight, _67, 0.0).x, 0.0, 0.0, 0.0));
imageStore(iGradJacobian, _172, vec4((_46.uScale.xy * 0.5) * vec2(hp_copy_87 - hp_copy_79, hp_copy_101 - hp_copy_94), (1.0 + _157.x) * (1.0 + _161.y) + mp_copy_209, 0.0));
imageStore(iGradJacobian, _172, vec4((_46.uScale.xy * 0.5) * vec2(hp_copy_87 - hp_copy_79, hp_copy_101 - hp_copy_94), ((1.0 + _157.x) * (1.0 + _161.y)) - (_157.y * _161.x), 0.0));
}

View File

@ -50,7 +50,7 @@ void main()
vec2 _396 = _317.yy;
vec2 _399 = _396 * _137.distribution[_281].yx;
vec2 _426 = _396 * _137.distribution[_291].yx;
vec2 _434 = _137.distribution[_291] * _391 + vec2(-_426.x, _426.y);
_225.heights[_281] = packHalf2x16((_137.distribution[_281] * _391 + vec2(-_399.x, _399.y)) + vec2(_434.x, -_434.y));
vec2 _434 = (_137.distribution[_291] * _391) + vec2(-_426.x, _426.y);
_225.heights[_281] = packHalf2x16(((_137.distribution[_281] * _391) + vec2(-_399.x, _399.y)) + vec2(_434.x, -_434.y));
}

View File

@ -20,7 +20,7 @@ void main()
_62 = 0.0;
for (float _61 = 0.0; _61 < _44.count; )
{
_62 = _24 * _34 + _62;
_62 += (_24 * _34);
_61 += 1.0;
continue;
}

View File

@ -26,13 +26,10 @@ void main()
vec3 _68 = normalize((texture(TexNormalmap, TexCoord).xyz * 2.0) - vec3(1.0));
float _113 = smoothstep(0.0, 0.1500000059604644775390625, (_101.g_CamPos.y + EyeVec.y) * 0.004999999888241291046142578125);
float _125 = smoothstep(0.699999988079071044921875, 0.75, _68.y);
highp float hp_copy_125 = _125;
vec3 _130 = mix(vec3(0.100000001490116119384765625), mix(vec3(0.100000001490116119384765625, 0.300000011920928955078125, 0.100000001490116119384765625), vec3(0.800000011920928955078125), vec3(_113)), vec3(_125));
highp float _172 = -hp_copy_125;
float mp_copy_172 = _172;
LightingOut = vec4(0.0);
NormalOut = vec4((_68 * 0.5) + vec3(0.5), 0.0);
SpecularOut = vec4(mp_copy_172 * _113 + 1.0, 0.0, 0.0, 0.0);
SpecularOut = vec4(1.0 - (_125 * _113), 0.0, 0.0, 0.0);
AlbedoOut = vec4(_130 * _130, 1.0);
}

View File

@ -41,6 +41,6 @@ void main()
{
FragColor = (((spvWorkaroundRowMajor(_17.rm2).rm.B * spvWorkaroundRowMajor(_35.rm.B)) * spvWorkaroundRowMajor(_42.A)) * spvWorkaroundRowMajor(_42.C)) * Clip;
FragColor += (_56.D * Clip);
FragColor = fma(_42.A[1], Clip, FragColor);
FragColor += (_42.A[1] * Clip);
}

View File

@ -2,6 +2,11 @@
#extension GL_NV_geometry_shader_passthrough : require
layout(triangles) in;
layout(passthrough) in gl_PerVertex
{
vec4 gl_Position;
} gl_in[];
layout(passthrough, location = 0) in VertexBlock
{
int a;

View File

@ -46,20 +46,20 @@ void main()
else
{
vOutPatchPosBase = vPatchPosBase[0];
vec2 _681 = (vec2(-0.5) * _41.uPatchSize + vPatchPosBase[0]) * _41.uScale.xy;
vec2 _710 = (vec2(0.5, -0.5) * _41.uPatchSize + vPatchPosBase[0]) * _41.uScale.xy;
vec2 _681 = (vPatchPosBase[0] + (vec2(-0.5) * _41.uPatchSize)) * _41.uScale.xy;
vec2 _710 = (vPatchPosBase[0] + (vec2(0.5, -0.5) * _41.uPatchSize)) * _41.uScale.xy;
float _729 = clamp(log2((length(_41.uCamPos - vec3(_710.x, 0.0, _710.y)) + 9.9999997473787516355514526367188e-05) * _41.uDistanceMod), 0.0, _41.uMaxTessLevel.x);
vec2 _739 = (vec2(1.5, -0.5) * _41.uPatchSize + vPatchPosBase[0]) * _41.uScale.xy;
vec2 _768 = (vec2(-0.5, 0.5) * _41.uPatchSize + vPatchPosBase[0]) * _41.uScale.xy;
vec2 _739 = (vPatchPosBase[0] + (vec2(1.5, -0.5) * _41.uPatchSize)) * _41.uScale.xy;
vec2 _768 = (vPatchPosBase[0] + (vec2(-0.5, 0.5) * _41.uPatchSize)) * _41.uScale.xy;
float _787 = clamp(log2((length(_41.uCamPos - vec3(_768.x, 0.0, _768.y)) + 9.9999997473787516355514526367188e-05) * _41.uDistanceMod), 0.0, _41.uMaxTessLevel.x);
vec2 _797 = (vec2(0.5) * _41.uPatchSize + vPatchPosBase[0]) * _41.uScale.xy;
vec2 _797 = (vPatchPosBase[0] + (vec2(0.5) * _41.uPatchSize)) * _41.uScale.xy;
float _816 = clamp(log2((length(_41.uCamPos - vec3(_797.x, 0.0, _797.y)) + 9.9999997473787516355514526367188e-05) * _41.uDistanceMod), 0.0, _41.uMaxTessLevel.x);
vec2 _826 = (vec2(1.5, 0.5) * _41.uPatchSize + vPatchPosBase[0]) * _41.uScale.xy;
vec2 _826 = (vPatchPosBase[0] + (vec2(1.5, 0.5) * _41.uPatchSize)) * _41.uScale.xy;
float _845 = clamp(log2((length(_41.uCamPos - vec3(_826.x, 0.0, _826.y)) + 9.9999997473787516355514526367188e-05) * _41.uDistanceMod), 0.0, _41.uMaxTessLevel.x);
vec2 _855 = (vec2(-0.5, 1.5) * _41.uPatchSize + vPatchPosBase[0]) * _41.uScale.xy;
vec2 _884 = (vec2(0.5, 1.5) * _41.uPatchSize + vPatchPosBase[0]) * _41.uScale.xy;
vec2 _855 = (vPatchPosBase[0] + (vec2(-0.5, 1.5) * _41.uPatchSize)) * _41.uScale.xy;
vec2 _884 = (vPatchPosBase[0] + (vec2(0.5, 1.5) * _41.uPatchSize)) * _41.uScale.xy;
float _903 = clamp(log2((length(_41.uCamPos - vec3(_884.x, 0.0, _884.y)) + 9.9999997473787516355514526367188e-05) * _41.uDistanceMod), 0.0, _41.uMaxTessLevel.x);
vec2 _913 = (vec2(1.5) * _41.uPatchSize + vPatchPosBase[0]) * _41.uScale.xy;
vec2 _913 = (vPatchPosBase[0] + (vec2(1.5) * _41.uPatchSize)) * _41.uScale.xy;
float _614 = dot(vec4(_787, _816, clamp(log2((length(_41.uCamPos - vec3(_855.x, 0.0, _855.y)) + 9.9999997473787516355514526367188e-05) * _41.uDistanceMod), 0.0, _41.uMaxTessLevel.x), _903), vec4(0.25));
float _620 = dot(vec4(clamp(log2((length(_41.uCamPos - vec3(_681.x, 0.0, _681.y)) + 9.9999997473787516355514526367188e-05) * _41.uDistanceMod), 0.0, _41.uMaxTessLevel.x), _729, _787, _816), vec4(0.25));
float _626 = dot(vec4(_729, clamp(log2((length(_41.uCamPos - vec3(_739.x, 0.0, _739.y)) + 9.9999997473787516355514526367188e-05) * _41.uDistanceMod), 0.0, _41.uMaxTessLevel.x), _816, _845), vec4(0.25));

View File

@ -21,15 +21,16 @@ layout(location = 0) out vec3 vWorld;
void main()
{
vec2 _202 = gl_TessCoord.xy * _31.uPatchSize + vOutPatchPosBase;
vec2 _202 = vOutPatchPosBase + (gl_TessCoord.xy * _31.uPatchSize);
vec2 _216 = mix(vPatchLods.yx, vPatchLods.zw, vec2(gl_TessCoord.x));
float _223 = mix(_216.x, _216.y, gl_TessCoord.y);
mediump float mp_copy_223 = _223;
mediump float _225 = floor(mp_copy_223);
vec2 _125 = _202 * _31.uInvHeightmapSize;
vec2 _141 = _31.uInvHeightmapSize * exp2(_225);
vGradNormalTex = vec4(_202 * _31.uInvHeightmapSize + (_31.uInvHeightmapSize * 0.5), (_202 * _31.uInvHeightmapSize) * _31.uScale.zw);
mediump vec3 _256 = mix(textureLod(uHeightmapDisplacement, _202 * _31.uInvHeightmapSize + (_141 * 0.5), _225).xyz, textureLod(uHeightmapDisplacement, _202 * _31.uInvHeightmapSize + (_141 * 1.0), _225 + 1.0).xyz, vec3(mp_copy_223 - _225));
vec2 _171 = _202 * _31.uScale.xy + _256.yz;
vGradNormalTex = vec4(_125 + (_31.uInvHeightmapSize * 0.5), _125 * _31.uScale.zw);
mediump vec3 _256 = mix(textureLod(uHeightmapDisplacement, _125 + (_141 * 0.5), _225).xyz, textureLod(uHeightmapDisplacement, _125 + (_141 * 1.0), _225 + 1.0).xyz, vec3(mp_copy_223 - _225));
vec2 _171 = (_202 * _31.uScale.xy) + _256.yz;
vWorld = vec3(_171.x, _256.x, _171.y);
gl_Position = _31.uMVP * vec4(vWorld, 1.0);
}

View File

@ -82,17 +82,14 @@ void main()
_385 = 0u;
}
vec4 _345 = vec4((_310 + uvec2(_384, _385)).xyxy & (~_317).xxyy);
vec2 _167 = _53.Patches[(gl_InstanceID + SPIRV_Cross_BaseInstance)].Position.xz * _156.InvGroundSize_PatchScale.zw + mix(_345.xy, _345.zw, vec2(_301 - _303));
vec2 _173 = _167 * _156.InvGroundSize_PatchScale.xy;
mediump vec4 _360 = textureLod(TexLOD, _173, 0.0);
mediump float _361 = _360.x;
mediump float _362 = _361 * 7.96875;
vec2 _173 = ((_53.Patches[(gl_InstanceID + SPIRV_Cross_BaseInstance)].Position.xz * _156.InvGroundSize_PatchScale.zw) + mix(_345.xy, _345.zw, vec2(_301 - _303))) * _156.InvGroundSize_PatchScale.xy;
mediump float _362 = textureLod(TexLOD, _173, 0.0).x * 7.96875;
float hp_copy_362 = _362;
float _364 = floor(hp_copy_362);
vec2 _185 = _156.InvGroundSize_PatchScale.xy * exp2(_364);
vec3 _230 = vec3(_173.x, mix(textureLod(TexHeightmap, _167 * _156.InvGroundSize_PatchScale.xy + (_185 * 0.5), _364).x, textureLod(TexHeightmap, _167 * _156.InvGroundSize_PatchScale.xy + (_185 * 1.0), _364 + 1.0).x, _361 * 7.96875 + (-_364)), _173.y) * _156.GroundScale.xyz + _156.GroundPosition.xyz;
vec3 _230 = (vec3(_173.x, mix(textureLod(TexHeightmap, _173 + (_185 * 0.5), _364).x, textureLod(TexHeightmap, _173 + (_185 * 1.0), _364 + 1.0).x, _362 - _364), _173.y) * _156.GroundScale.xyz) + _156.GroundPosition.xyz;
EyeVec = _230 - _236.g_CamPos.xyz;
TexCoord = _167 * _156.InvGroundSize_PatchScale.xy + (_156.InvGroundSize_PatchScale.xy * 0.5);
TexCoord = _173 + (_156.InvGroundSize_PatchScale.xy * 0.5);
gl_Position = (((_236.g_ViewProj_Row0 * _230.x) + (_236.g_ViewProj_Row1 * _230.y)) + (_236.g_ViewProj_Row2 * _230.z)) + _236.g_ViewProj_Row3;
}

View File

@ -9,7 +9,8 @@ layout(location = 0) invariant out vec4 vColor;
void main()
{
vec4 _21 = vInput1 * vInput2 + vInput0;
vec4 _20 = vInput1 * vInput2;
vec4 _21 = vInput0 + _20;
gl_Position = _21;
vec4 _27 = vInput0 - vInput1;
vec4 _29 = _27 * vInput2;

View File

@ -103,17 +103,15 @@ void main()
_474 = 0u;
}
vec4 _416 = vec4((_360.xyxy + uvec4(_467, _470, _472, _474)) & (~_367).xxyy);
vec2 _197 = (_53.Patches[(gl_InstanceID + SPIRV_Cross_BaseInstance)].Position.xz * _180.InvOceanSize_PatchScale.zw + mix(_416.xy, _416.zw, vec2(_351 - _353))) * _180.InvOceanSize_PatchScale.xy;
vec2 _197 = ((_53.Patches[(gl_InstanceID + SPIRV_Cross_BaseInstance)].Position.xz * _180.InvOceanSize_PatchScale.zw) + mix(_416.xy, _416.zw, vec2(_351 - _353))) * _180.InvOceanSize_PatchScale.xy;
vec2 _204 = _197 * _180.NormalTexCoordScale.zw;
mediump vec4 _431 = textureLod(TexLOD, _197, 0.0);
mediump float _432 = _431.x;
mediump float _433 = _432 * 7.96875;
mediump float _433 = textureLod(TexLOD, _197, 0.0).x * 7.96875;
float hp_copy_433 = _433;
float _435 = floor(hp_copy_433);
vec2 _220 = (_180.InvOceanSize_PatchScale.xy * exp2(_435)) * _180.NormalTexCoordScale.zw;
vec3 _267 = (vec3(_197.x, 0.0, _197.y) + mix(textureLod(TexDisplacement, _197 * _180.NormalTexCoordScale.zw + (_220 * 0.5), _435).yxz, textureLod(TexDisplacement, _197 * _180.NormalTexCoordScale.zw + (_220 * 1.0), _435 + 1.0).yxz, vec3(_432 * 7.96875 + (-_435)))) * _180.OceanScale.xyz + _180.OceanPosition.xyz;
vec3 _267 = ((vec3(_197.x, 0.0, _197.y) + mix(textureLod(TexDisplacement, _204 + (_220 * 0.5), _435).yxz, textureLod(TexDisplacement, _204 + (_220 * 1.0), _435 + 1.0).yxz, vec3(_433 - _435))) * _180.OceanScale.xyz) + _180.OceanPosition.xyz;
EyeVec = _267 - _273.g_CamPos.xyz;
TexCoord = (_180.InvOceanSize_PatchScale.xyxy * 0.5) * _180.NormalTexCoordScale.zwzw + vec4(_204, _204 * _180.NormalTexCoordScale.xy);
TexCoord = vec4(_204, _204 * _180.NormalTexCoordScale.xy) + ((_180.InvOceanSize_PatchScale.xyxy * 0.5) * _180.NormalTexCoordScale.zwzw);
gl_Position = (((_273.g_ViewProj_Row0 * _267.x) + (_273.g_ViewProj_Row1 * _267.y)) + (_273.g_ViewProj_Row2 * _267.z)) + _273.g_ViewProj_Row3;
}

View File

@ -4,13 +4,13 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
layout(binding = 0, std430) buffer SSBO
{
int v[];
} _65;
} _66;
void main()
{
for (int i = 0; i < 4; i++)
{
_65.v[i] += 10;
_66.v[i] += 10;
}
}

View File

@ -35,12 +35,8 @@
OpDecorate %16 Binding 0
OpDecorate %30 BuiltIn TessLevelOuter
OpDecorate %30 Patch
OpDecorate %30 Patch
OpDecorate %30 Patch
OpDecorate %30 Patch
OpDecorate %80 BuiltIn TessLevelInner
OpDecorate %80 Patch
OpDecorate %80 Patch
OpDecorate %101 Location 0
OpDecorate %103 Location 1
OpDecorate %108 Location 2

View File

@ -35,12 +35,8 @@
OpDecorate %16 Binding 0
OpDecorate %30 BuiltIn TessLevelOuter
OpDecorate %30 Patch
OpDecorate %30 Patch
OpDecorate %30 Patch
OpDecorate %30 Patch
OpDecorate %80 BuiltIn TessLevelInner
OpDecorate %80 Patch
OpDecorate %80 Patch
OpDecorate %101 Location 0
OpDecorate %103 Location 1
OpDecorate %108 Location 2