add inital starfox zero pack

doesn't do any shader scaling yet, AA is disabled by default
This commit is contained in:
Michael 2019-01-28 15:38:04 -08:00
parent 849691b1f6
commit e71fff7263
3 changed files with 1529 additions and 0 deletions

View File

@ -0,0 +1,678 @@
#version 420
#extension GL_ARB_texture_gather : enable
#extension GL_ARB_separate_shader_objects : enable
// shader 43b6693ca98767b2 - Gamepad AA
layout(binding = 0) uniform sampler2D textureUnitPS0;// Tex0 addr 0xf4fa8800 res 854x480x1 dim 1 tm: 4 format 001a compSel: 0 1 2 3 mipView: 0x0 (num 0x1) sliceView: 0x0 (num 0x1) Sampler0 ClampX/Y/Z: 2 2 2 border: 0
layout(location = 0) in vec4 passParameterSem133;
layout(location = 0) out vec4 passPixelColor0;
uniform vec2 uf_fragCoordScale;
int clampFI32(int v)
{
if( v == 0x7FFFFFFF )
return floatBitsToInt(1.0);
else if( v == 0xFFFFFFFF )
return floatBitsToInt(0.0);
return floatBitsToInt(clamp(intBitsToFloat(v), 0.0, 1.0));
}
float mul_nonIEEE(float a, float b){ if( a == 0.0 || b == 0.0 ) return 0.0; return a*b; }
void main()
{
ivec4 R0i = ivec4(0);
ivec4 R1i = ivec4(0);
ivec4 R2i = ivec4(0);
ivec4 R3i = ivec4(0);
ivec4 R4i = ivec4(0);
ivec4 R5i = ivec4(0);
ivec4 R6i = ivec4(0);
ivec4 R7i = ivec4(0);
ivec4 R8i = ivec4(0);
ivec4 R9i = ivec4(0);
ivec4 R10i = ivec4(0);
ivec4 R11i = ivec4(0);
ivec4 R12i = ivec4(0);
ivec4 R13i = ivec4(0);
ivec4 R14i = ivec4(0);
ivec4 R15i = ivec4(0);
ivec4 R16i = ivec4(0);
ivec4 R17i = ivec4(0);
ivec4 R18i = ivec4(0);
ivec4 R19i = ivec4(0);
ivec4 R20i = ivec4(0);
ivec4 R21i = ivec4(0);
ivec4 R22i = ivec4(0);
ivec4 R23i = ivec4(0);
ivec4 R24i = ivec4(0);
ivec4 R25i = ivec4(0);
ivec4 R122i = ivec4(0);
ivec4 R123i = ivec4(0);
ivec4 R124i = ivec4(0);
ivec4 R125i = ivec4(0);
ivec4 R126i = ivec4(0);
ivec4 R127i = ivec4(0);
int backupReg0i, backupReg1i, backupReg2i, backupReg3i, backupReg4i;
ivec4 PV0i = ivec4(0), PV1i = ivec4(0);
int PS0i = 0, PS1i = 0;
ivec4 tempi = ivec4(0);
float tempResultf;
int tempResulti;
ivec4 ARi = ivec4(0);
bool predResult = true;
bool activeMaskStack[2];
bool activeMaskStackC[3];
activeMaskStack[0] = false;
activeMaskStackC[0] = false;
activeMaskStackC[1] = false;
activeMaskStack[0] = true;
activeMaskStackC[0] = true;
activeMaskStackC[1] = true;
vec3 cubeMapSTM;
int cubeMapFaceId;
R0i = floatBitsToInt(passParameterSem133);
if( activeMaskStackC[1] == true ) {
// 0
R1i.xyz = floatBitsToInt(vec3(intBitsToFloat(R0i.x),intBitsToFloat(R0i.y),intBitsToFloat(R0i.x)) + vec3(0.0,0.0,intBitsToFloat(0xbae6385a)));
R1i.w = floatBitsToInt(intBitsToFloat(R0i.y) + 0.0);
R2i.x = floatBitsToInt(intBitsToFloat(R0i.x) + intBitsToFloat(0x3ae6385a));
PS0i = R2i.x;
// 1
R3i.x = floatBitsToInt(intBitsToFloat(R0i.x) + 0.0);
R2i.y = floatBitsToInt(intBitsToFloat(R0i.y) + 0.0);
R3i.zwy = floatBitsToInt(vec3(intBitsToFloat(R0i.y),intBitsToFloat(R0i.x),intBitsToFloat(R0i.y)) + vec3(intBitsToFloat(0xbb4cccce),0.0,intBitsToFloat(0x3b4cccce)));
PS1i = R3i.y;
}
if( activeMaskStackC[1] == true ) {
R13i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R1i.xy)).xyzw);
R14i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R1i.zw)).xyzw);
R15i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R2i.xy)).xyzw);
R16i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R3i.xz)).xyzw);
R17i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R3i.wy)).xyzw);
}
if( activeMaskStackC[1] == true ) {
// 0
R127i.x = floatBitsToInt(intBitsToFloat(R14i.y) + intBitsToFloat(R15i.y));
R127i.x = floatBitsToInt(intBitsToFloat(R127i.x) * 2.0);
R127i.y = floatBitsToInt(intBitsToFloat(R14i.x) + intBitsToFloat(R15i.x));
R127i.y = floatBitsToInt(intBitsToFloat(R127i.y) * 2.0);
R127i.z = floatBitsToInt(intBitsToFloat(R14i.z) + intBitsToFloat(R15i.z));
R127i.z = floatBitsToInt(intBitsToFloat(R127i.z) * 2.0);
R127i.w = floatBitsToInt(intBitsToFloat(R14i.w) + intBitsToFloat(R15i.w));
R127i.w = floatBitsToInt(intBitsToFloat(R127i.w) * 2.0);
R3i.x = floatBitsToInt(intBitsToFloat(R0i.x) + intBitsToFloat(0xba997ae7));
PS0i = R3i.x;
// 1
R5i.x = floatBitsToInt(intBitsToFloat(R16i.z) + intBitsToFloat(R17i.z));
R5i.x = floatBitsToInt(intBitsToFloat(R5i.x) * 2.0);
R5i.y = floatBitsToInt(intBitsToFloat(R16i.w) + intBitsToFloat(R17i.w));
R5i.y = floatBitsToInt(intBitsToFloat(R5i.y) * 2.0);
R2i.z = floatBitsToInt(intBitsToFloat(R16i.x) + intBitsToFloat(R17i.x));
R2i.z = floatBitsToInt(intBitsToFloat(R2i.z) * 2.0);
R2i.w = floatBitsToInt(intBitsToFloat(R16i.y) + intBitsToFloat(R17i.y));
R2i.w = floatBitsToInt(intBitsToFloat(R2i.w) * 2.0);
R3i.y = floatBitsToInt(intBitsToFloat(R0i.y) + 0.0);
PS1i = R3i.y;
// 2
R2i.x = floatBitsToInt(intBitsToFloat(R0i.x) + intBitsToFloat(0x3a997ae7));
R2i.y = floatBitsToInt(intBitsToFloat(R0i.y) + 0.0);
R3i.z = floatBitsToInt(intBitsToFloat(R0i.x) + 0.0);
R3i.w = floatBitsToInt(intBitsToFloat(R0i.y) + intBitsToFloat(0xbb088889));
R1i.x = floatBitsToInt(intBitsToFloat(R0i.x) + 0.0);
PS0i = R1i.x;
// 3
R4i.x = floatBitsToInt((intBitsToFloat(R13i.x) * 2.0 + intBitsToFloat(R127i.y)));
R1i.y = floatBitsToInt(intBitsToFloat(R0i.y) + intBitsToFloat(0x3b088889));
R1i.z = floatBitsToInt((intBitsToFloat(R13i.y) * 2.0 + intBitsToFloat(R127i.x)));
R1i.w = floatBitsToInt((intBitsToFloat(R13i.z) * 2.0 + intBitsToFloat(R127i.z)));
R4i.y = floatBitsToInt((intBitsToFloat(R13i.w) * 2.0 + intBitsToFloat(R127i.w)));
PS1i = R4i.y;
}
if( activeMaskStackC[1] == true ) {
R18i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R3i.xy)).xyzw);
R19i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R2i.xy)).xyzw);
R20i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R3i.zw)).xyzw);
R21i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R1i.xy)).xyzw);
}
if( activeMaskStackC[1] == true ) {
// 0
PV0i.x = floatBitsToInt(intBitsToFloat(R18i.y) + intBitsToFloat(R19i.y));
PV0i.y = floatBitsToInt(intBitsToFloat(R18i.x) + intBitsToFloat(R19i.x));
R127i.z = floatBitsToInt(intBitsToFloat(R18i.z) + intBitsToFloat(R19i.z));
R125i.w = floatBitsToInt(intBitsToFloat(R4i.x) * intBitsToFloat(0x3e2aaaab));
R124i.y = floatBitsToInt(intBitsToFloat(R1i.z) * intBitsToFloat(0x3e2aaaab));
PS0i = R124i.y;
// 1
PV1i.x = floatBitsToInt(intBitsToFloat(R20i.x) + intBitsToFloat(R21i.x));
R123i.y = floatBitsToInt((-(intBitsToFloat(R13i.x)) * 2.0 + intBitsToFloat(PV0i.y)));
PV1i.y = R123i.y;
R126i.z = floatBitsToInt(intBitsToFloat(R20i.z) + intBitsToFloat(R21i.z));
PV1i.w = floatBitsToInt(intBitsToFloat(R20i.y) + intBitsToFloat(R21i.y));
R122i.x = floatBitsToInt((-(intBitsToFloat(R13i.y)) * 2.0 + intBitsToFloat(PV0i.x)));
PS1i = R122i.x;
// 2
R123i.x = floatBitsToInt((-(intBitsToFloat(R13i.z)) * 2.0 + intBitsToFloat(R127i.z)));
PV0i.x = R123i.x;
R123i.y = floatBitsToInt((-(intBitsToFloat(R13i.x)) * 2.0 + intBitsToFloat(PV1i.x)));
PV0i.y = R123i.y;
PV0i.z = floatBitsToInt(max(intBitsToFloat(PV1i.y), -(intBitsToFloat(PV1i.y))));
PV0i.w = floatBitsToInt(max(intBitsToFloat(PS1i), -(intBitsToFloat(PS1i))));
R127i.x = floatBitsToInt((-(intBitsToFloat(R13i.y)) * 2.0 + intBitsToFloat(PV1i.w)));
PS0i = R127i.x;
// 3
backupReg0i = R126i.z;
R126i.x = floatBitsToInt(intBitsToFloat(PV0i.z) * 0.5);
PV1i.y = floatBitsToInt(max(intBitsToFloat(PV0i.x), -(intBitsToFloat(PV0i.x))));
R126i.z = floatBitsToInt(intBitsToFloat(PV0i.w) * 0.5);
R123i.w = floatBitsToInt((-(intBitsToFloat(R13i.z)) * 2.0 + intBitsToFloat(backupReg0i)));
PV1i.w = R123i.w;
PS1i = floatBitsToInt(max(intBitsToFloat(PV0i.y), -(intBitsToFloat(PV0i.y))));
// 4
backupReg0i = R127i.x;
backupReg0i = R127i.x;
R127i.x = floatBitsToInt(intBitsToFloat(PS1i) * 0.5);
PV0i.y = floatBitsToInt(max(intBitsToFloat(backupReg0i), -(intBitsToFloat(backupReg0i))));
PV0i.z = floatBitsToInt(intBitsToFloat(PV1i.y) * 0.5);
R127i.w = floatBitsToInt(max(intBitsToFloat(PV1i.w), -(intBitsToFloat(PV1i.w))));
R127i.z = floatBitsToInt(intBitsToFloat(R1i.w) * intBitsToFloat(0x3e2aaaab));
PS0i = R127i.z;
// 5
tempi.x = floatBitsToInt(dot(vec4(intBitsToFloat(R126i.x),intBitsToFloat(R126i.z),intBitsToFloat(PV0i.z),-0.0),vec4(intBitsToFloat(0x3e991687),intBitsToFloat(0x3f1645a2),intBitsToFloat(0x3de978d5),0.0)));
PV1i.x = tempi.x;
PV1i.y = tempi.x;
PV1i.z = tempi.x;
PV1i.w = tempi.x;
R126i.z = tempi.x;
R127i.y = floatBitsToInt(intBitsToFloat(PV0i.y) * 0.5);
PS1i = R127i.y;
// 6
R126i.x = floatBitsToInt(intBitsToFloat(R4i.y) * intBitsToFloat(0x3e2aaaab));
R126i.y = floatBitsToInt((intBitsToFloat(R13i.y) * 2.0 + intBitsToFloat(R2i.w)));
PV0i.z = floatBitsToInt(intBitsToFloat(R127i.w) * 0.5);
R127i.w = floatBitsToInt((intBitsToFloat(R13i.x) * 2.0 + intBitsToFloat(R2i.z)));
R125i.y = floatBitsToInt((intBitsToFloat(R13i.z) * 2.0 + intBitsToFloat(R5i.x)));
PS0i = R125i.y;
// 7
tempi.x = floatBitsToInt(dot(vec4(intBitsToFloat(R127i.x),intBitsToFloat(R127i.y),intBitsToFloat(PV0i.z),-0.0),vec4(intBitsToFloat(0x3e991687),intBitsToFloat(0x3f1645a2),intBitsToFloat(0x3de978d5),0.0)));
PV1i.x = tempi.x;
PV1i.y = tempi.x;
PV1i.z = tempi.x;
PV1i.w = tempi.x;
R126i.w = tempi.x;
R125i.z = floatBitsToInt(-(intBitsToFloat(R13i.x)) + intBitsToFloat(R125i.w));
PS1i = R125i.z;
// 8
R127i.x = floatBitsToInt(intBitsToFloat(R127i.w) * intBitsToFloat(0x3e2aaaab));
R127i.y = floatBitsToInt(intBitsToFloat(R126i.y) * intBitsToFloat(0x3e2aaaab));
R124i.z = floatBitsToInt(intBitsToFloat(R125i.y) * intBitsToFloat(0x3e2aaaab));
R123i.w = floatBitsToInt((intBitsToFloat(R13i.w) * 2.0 + intBitsToFloat(R5i.y)));
PV0i.w = R123i.w;
R126i.y = floatBitsToInt((intBitsToFloat(R126i.z) * intBitsToFloat(0x40400000) + intBitsToFloat(0xbdcccccd)));
PS0i = R126i.y;
// 9
backupReg0i = R126i.x;
R126i.x = floatBitsToInt(intBitsToFloat(PV0i.w) * intBitsToFloat(0x3e2aaaab));
R125i.y = floatBitsToInt((intBitsToFloat(R126i.w) * intBitsToFloat(0x40400000) + intBitsToFloat(0xbdcccccd)));
R126i.z = floatBitsToInt(-(intBitsToFloat(R13i.z)) + intBitsToFloat(R127i.z));
R126i.w = floatBitsToInt(-(intBitsToFloat(R13i.y)) + intBitsToFloat(R124i.y));
R127i.w = floatBitsToInt(-(intBitsToFloat(R13i.w)) + intBitsToFloat(backupReg0i));
PS1i = R127i.w;
// 10
backupReg0i = R0i.y;
tempi.x = floatBitsToInt(dot(vec4(intBitsToFloat(R127i.x),intBitsToFloat(R127i.y),intBitsToFloat(R124i.z),-0.0),vec4(intBitsToFloat(0x3e991687),intBitsToFloat(0x3f1645a2),intBitsToFloat(0x3de978d5),0.0)));
PV0i.x = tempi.x;
PV0i.y = tempi.x;
PV0i.z = tempi.x;
PV0i.w = tempi.x;
R5i.y = floatBitsToInt(intBitsToFloat(backupReg0i) + 0.0);
PS0i = R5i.y;
// 11
tempi.x = floatBitsToInt(dot(vec4(intBitsToFloat(R125i.w),intBitsToFloat(R124i.y),intBitsToFloat(R127i.z),-0.0),vec4(intBitsToFloat(0x3e991687),intBitsToFloat(0x3f1645a2),intBitsToFloat(0x3de978d5),0.0)));
PV1i.x = tempi.x;
PV1i.y = tempi.x;
PV1i.z = tempi.x;
PV1i.w = tempi.x;
PS1i = floatBitsToInt(1.0 / intBitsToFloat(PV0i.x));
// 12
R5i.x = floatBitsToInt(intBitsToFloat(R0i.x) + intBitsToFloat(0x3b864b8a));
R2i.y = floatBitsToInt(intBitsToFloat(R0i.y) + 0.0);
R2i.z = floatBitsToInt(intBitsToFloat(R0i.x) + intBitsToFloat(0x3bd308fe));
R125i.w = floatBitsToInt(intBitsToFloat(R126i.y) * intBitsToFloat(PS1i));
R125i.w = clampFI32(R125i.w);
PS0i = floatBitsToInt(1.0 / intBitsToFloat(PV1i.x));
// 13
R4i.x = floatBitsToInt(intBitsToFloat(R0i.x) + intBitsToFloat(0x3c0fe339));
R4i.y = floatBitsToInt(intBitsToFloat(R0i.y) + 0.0);
R1i.z = floatBitsToInt(intBitsToFloat(R0i.x) + intBitsToFloat(0xbb864b8a));
PV1i.w = floatBitsToInt(intBitsToFloat(R125i.y) * intBitsToFloat(PS0i));
PV1i.w = clampFI32(PV1i.w);
R1i.y = floatBitsToInt(intBitsToFloat(R0i.y) + 0.0);
PS1i = R1i.y;
// 14
R125i.x = floatBitsToInt((mul_nonIEEE(intBitsToFloat(R126i.z),intBitsToFloat(PV1i.w)) + intBitsToFloat(R13i.z)));
PV0i.x = R125i.x;
R125i.y = floatBitsToInt((mul_nonIEEE(intBitsToFloat(R127i.w),intBitsToFloat(PV1i.w)) + intBitsToFloat(R13i.w)));
PV0i.y = R125i.y;
R126i.z = floatBitsToInt((mul_nonIEEE(intBitsToFloat(R125i.z),intBitsToFloat(PV1i.w)) + intBitsToFloat(R13i.x)));
PV0i.z = R126i.z;
R127i.w = floatBitsToInt((mul_nonIEEE(intBitsToFloat(R126i.w),intBitsToFloat(PV1i.w)) + intBitsToFloat(R13i.y)));
PV0i.w = R127i.w;
R3i.x = floatBitsToInt(intBitsToFloat(R0i.x) + intBitsToFloat(0xbbd308fe));
PS0i = R3i.x;
// 15
backupReg0i = R0i.y;
PV1i.x = floatBitsToInt(intBitsToFloat(R124i.z) + -(intBitsToFloat(PV0i.x)));
PV1i.x = floatBitsToInt(intBitsToFloat(PV1i.x) / 2.0);
PV1i.y = floatBitsToInt(intBitsToFloat(R126i.x) + -(intBitsToFloat(PV0i.y)));
PV1i.y = floatBitsToInt(intBitsToFloat(PV1i.y) / 2.0);
PV1i.z = floatBitsToInt(intBitsToFloat(R127i.x) + -(intBitsToFloat(PV0i.z)));
PV1i.z = floatBitsToInt(intBitsToFloat(PV1i.z) / 2.0);
PV1i.w = floatBitsToInt(intBitsToFloat(R127i.y) + -(intBitsToFloat(PV0i.w)));
PV1i.w = floatBitsToInt(intBitsToFloat(PV1i.w) / 2.0);
R3i.y = floatBitsToInt(intBitsToFloat(backupReg0i) + 0.0);
PS1i = R3i.y;
// 16
R22i.x = floatBitsToInt((mul_nonIEEE(intBitsToFloat(PV1i.z),intBitsToFloat(R125i.w)) + intBitsToFloat(R126i.z)));
R22i.y = floatBitsToInt((mul_nonIEEE(intBitsToFloat(PV1i.w),intBitsToFloat(R125i.w)) + intBitsToFloat(R127i.w)));
R22i.z = floatBitsToInt((mul_nonIEEE(intBitsToFloat(PV1i.x),intBitsToFloat(R125i.w)) + intBitsToFloat(R125i.x)));
R22i.w = floatBitsToInt((mul_nonIEEE(intBitsToFloat(PV1i.y),intBitsToFloat(R125i.w)) + intBitsToFloat(R125i.y)));
R6i.x = floatBitsToInt(intBitsToFloat(R0i.x) + intBitsToFloat(0xbc0fe339));
PS0i = R6i.x;
}
if( activeMaskStackC[1] == true ) {
R9i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R5i.xy)).xyzw);
R10i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R2i.zy)).xyzw);
R11i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R4i.xy)).xyzw);
R12i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R1i.zy)).xyzw);
R23i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R3i.xy)).xyzw);
}
if( activeMaskStackC[1] == true ) {
// 0
backupReg0i = R0i.y;
backupReg0i = R0i.y;
R3i.x = floatBitsToInt(intBitsToFloat(R0i.x) + 0.0);
PV0i.y = floatBitsToInt(intBitsToFloat(R15i.w) + intBitsToFloat(R9i.w));
R6i.z = floatBitsToInt(intBitsToFloat(backupReg0i) + 0.0);
R3i.w = floatBitsToInt(intBitsToFloat(backupReg0i) + intBitsToFloat(0x3beeeef0));
R1i.x = floatBitsToInt(intBitsToFloat(R0i.x) + 0.0);
PS0i = R1i.x;
// 1
R4i.x = floatBitsToInt(intBitsToFloat(R10i.w) + intBitsToFloat(PV0i.y));
R1i.yzw = floatBitsToInt(vec3(intBitsToFloat(R0i.y),intBitsToFloat(R0i.x),intBitsToFloat(R0i.y)) + vec3(intBitsToFloat(0x3c3bbbbc),0.0,intBitsToFloat(0x3c800000)));
R2i.x = floatBitsToInt(intBitsToFloat(R0i.x) + 0.0);
PS1i = R2i.x;
}
if( activeMaskStackC[1] == true ) {
R24i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R6i.xz)).xyzw);
R6i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R3i.xw)).xyzw);
R7i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R1i.xy)).xyzw);
R8i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R1i.zw)).xyzw);
}
if( activeMaskStackC[1] == true ) {
// 0
backupReg0i = R4i.x;
R4i.x = floatBitsToInt(intBitsToFloat(R0i.x) + 0.0);
R2i.y = floatBitsToInt(intBitsToFloat(R0i.y) + intBitsToFloat(0xbbeeeef0));
PV0i.z = floatBitsToInt(intBitsToFloat(R11i.w) + intBitsToFloat(backupReg0i));
PV0i.w = floatBitsToInt(intBitsToFloat(R17i.w) + intBitsToFloat(R6i.w));
R4i.y = floatBitsToInt(intBitsToFloat(R0i.y) + intBitsToFloat(0xbc3bbbbc));
PS0i = R4i.y;
// 1
R1i.xyz = floatBitsToInt(vec3(intBitsToFloat(R0i.x),intBitsToFloat(R7i.w),intBitsToFloat(R0i.y)) + vec3(0.0,intBitsToFloat(PV0i.w),intBitsToFloat(0xbc800000)));
R1i.w = floatBitsToInt(intBitsToFloat(R14i.w) + intBitsToFloat(PV0i.z));
}
if( activeMaskStackC[1] == true ) {
R25i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R2i.xy)).xyzw);
R3i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R4i.xy)).xyzw);
R4i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R1i.xz)).xyzw);
}
if( activeMaskStackC[1] == true ) {
activeMaskStack[1] = activeMaskStack[0];
activeMaskStackC[2] = activeMaskStackC[1];
// 0
PV0i.x = floatBitsToInt(intBitsToFloat(R8i.w) + intBitsToFloat(R1i.y));
PV0i.y = floatBitsToInt(intBitsToFloat(R12i.w) + intBitsToFloat(R1i.w));
// 1
PV1i.x = floatBitsToInt(intBitsToFloat(R23i.w) + intBitsToFloat(PV0i.y));
PV1i.z = floatBitsToInt(intBitsToFloat(R16i.w) + intBitsToFloat(PV0i.x));
// 2
PV0i.z = floatBitsToInt(intBitsToFloat(R24i.w) + intBitsToFloat(PV1i.x));
PV0i.w = floatBitsToInt(intBitsToFloat(R25i.w) + intBitsToFloat(PV1i.z));
// 3
PV1i.y = floatBitsToInt(intBitsToFloat(R3i.w) + intBitsToFloat(PV0i.w));
PV1i.w = floatBitsToInt(intBitsToFloat(PV0i.z) * intBitsToFloat(0x3e000000));
PV1i.w = floatBitsToInt(intBitsToFloat(PV1i.w) * 2.0);
// 4
PV0i.x = floatBitsToInt(intBitsToFloat(R4i.w) + intBitsToFloat(PV1i.y));
R5i.z = floatBitsToInt(intBitsToFloat(PV1i.w) + -(1.0));
R5i.z = clampFI32(R5i.z);
// 5
PV1i.y = floatBitsToInt(intBitsToFloat(PV0i.x) * intBitsToFloat(0x3e000000));
PV1i.y = floatBitsToInt(intBitsToFloat(PV1i.y) * 2.0);
// 6
R0i.z = floatBitsToInt(intBitsToFloat(PV1i.y) + -(1.0));
R0i.z = clampFI32(R0i.z);
PV0i.z = R0i.z;
// 7
PV1i.x = floatBitsToInt(intBitsToFloat(R5i.z) + -(intBitsToFloat(PV0i.z)));
// 8
R1i.z = floatBitsToInt(max(intBitsToFloat(PV1i.x), -(intBitsToFloat(PV1i.x))));
// 9
predResult = (intBitsToFloat(R1i.z) > intBitsToFloat(0x3e4ccccd));
activeMaskStack[1] = predResult;
activeMaskStackC[2] = predResult == true && activeMaskStackC[1] == true;
}
else {
activeMaskStack[1] = false;
activeMaskStackC[2] = false;
}
if( activeMaskStackC[2] == true ) {
// 0
PV0i.x = floatBitsToInt(intBitsToFloat(R17i.x) + intBitsToFloat(R6i.x));
R124i.y = floatBitsToInt(intBitsToFloat(R13i.w) + -(intBitsToFloat(R18i.w)));
PV0i.z = floatBitsToInt(intBitsToFloat(R17i.z) + intBitsToFloat(R6i.z));
PV0i.w = floatBitsToInt(intBitsToFloat(R17i.y) + intBitsToFloat(R6i.y));
R2i.y = floatBitsToInt(intBitsToFloat(R13i.w) + -(intBitsToFloat(R20i.w)));
PS0i = R2i.y;
// 1
PV1i.x = floatBitsToInt(intBitsToFloat(R7i.y) + intBitsToFloat(PV0i.w));
PV1i.y = floatBitsToInt(intBitsToFloat(R7i.x) + intBitsToFloat(PV0i.x));
PV1i.z = floatBitsToInt(intBitsToFloat(R15i.x) + intBitsToFloat(R9i.x));
PV1i.w = floatBitsToInt(intBitsToFloat(R7i.z) + intBitsToFloat(PV0i.z));
R127i.x = floatBitsToInt(intBitsToFloat(R15i.y) + intBitsToFloat(R9i.y));
PS1i = R127i.x;
// 2
PV0i.x = floatBitsToInt(intBitsToFloat(R8i.z) + intBitsToFloat(PV1i.w));
PV0i.y = floatBitsToInt(intBitsToFloat(R8i.y) + intBitsToFloat(PV1i.x));
PV0i.z = floatBitsToInt(intBitsToFloat(R8i.x) + intBitsToFloat(PV1i.y));
PV0i.w = floatBitsToInt(intBitsToFloat(R15i.z) + intBitsToFloat(R9i.z));
R127i.z = floatBitsToInt(intBitsToFloat(R10i.x) + intBitsToFloat(PV1i.z));
PS0i = R127i.z;
// 3
PV1i.x = floatBitsToInt(intBitsToFloat(R10i.z) + intBitsToFloat(PV0i.w));
PV1i.y = floatBitsToInt(intBitsToFloat(R10i.y) + intBitsToFloat(R127i.x));
PV1i.z = floatBitsToInt(intBitsToFloat(R16i.y) + intBitsToFloat(PV0i.y));
PV1i.w = floatBitsToInt(intBitsToFloat(R16i.x) + intBitsToFloat(PV0i.z));
R127i.y = floatBitsToInt(intBitsToFloat(R16i.z) + intBitsToFloat(PV0i.x));
PS1i = R127i.y;
// 4
PV0i.x = floatBitsToInt(intBitsToFloat(R25i.x) + intBitsToFloat(PV1i.w));
PV0i.y = floatBitsToInt(intBitsToFloat(R11i.z) + intBitsToFloat(PV1i.x));
PV0i.z = floatBitsToInt(intBitsToFloat(R11i.y) + intBitsToFloat(PV1i.y));
PV0i.w = floatBitsToInt(intBitsToFloat(R11i.x) + intBitsToFloat(R127i.z));
R127i.w = floatBitsToInt(intBitsToFloat(R25i.y) + intBitsToFloat(PV1i.z));
PS0i = R127i.w;
// 5
PV1i.x = floatBitsToInt(intBitsToFloat(R14i.x) + intBitsToFloat(PV0i.w));
PV1i.y = floatBitsToInt(intBitsToFloat(R14i.z) + intBitsToFloat(PV0i.y));
PV1i.z = floatBitsToInt(intBitsToFloat(R25i.z) + intBitsToFloat(R127i.y));
PV1i.w = floatBitsToInt(intBitsToFloat(R14i.y) + intBitsToFloat(PV0i.z));
R127i.y = floatBitsToInt(intBitsToFloat(R3i.x) + intBitsToFloat(PV0i.x));
PS1i = R127i.y;
// 6
PV0i.x = floatBitsToInt(intBitsToFloat(R3i.y) + intBitsToFloat(R127i.w));
PV0i.y = floatBitsToInt(intBitsToFloat(R12i.x) + intBitsToFloat(PV1i.x));
PV0i.z = floatBitsToInt(intBitsToFloat(R12i.y) + intBitsToFloat(PV1i.w));
PV0i.w = floatBitsToInt(intBitsToFloat(R3i.z) + intBitsToFloat(PV1i.z));
R127i.w = floatBitsToInt(intBitsToFloat(R12i.z) + intBitsToFloat(PV1i.y));
PS0i = R127i.w;
// 7
PV1i.x = floatBitsToInt(intBitsToFloat(R23i.x) + intBitsToFloat(PV0i.y));
PV1i.y = floatBitsToInt(intBitsToFloat(R4i.y) + intBitsToFloat(PV0i.x));
PV1i.z = floatBitsToInt(intBitsToFloat(R4i.x) + intBitsToFloat(R127i.y));
PV1i.w = floatBitsToInt(intBitsToFloat(R4i.z) + intBitsToFloat(PV0i.w));
R127i.y = floatBitsToInt(intBitsToFloat(R23i.y) + intBitsToFloat(PV0i.z));
PS1i = R127i.y;
// 8
R127i.x = floatBitsToInt(intBitsToFloat(R23i.z) + intBitsToFloat(R127i.w));
R126i.y = floatBitsToInt(intBitsToFloat(PV1i.z) * intBitsToFloat(0x3e000000));
R127i.z = floatBitsToInt(intBitsToFloat(PV1i.y) * intBitsToFloat(0x3e000000));
R127i.w = floatBitsToInt(intBitsToFloat(PV1i.w) * intBitsToFloat(0x3e000000));
R126i.w = floatBitsToInt(intBitsToFloat(R24i.x) + intBitsToFloat(PV1i.x));
PS0i = R126i.w;
// 9
tempi.x = floatBitsToInt(dot(vec4(intBitsToFloat(R13i.x),intBitsToFloat(R13i.y),intBitsToFloat(R13i.z),-0.0),vec4(intBitsToFloat(0x3e991687),intBitsToFloat(0x3f1645a2),intBitsToFloat(0x3de978d5),0.0)));
PV1i.x = tempi.x;
PV1i.y = tempi.x;
PV1i.z = tempi.x;
PV1i.w = tempi.x;
R1i.z = tempi.x;
R126i.z = floatBitsToInt(intBitsToFloat(R24i.y) + intBitsToFloat(R127i.y));
PS1i = R126i.z;
// 10
tempi.x = floatBitsToInt(dot(vec4(intBitsToFloat(R18i.x),intBitsToFloat(R18i.y),intBitsToFloat(R18i.z),-0.0),vec4(intBitsToFloat(0x3e991687),intBitsToFloat(0x3f1645a2),intBitsToFloat(0x3de978d5),0.0)));
PV0i.x = tempi.x;
PV0i.y = tempi.x;
PV0i.z = tempi.x;
PV0i.w = tempi.x;
R125i.y = tempi.x;
R127i.y = floatBitsToInt(intBitsToFloat(R24i.z) + intBitsToFloat(R127i.x));
PS0i = R127i.y;
// 11
tempi.x = floatBitsToInt(dot(vec4(intBitsToFloat(R126i.y),intBitsToFloat(R127i.z),intBitsToFloat(R127i.w),-0.0),vec4(intBitsToFloat(0x3e991687),intBitsToFloat(0x3f1645a2),intBitsToFloat(0x3de978d5),0.0)));
PV1i.x = tempi.x;
PV1i.y = tempi.x;
PV1i.z = tempi.x;
PV1i.w = tempi.x;
R127i.w = tempi.x;
PS1i = floatBitsToInt(intBitsToFloat(R1i.z) + -(intBitsToFloat(PV0i.x)));
// 12
backupReg0i = R127i.y;
R127i.x = floatBitsToInt(intBitsToFloat(R126i.w) * intBitsToFloat(0x3e000000));
R127i.y = floatBitsToInt(intBitsToFloat(R126i.z) * intBitsToFloat(0x3e000000));
R126i.z = floatBitsToInt(intBitsToFloat(backupReg0i) * intBitsToFloat(0x3e000000));
PV0i.w = floatBitsToInt(intBitsToFloat(PV1i.x) + -(intBitsToFloat(R125i.y)));
PS0i = floatBitsToInt(1.0 / intBitsToFloat(PS1i));
// 13
tempi.x = floatBitsToInt(dot(vec4(intBitsToFloat(R20i.x),intBitsToFloat(R20i.y),intBitsToFloat(R20i.z),-0.0),vec4(intBitsToFloat(0x3e991687),intBitsToFloat(0x3f1645a2),intBitsToFloat(0x3de978d5),0.0)));
PV1i.x = tempi.x;
PV1i.y = tempi.x;
PV1i.z = tempi.x;
PV1i.w = tempi.x;
R126i.w = tempi.x;
R127i.z = floatBitsToInt(intBitsToFloat(PV0i.w) * intBitsToFloat(PS0i));
R127i.z = clampFI32(R127i.z);
PS1i = R127i.z;
// 14
R1i.x = floatBitsToInt(dot(vec4(intBitsToFloat(R127i.x),intBitsToFloat(R127i.y),intBitsToFloat(R126i.z),-0.0),vec4(intBitsToFloat(0x3e991687),intBitsToFloat(0x3f1645a2),intBitsToFloat(0x3de978d5),0.0)));
PV0i.x = R1i.x;
PV0i.y = R1i.x;
PV0i.z = R1i.x;
PV0i.w = R1i.x;
R127i.x = floatBitsToInt(intBitsToFloat(R1i.z) + -(intBitsToFloat(PV1i.x)));
PS0i = R127i.x;
// 15
tempi.x = floatBitsToInt(dot(vec4(intBitsToFloat(R19i.x),intBitsToFloat(R19i.y),intBitsToFloat(R19i.z),-0.0),vec4(intBitsToFloat(0x3e991687),intBitsToFloat(0x3f1645a2),intBitsToFloat(0x3de978d5),0.0)));
PV1i.x = tempi.x;
PV1i.y = tempi.x;
PV1i.z = tempi.x;
PV1i.w = tempi.x;
R127i.y = floatBitsToInt(intBitsToFloat(PV0i.x) + -(intBitsToFloat(R126i.w)));
PS1i = R127i.y;
// 16
PV0i.x = ((intBitsToFloat(R127i.z) == 0.0)?int(0xFFFFFFFF):int(0x0));
PV0i.y = floatBitsToInt(-(intBitsToFloat(R1i.z)) + intBitsToFloat(PV1i.x));
R126i.z = floatBitsToInt(intBitsToFloat(R13i.x) + -(intBitsToFloat(R18i.x)));
R126i.w = floatBitsToInt(intBitsToFloat(R13i.y) + -(intBitsToFloat(R18i.y)));
PS0i = floatBitsToInt(1.0 / intBitsToFloat(R127i.x));
// 17
backupReg0i = R127i.z;
PV1i.x = floatBitsToInt(intBitsToFloat(R13i.z) + -(intBitsToFloat(R18i.z)));
R1i.y = floatBitsToInt(intBitsToFloat(R13i.x) + -(intBitsToFloat(R20i.x)));
R127i.z = floatBitsToInt(intBitsToFloat(R127i.y) * intBitsToFloat(PS0i));
R127i.z = clampFI32(R127i.z);
R123i.w = ((PV0i.x == 0)?(backupReg0i):(0x3f800000));
PV1i.w = R123i.w;
R125i.w = floatBitsToInt(1.0 / intBitsToFloat(PV0i.y));
PS1i = R125i.w;
// 18
R3i.x = floatBitsToInt((mul_nonIEEE(intBitsToFloat(PV1i.x),intBitsToFloat(PV1i.w)) + intBitsToFloat(R18i.z)));
R4i.y = floatBitsToInt((mul_nonIEEE(intBitsToFloat(R126i.w),intBitsToFloat(PV1i.w)) + intBitsToFloat(R18i.y)));
R4i.z = floatBitsToInt((mul_nonIEEE(intBitsToFloat(R126i.z),intBitsToFloat(PV1i.w)) + intBitsToFloat(R18i.x)));
R2i.w = floatBitsToInt((mul_nonIEEE(intBitsToFloat(R124i.y),intBitsToFloat(PV1i.w)) + intBitsToFloat(R18i.w)));
R124i.y = floatBitsToInt(intBitsToFloat(R127i.w) + -(intBitsToFloat(R1i.z)));
PS0i = R124i.y;
// 19
tempi.x = floatBitsToInt(dot(vec4(intBitsToFloat(R21i.x),intBitsToFloat(R21i.y),intBitsToFloat(R21i.z),-0.0),vec4(intBitsToFloat(0x3e991687),intBitsToFloat(0x3f1645a2),intBitsToFloat(0x3de978d5),0.0)));
PV1i.x = tempi.x;
PV1i.y = tempi.x;
PV1i.z = tempi.x;
PV1i.w = tempi.x;
PS1i = ((intBitsToFloat(R127i.z) == 0.0)?int(0xFFFFFFFF):int(0x0));
// 20
R2i.x = floatBitsToInt(-(intBitsToFloat(R1i.z)) + intBitsToFloat(PV1i.x));
R3i.y = ((PS1i == 0)?(R127i.z):(0x3f800000));
R3i.z = floatBitsToInt(intBitsToFloat(R124i.y) * intBitsToFloat(R125i.w));
R3i.z = clampFI32(R3i.z);
R1i.w = floatBitsToInt(intBitsToFloat(R19i.y) + -(intBitsToFloat(R4i.y)));
R2i.z = floatBitsToInt(intBitsToFloat(R19i.w) + -(intBitsToFloat(R2i.w)));
PS0i = R2i.z;
}
if( activeMaskStackC[2] == true ) {
// 0
PV0i.x = floatBitsToInt(intBitsToFloat(R13i.y) + -(intBitsToFloat(R20i.y)));
R124i.y = floatBitsToInt(intBitsToFloat(R19i.x) + -(intBitsToFloat(R4i.z)));
R127i.z = floatBitsToInt(intBitsToFloat(R1i.x) + -(intBitsToFloat(R1i.z)));
R125i.w = floatBitsToInt(intBitsToFloat(R19i.z) + -(intBitsToFloat(R3i.x)));
// 1
R126i.x = floatBitsToInt((mul_nonIEEE(intBitsToFloat(R1i.y),intBitsToFloat(R3i.y)) + intBitsToFloat(R20i.x)));
PV1i.x = R126i.x;
R127i.y = ((1.0 > intBitsToFloat(R3i.z))?int(0xFFFFFFFF):int(0x0));
PV1i.z = floatBitsToInt(intBitsToFloat(R13i.z) + -(intBitsToFloat(R20i.z)));
R126i.w = floatBitsToInt((mul_nonIEEE(intBitsToFloat(PV0i.x),intBitsToFloat(R3i.y)) + intBitsToFloat(R20i.y)));
R127i.w = floatBitsToInt(1.0 / intBitsToFloat(R2i.x));
PS1i = R127i.w;
// 2
backupReg0i = R2i.y;
R127i.x = floatBitsToInt((mul_nonIEEE(intBitsToFloat(R124i.y),intBitsToFloat(R3i.z)) + intBitsToFloat(R4i.z)));
R2i.y = floatBitsToInt((mul_nonIEEE(intBitsToFloat(backupReg0i),intBitsToFloat(R3i.y)) + intBitsToFloat(R20i.w)));
R125i.z = floatBitsToInt((mul_nonIEEE(intBitsToFloat(PV1i.z),intBitsToFloat(R3i.y)) + intBitsToFloat(R20i.z)));
R123i.w = floatBitsToInt((mul_nonIEEE(intBitsToFloat(R125i.w),intBitsToFloat(R3i.z)) + intBitsToFloat(R3i.x)));
PV0i.w = R123i.w;
R125i.w = floatBitsToInt(intBitsToFloat(R21i.x) + -(intBitsToFloat(PV1i.x)));
PS0i = R125i.w;
// 3
R123i.x = floatBitsToInt((mul_nonIEEE(intBitsToFloat(R1i.w),intBitsToFloat(R3i.z)) + intBitsToFloat(R4i.y)));
PV1i.x = R123i.x;
R124i.y = floatBitsToInt(intBitsToFloat(R127i.z) * intBitsToFloat(R127i.w));
R124i.y = clampFI32(R124i.y);
R123i.z = floatBitsToInt((mul_nonIEEE(intBitsToFloat(R2i.z),intBitsToFloat(R3i.z)) + intBitsToFloat(R2i.w)));
PV1i.z = R123i.z;
R127i.w = ((R127i.y == 0)?(R3i.x):(PV0i.w));
// 4
backupReg0i = R127i.y;
backupReg1i = R127i.x;
backupReg0i = R127i.y;
R127i.x = ((R127i.y == 0)?(R4i.y):(PV1i.x));
R127i.y = ((backupReg0i == 0)?(R4i.z):(backupReg1i));
R127i.z = ((backupReg0i == 0)?(R2i.w):(PV1i.z));
PV0i.w = floatBitsToInt(intBitsToFloat(R21i.y) + -(intBitsToFloat(R126i.w)));
PS0i = floatBitsToInt(intBitsToFloat(R21i.z) + -(intBitsToFloat(R125i.z)));
// 5
PV1i.x = floatBitsToInt(intBitsToFloat(R21i.w) + -(intBitsToFloat(R2i.y)));
R126i.y = ((1.0 > intBitsToFloat(R124i.y))?int(0xFFFFFFFF):int(0x0));
PV1i.y = R126i.y;
R126i.z = floatBitsToInt((mul_nonIEEE(intBitsToFloat(PV0i.w),intBitsToFloat(R124i.y)) + intBitsToFloat(R126i.w)));
R123i.w = floatBitsToInt((mul_nonIEEE(intBitsToFloat(R125i.w),intBitsToFloat(R124i.y)) + intBitsToFloat(R126i.x)));
PV1i.w = R123i.w;
R125i.y = floatBitsToInt((mul_nonIEEE(intBitsToFloat(PS0i),intBitsToFloat(R124i.y)) + intBitsToFloat(R125i.z)));
PS1i = R125i.y;
// 6
backupReg0i = R127i.y;
backupReg1i = R126i.x;
R126i.x = floatBitsToInt((mul_nonIEEE(intBitsToFloat(PV1i.x),intBitsToFloat(R124i.y)) + intBitsToFloat(R2i.y)));
R127i.y = floatBitsToInt(-(intBitsToFloat(R22i.z)) + intBitsToFloat(R127i.w));
PV0i.z = floatBitsToInt(-(intBitsToFloat(R22i.w)) + intBitsToFloat(R127i.z));
PV0i.w = floatBitsToInt(-(intBitsToFloat(R22i.x)) + intBitsToFloat(backupReg0i));
R127i.w = ((PV1i.y == 0)?(backupReg1i):(PV1i.w));
PS0i = R127i.w;
// 7
backupReg0i = R125i.y;
backupReg1i = R127i.x;
backupReg2i = R0i.z;
backupReg2i = R0i.z;
R127i.x = ((R126i.y == 0)?(R126i.w):(R126i.z));
R125i.y = ((R126i.y == 0)?(R125i.z):(backupReg0i));
PV1i.z = floatBitsToInt(-(intBitsToFloat(R22i.y)) + intBitsToFloat(backupReg1i));
R126i.w = floatBitsToInt((mul_nonIEEE(intBitsToFloat(PV0i.w),intBitsToFloat(backupReg2i)) + intBitsToFloat(R22i.x)));
PV1i.w = R126i.w;
R125i.x = floatBitsToInt((mul_nonIEEE(intBitsToFloat(PV0i.z),intBitsToFloat(backupReg2i)) + intBitsToFloat(R22i.w)));
PS1i = R125i.x;
// 8
R123i.x = ((R126i.y == 0)?(R2i.y):(R126i.x));
PV0i.x = R123i.x;
R126i.z = floatBitsToInt((mul_nonIEEE(intBitsToFloat(PV1i.z),intBitsToFloat(R0i.z)) + intBitsToFloat(R22i.y)));
PV0i.z = R126i.z;
PV0i.w = floatBitsToInt(intBitsToFloat(R127i.w) + -(intBitsToFloat(PV1i.w)));
// 9
backupReg0i = R127i.y;
backupReg1i = R127i.x;
R127i.x = floatBitsToInt(intBitsToFloat(PV0i.x) + -(intBitsToFloat(R125i.x)));
R127i.y = floatBitsToInt((mul_nonIEEE(intBitsToFloat(backupReg0i),intBitsToFloat(R0i.z)) + intBitsToFloat(R22i.z)));
PV1i.y = R127i.y;
PV1i.z = floatBitsToInt(intBitsToFloat(backupReg1i) + -(intBitsToFloat(PV0i.z)));
R22i.x = floatBitsToInt((mul_nonIEEE(intBitsToFloat(PV0i.w),intBitsToFloat(R5i.z)) + intBitsToFloat(R126i.w)));
PS1i = R22i.x;
// 10
PV0i.y = floatBitsToInt(intBitsToFloat(R125i.y) + -(intBitsToFloat(PV1i.y)));
R22i.y = floatBitsToInt((mul_nonIEEE(intBitsToFloat(PV1i.z),intBitsToFloat(R5i.z)) + intBitsToFloat(R126i.z)));
PS0i = R22i.y;
// 11
R22i.z = floatBitsToInt((mul_nonIEEE(intBitsToFloat(PV0i.y),intBitsToFloat(R5i.z)) + intBitsToFloat(R127i.y)));
R22i.w = floatBitsToInt((mul_nonIEEE(intBitsToFloat(R127i.x),intBitsToFloat(R5i.z)) + intBitsToFloat(R125i.x)));
}
activeMaskStackC[1] = activeMaskStack[0] == true && activeMaskStackC[0] == true;
if( activeMaskStackC[1] == true ) {
// 0
R1i.x = floatBitsToInt(intBitsToFloat(R0i.x) + intBitsToFloat(0xbae6385a));
R1i.y = floatBitsToInt(intBitsToFloat(R0i.y) + intBitsToFloat(0xbb4cccce));
R0i.z = floatBitsToInt(intBitsToFloat(R0i.x) + intBitsToFloat(0x3ae6385a));
R0i.w = floatBitsToInt(intBitsToFloat(R0i.y) + intBitsToFloat(0xbb4cccce));
R2i.x = floatBitsToInt(intBitsToFloat(R0i.x) + intBitsToFloat(0xbae6385a));
PS0i = R2i.x;
// 1
R3i.x = floatBitsToInt(intBitsToFloat(R0i.x) + intBitsToFloat(0x3ae6385a));
R2i.y = floatBitsToInt(intBitsToFloat(R0i.y) + intBitsToFloat(0x3b4cccce));
R3i.z = floatBitsToInt(intBitsToFloat(R0i.y) + intBitsToFloat(0x3b4cccce));
R2i.w = floatBitsToInt(intBitsToFloat(R13i.x) + -(intBitsToFloat(R22i.x)));
R1i.z = floatBitsToInt(intBitsToFloat(R13i.y) + -(intBitsToFloat(R22i.y)));
PS1i = R1i.z;
}
if( activeMaskStackC[1] == true ) {
R1i.w = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R1i.xy)).w);
R0i.z = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R0i.zw)).w);
R2i.y = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R2i.xy)).w);
R3i.x = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R3i.xz)).w);
}
if( activeMaskStackC[1] == true ) {
// 0
R127i.x = floatBitsToInt(intBitsToFloat(R13i.z) + -(intBitsToFloat(R22i.z)));
PV0i.y = floatBitsToInt(intBitsToFloat(R1i.w) + intBitsToFloat(R0i.z));
R127i.z = floatBitsToInt(intBitsToFloat(R13i.w) + -(intBitsToFloat(R22i.w)));
// 1
PV1i.x = floatBitsToInt(intBitsToFloat(R2i.y) + intBitsToFloat(PV0i.y));
// 2
PV0i.w = floatBitsToInt(intBitsToFloat(R3i.x) + intBitsToFloat(PV1i.x));
PV0i.w = floatBitsToInt(intBitsToFloat(PV0i.w) * 4.0);
// 3
PV1i.z = floatBitsToInt(intBitsToFloat(R13i.w) + intBitsToFloat(PV0i.w));
// 4
PV0i.y = floatBitsToInt(intBitsToFloat(R16i.w) + intBitsToFloat(PV1i.z));
// 5
PV1i.x = floatBitsToInt(intBitsToFloat(R17i.w) + intBitsToFloat(PV0i.y));
// 6
PV0i.w = floatBitsToInt(intBitsToFloat(R14i.w) + intBitsToFloat(PV1i.x));
// 7
PV1i.z = floatBitsToInt(intBitsToFloat(R15i.w) + intBitsToFloat(PV0i.w));
// 8
PV0i.y = floatBitsToInt(intBitsToFloat(PV1i.z) * intBitsToFloat(0x3d23d70a));
// 9
R123i.x = floatBitsToInt((intBitsToFloat(PV0i.y) * intBitsToFloat(0x40400000) + intBitsToFloat(0xbfc00000)));
R123i.x = clampFI32(R123i.x);
PV1i.x = R123i.x;
// 10
R1i.x = floatBitsToInt((mul_nonIEEE(intBitsToFloat(R2i.w),intBitsToFloat(PV1i.x)) + intBitsToFloat(R22i.x)));
R1i.y = floatBitsToInt((mul_nonIEEE(intBitsToFloat(R1i.z),intBitsToFloat(PV1i.x)) + intBitsToFloat(R22i.y)));
R1i.z = floatBitsToInt((mul_nonIEEE(intBitsToFloat(R127i.x),intBitsToFloat(PV1i.x)) + intBitsToFloat(R22i.z)));
R1i.w = floatBitsToInt((mul_nonIEEE(intBitsToFloat(R127i.z),intBitsToFloat(PV1i.x)) + intBitsToFloat(R22i.w)));
}
// export
//passPixelColor0 = vec4(intBitsToFloat(R1i.x), intBitsToFloat(R1i.y), intBitsToFloat(R1i.z), intBitsToFloat(R1i.w));
}

View File

@ -0,0 +1,683 @@
#version 420
#extension GL_ARB_texture_gather : enable
#extension GL_ARB_separate_shader_objects : enable
// shader 78a2659662685d55 - TV AA
layout(binding = 0) uniform sampler2D textureUnitPS0;// Tex0 addr 0xf4fa8800 res 1280x720x1 dim 1 tm: 4 format 001a compSel: 0 1 2 3 mipView: 0x0 (num 0x1) sliceView: 0x0 (num 0x1) Sampler0 ClampX/Y/Z: 2 2 2 border: 0
layout(location = 0) in vec4 passParameterSem133;
layout(location = 0) out vec4 passPixelColor0;
uniform vec2 uf_fragCoordScale;
int clampFI32(int v)
{
if( v == 0x7FFFFFFF )
return floatBitsToInt(1.0);
else if( v == 0xFFFFFFFF )
return floatBitsToInt(0.0);
return floatBitsToInt(clamp(intBitsToFloat(v), 0.0, 1.0));
}
float mul_nonIEEE(float a, float b){ if( a == 0.0 || b == 0.0 ) return 0.0; return a*b; }
void main()
{
ivec4 R0i = ivec4(0);
ivec4 R1i = ivec4(0);
ivec4 R2i = ivec4(0);
ivec4 R3i = ivec4(0);
ivec4 R4i = ivec4(0);
ivec4 R5i = ivec4(0);
ivec4 R6i = ivec4(0);
ivec4 R7i = ivec4(0);
ivec4 R8i = ivec4(0);
ivec4 R9i = ivec4(0);
ivec4 R10i = ivec4(0);
ivec4 R11i = ivec4(0);
ivec4 R12i = ivec4(0);
ivec4 R13i = ivec4(0);
ivec4 R14i = ivec4(0);
ivec4 R15i = ivec4(0);
ivec4 R16i = ivec4(0);
ivec4 R17i = ivec4(0);
ivec4 R18i = ivec4(0);
ivec4 R19i = ivec4(0);
ivec4 R20i = ivec4(0);
ivec4 R21i = ivec4(0);
ivec4 R22i = ivec4(0);
ivec4 R23i = ivec4(0);
ivec4 R24i = ivec4(0);
ivec4 R25i = ivec4(0);
ivec4 R122i = ivec4(0);
ivec4 R123i = ivec4(0);
ivec4 R124i = ivec4(0);
ivec4 R125i = ivec4(0);
ivec4 R126i = ivec4(0);
ivec4 R127i = ivec4(0);
int backupReg0i, backupReg1i, backupReg2i, backupReg3i, backupReg4i;
ivec4 PV0i = ivec4(0), PV1i = ivec4(0);
int PS0i = 0, PS1i = 0;
ivec4 tempi = ivec4(0);
float tempResultf;
int tempResulti;
ivec4 ARi = ivec4(0);
bool predResult = true;
bool activeMaskStack[2];
bool activeMaskStackC[3];
activeMaskStack[0] = false;
activeMaskStackC[0] = false;
activeMaskStackC[1] = false;
activeMaskStack[0] = true;
activeMaskStackC[0] = true;
activeMaskStackC[1] = true;
vec3 cubeMapSTM;
int cubeMapFaceId;
R0i = floatBitsToInt(passParameterSem133);
if( activeMaskStackC[1] == true ) {
// 0
R1i.xyz = floatBitsToInt(vec3(intBitsToFloat(R0i.x),intBitsToFloat(R0i.y),intBitsToFloat(R0i.x)) + vec3(0.0,0.0,intBitsToFloat(0xba99999a)));
R1i.w = floatBitsToInt(intBitsToFloat(R0i.y) + 0.0);
R2i.x = floatBitsToInt(intBitsToFloat(R0i.x) + intBitsToFloat(0x3a99999a));
PS0i = R2i.x;
// 1
R3i.x = floatBitsToInt(intBitsToFloat(R0i.x) + 0.0);
R2i.y = floatBitsToInt(intBitsToFloat(R0i.y) + 0.0);
R3i.zwy = floatBitsToInt(vec3(intBitsToFloat(R0i.y),intBitsToFloat(R0i.x),intBitsToFloat(R0i.y)) + vec3(intBitsToFloat(0xbb088889),0.0,intBitsToFloat(0x3b088889)));
PS1i = R3i.y;
}
if( activeMaskStackC[1] == true ) {
R7i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R1i.xy)).xyzw);
R8i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R1i.zw)).xyzw);
R9i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R2i.xy)).xyzw);
R10i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R3i.xz)).xyzw);
R11i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R3i.wy)).xyzw);
}
if( activeMaskStackC[1] == true ) {
// 0
R127i.x = floatBitsToInt(intBitsToFloat(R8i.w) + intBitsToFloat(R9i.w));
R127i.x = floatBitsToInt(intBitsToFloat(R127i.x) * 2.0);
R127i.y = floatBitsToInt(intBitsToFloat(R8i.z) + intBitsToFloat(R9i.z));
R127i.y = floatBitsToInt(intBitsToFloat(R127i.y) * 2.0);
R127i.z = floatBitsToInt(intBitsToFloat(R8i.y) + intBitsToFloat(R9i.y));
R127i.z = floatBitsToInt(intBitsToFloat(R127i.z) * 2.0);
R127i.w = floatBitsToInt(intBitsToFloat(R8i.x) + intBitsToFloat(R9i.x));
R127i.w = floatBitsToInt(intBitsToFloat(R127i.w) * 2.0);
R3i.x = floatBitsToInt(intBitsToFloat(R0i.x) + intBitsToFloat(0xba4ccccd));
PS0i = R3i.x;
// 1
R5i.x = floatBitsToInt(intBitsToFloat(R10i.z) + intBitsToFloat(R11i.z));
R5i.x = floatBitsToInt(intBitsToFloat(R5i.x) * 2.0);
R4i.y = floatBitsToInt(intBitsToFloat(R10i.w) + intBitsToFloat(R11i.w));
R4i.y = floatBitsToInt(intBitsToFloat(R4i.y) * 2.0);
R2i.z = floatBitsToInt(intBitsToFloat(R10i.y) + intBitsToFloat(R11i.y));
R2i.z = floatBitsToInt(intBitsToFloat(R2i.z) * 2.0);
R4i.w = floatBitsToInt(intBitsToFloat(R10i.x) + intBitsToFloat(R11i.x));
R4i.w = floatBitsToInt(intBitsToFloat(R4i.w) * 2.0);
R3i.y = floatBitsToInt(intBitsToFloat(R0i.y) + 0.0);
PS1i = R3i.y;
// 2
R2i.x = floatBitsToInt(intBitsToFloat(R0i.x) + intBitsToFloat(0x3a4ccccd));
R2i.y = floatBitsToInt(intBitsToFloat(R0i.y) + 0.0);
R3i.z = floatBitsToInt(intBitsToFloat(R0i.x) + 0.0);
R3i.w = floatBitsToInt(intBitsToFloat(R0i.y) + intBitsToFloat(0xbab60b61));
R1i.x = floatBitsToInt(intBitsToFloat(R0i.x) + 0.0);
PS0i = R1i.x;
// 3
R4i.x = floatBitsToInt((intBitsToFloat(R7i.y) * 2.0 + intBitsToFloat(R127i.z)));
R1i.y = floatBitsToInt(intBitsToFloat(R0i.y) + intBitsToFloat(0x3ab60b61));
R1i.z = floatBitsToInt((intBitsToFloat(R7i.x) * 2.0 + intBitsToFloat(R127i.w)));
R1i.w = floatBitsToInt((intBitsToFloat(R7i.z) * 2.0 + intBitsToFloat(R127i.y)));
R2i.w = floatBitsToInt((intBitsToFloat(R7i.w) * 2.0 + intBitsToFloat(R127i.x)));
PS1i = R2i.w;
}
if( activeMaskStackC[1] == true ) {
R12i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R3i.xy)).xyzw);
R13i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R2i.xy)).xyzw);
R14i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R3i.zw)).xyzw);
R15i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R1i.xy)).xyzw);
}
if( activeMaskStackC[1] == true ) {
// 0
R124i.x = floatBitsToInt(intBitsToFloat(R1i.z) * intBitsToFloat(0x3e2aaaab));
R127i.y = floatBitsToInt(intBitsToFloat(R12i.z) + intBitsToFloat(R13i.z));
PV0i.z = floatBitsToInt(intBitsToFloat(R12i.y) + intBitsToFloat(R13i.y));
PV0i.w = floatBitsToInt(intBitsToFloat(R12i.x) + intBitsToFloat(R13i.x));
R1i.y = floatBitsToInt(intBitsToFloat(R4i.x) * intBitsToFloat(0x3e2aaaab));
PS0i = R1i.y;
// 1
R123i.x = floatBitsToInt((-(intBitsToFloat(R7i.x)) * 2.0 + intBitsToFloat(PV0i.w)));
PV1i.x = R123i.x;
R126i.y = floatBitsToInt(intBitsToFloat(R14i.z) + intBitsToFloat(R15i.z));
PV1i.z = floatBitsToInt(intBitsToFloat(R14i.y) + intBitsToFloat(R15i.y));
PV1i.w = floatBitsToInt(intBitsToFloat(R14i.x) + intBitsToFloat(R15i.x));
R122i.x = floatBitsToInt((-(intBitsToFloat(R7i.y)) * 2.0 + intBitsToFloat(PV0i.z)));
PS1i = R122i.x;
// 2
PV0i.x = floatBitsToInt(max(intBitsToFloat(PS1i), -(intBitsToFloat(PS1i))));
PV0i.y = floatBitsToInt(max(intBitsToFloat(PV1i.x), -(intBitsToFloat(PV1i.x))));
R123i.z = floatBitsToInt((-(intBitsToFloat(R7i.z)) * 2.0 + intBitsToFloat(R127i.y)));
PV0i.z = R123i.z;
R123i.w = floatBitsToInt((-(intBitsToFloat(R7i.x)) * 2.0 + intBitsToFloat(PV1i.w)));
PV0i.w = R123i.w;
R127i.w = floatBitsToInt((-(intBitsToFloat(R7i.y)) * 2.0 + intBitsToFloat(PV1i.z)));
PS0i = R127i.w;
// 3
backupReg0i = R126i.y;
R127i.x = floatBitsToInt(intBitsToFloat(PV0i.y) * 0.5);
R126i.y = floatBitsToInt(intBitsToFloat(PV0i.x) * 0.5);
R123i.z = floatBitsToInt((-(intBitsToFloat(R7i.z)) * 2.0 + intBitsToFloat(backupReg0i)));
PV1i.z = R123i.z;
PV1i.w = floatBitsToInt(max(intBitsToFloat(PV0i.z), -(intBitsToFloat(PV0i.z))));
PS1i = floatBitsToInt(max(intBitsToFloat(PV0i.w), -(intBitsToFloat(PV0i.w))));
// 4
PV0i.x = floatBitsToInt(max(intBitsToFloat(R127i.w), -(intBitsToFloat(R127i.w))));
R127i.y = floatBitsToInt(intBitsToFloat(PS1i) * 0.5);
PV0i.z = floatBitsToInt(intBitsToFloat(PV1i.w) * 0.5);
R127i.w = floatBitsToInt(max(intBitsToFloat(PV1i.z), -(intBitsToFloat(PV1i.z))));
R127i.z = floatBitsToInt(intBitsToFloat(R1i.w) * intBitsToFloat(0x3e2aaaab));
PS0i = R127i.z;
// 5
tempi.x = floatBitsToInt(dot(vec4(intBitsToFloat(R127i.x),intBitsToFloat(R126i.y),intBitsToFloat(PV0i.z),-0.0),vec4(intBitsToFloat(0x3e991687),intBitsToFloat(0x3f1645a2),intBitsToFloat(0x3de978d5),0.0)));
PV1i.x = tempi.x;
PV1i.y = tempi.x;
PV1i.z = tempi.x;
PV1i.w = tempi.x;
R124i.y = tempi.x;
R126i.y = floatBitsToInt(intBitsToFloat(PV0i.x) * 0.5);
PS1i = R126i.y;
// 6
R127i.x = floatBitsToInt((intBitsToFloat(R7i.x) * 2.0 + intBitsToFloat(R4i.w)));
R125i.y = floatBitsToInt((intBitsToFloat(R7i.y) * 2.0 + intBitsToFloat(R2i.z)));
PV0i.z = floatBitsToInt(intBitsToFloat(R127i.w) * 0.5);
R127i.w = floatBitsToInt(intBitsToFloat(R2i.w) * intBitsToFloat(0x3e2aaaab));
R126i.x = floatBitsToInt((intBitsToFloat(R7i.z) * 2.0 + intBitsToFloat(R5i.x)));
PS0i = R126i.x;
// 7
R125i.x = floatBitsToInt(dot(vec4(intBitsToFloat(R127i.y),intBitsToFloat(R126i.y),intBitsToFloat(PV0i.z),-0.0),vec4(intBitsToFloat(0x3e991687),intBitsToFloat(0x3f1645a2),intBitsToFloat(0x3de978d5),0.0)));
PV1i.x = R125i.x;
PV1i.y = R125i.x;
PV1i.z = R125i.x;
PV1i.w = R125i.x;
R125i.w = floatBitsToInt(-(intBitsToFloat(R7i.x)) + intBitsToFloat(R124i.x));
PS1i = R125i.w;
// 8
backupReg0i = R127i.x;
backupReg1i = R124i.y;
R127i.x = floatBitsToInt(intBitsToFloat(backupReg0i) * intBitsToFloat(0x3e2aaaab));
R124i.y = floatBitsToInt(intBitsToFloat(R125i.y) * intBitsToFloat(0x3e2aaaab));
R125i.z = floatBitsToInt(intBitsToFloat(R126i.x) * intBitsToFloat(0x3e2aaaab));
R123i.w = floatBitsToInt((intBitsToFloat(R7i.w) * 2.0 + intBitsToFloat(R4i.y)));
PV0i.w = R123i.w;
R126i.w = floatBitsToInt((intBitsToFloat(backupReg1i) * intBitsToFloat(0x40400000) + -(intBitsToFloat(0x3dcccccd))));
PS0i = R126i.w;
// 9
backupReg0i = R125i.x;
backupReg1i = R127i.w;
R125i.x = floatBitsToInt(-(intBitsToFloat(R7i.y)) + intBitsToFloat(R1i.y));
R125i.y = floatBitsToInt(-(intBitsToFloat(R7i.z)) + intBitsToFloat(R127i.z));
R124i.z = floatBitsToInt(intBitsToFloat(PV0i.w) * intBitsToFloat(0x3e2aaaab));
R127i.w = floatBitsToInt((intBitsToFloat(backupReg0i) * intBitsToFloat(0x40400000) + -(intBitsToFloat(0x3dcccccd))));
R126i.z = floatBitsToInt(-(intBitsToFloat(R7i.w)) + intBitsToFloat(backupReg1i));
PS1i = R126i.z;
// 10
backupReg0i = R0i.y;
tempi.x = floatBitsToInt(dot(vec4(intBitsToFloat(R127i.x),intBitsToFloat(R124i.y),intBitsToFloat(R125i.z),-0.0),vec4(intBitsToFloat(0x3e991687),intBitsToFloat(0x3f1645a2),intBitsToFloat(0x3de978d5),0.0)));
PV0i.x = tempi.x;
PV0i.y = tempi.x;
PV0i.z = tempi.x;
PV0i.w = tempi.x;
R4i.y = floatBitsToInt(intBitsToFloat(backupReg0i) + 0.0);
PS0i = R4i.y;
// 11
tempi.x = floatBitsToInt(dot(vec4(intBitsToFloat(R124i.x),intBitsToFloat(R1i.y),intBitsToFloat(R127i.z),-0.0),vec4(intBitsToFloat(0x3e991687),intBitsToFloat(0x3f1645a2),intBitsToFloat(0x3de978d5),0.0)));
PV1i.x = tempi.x;
PV1i.y = tempi.x;
PV1i.z = tempi.x;
PV1i.w = tempi.x;
PS1i = floatBitsToInt(1.0 / intBitsToFloat(PV0i.x));
// 12
R124i.x = floatBitsToInt(intBitsToFloat(R126i.w) * intBitsToFloat(PS1i));
R124i.x = clampFI32(R124i.x);
R1i.y = floatBitsToInt(intBitsToFloat(R0i.y) + 0.0);
R4i.z = floatBitsToInt(intBitsToFloat(R0i.x) + intBitsToFloat(0x3b333333));
R1i.w = floatBitsToInt(intBitsToFloat(R0i.x) + intBitsToFloat(0x3b8ccccd));
PS0i = floatBitsToInt(1.0 / intBitsToFloat(PV1i.x));
// 13
backupReg0i = R0i.x;
backupReg0i = R0i.x;
PV1i.x = floatBitsToInt(intBitsToFloat(R127i.w) * intBitsToFloat(PS0i));
PV1i.x = clampFI32(PV1i.x);
R2i.y = floatBitsToInt(intBitsToFloat(R0i.y) + 0.0);
R2i.z = floatBitsToInt(intBitsToFloat(backupReg0i) + intBitsToFloat(0x3bc00000));
R3i.w = floatBitsToInt(intBitsToFloat(backupReg0i) + intBitsToFloat(0xbb333333));
R3i.y = floatBitsToInt(intBitsToFloat(R0i.y) + 0.0);
PS1i = R3i.y;
// 14
backupReg0i = R125i.x;
backupReg1i = R125i.w;
R125i.x = floatBitsToInt((mul_nonIEEE(intBitsToFloat(R125i.y),intBitsToFloat(PV1i.x)) + intBitsToFloat(R7i.z)));
PV0i.x = R125i.x;
R125i.y = floatBitsToInt((mul_nonIEEE(intBitsToFloat(R126i.z),intBitsToFloat(PV1i.x)) + intBitsToFloat(R7i.w)));
PV0i.y = R125i.y;
R126i.z = floatBitsToInt((mul_nonIEEE(intBitsToFloat(backupReg0i),intBitsToFloat(PV1i.x)) + intBitsToFloat(R7i.y)));
PV0i.z = R126i.z;
R125i.w = floatBitsToInt((mul_nonIEEE(intBitsToFloat(backupReg1i),intBitsToFloat(PV1i.x)) + intBitsToFloat(R7i.x)));
PV0i.w = R125i.w;
R5i.x = floatBitsToInt(intBitsToFloat(R0i.x) + intBitsToFloat(0xbb8ccccd));
PS0i = R5i.x;
// 15
backupReg0i = R0i.y;
PV1i.x = floatBitsToInt(intBitsToFloat(R125i.z) + -(intBitsToFloat(PV0i.x)));
PV1i.x = floatBitsToInt(intBitsToFloat(PV1i.x) / 2.0);
PV1i.y = floatBitsToInt(intBitsToFloat(R124i.z) + -(intBitsToFloat(PV0i.y)));
PV1i.y = floatBitsToInt(intBitsToFloat(PV1i.y) / 2.0);
PV1i.z = floatBitsToInt(intBitsToFloat(R124i.y) + -(intBitsToFloat(PV0i.z)));
PV1i.z = floatBitsToInt(intBitsToFloat(PV1i.z) / 2.0);
PV1i.w = floatBitsToInt(intBitsToFloat(R127i.x) + -(intBitsToFloat(PV0i.w)));
PV1i.w = floatBitsToInt(intBitsToFloat(PV1i.w) / 2.0);
R5i.y = floatBitsToInt(intBitsToFloat(backupReg0i) + 0.0);
PS1i = R5i.y;
// 16
R16i.x = floatBitsToInt((mul_nonIEEE(intBitsToFloat(PV1i.w),intBitsToFloat(R124i.x)) + intBitsToFloat(R125i.w)));
R16i.y = floatBitsToInt((mul_nonIEEE(intBitsToFloat(PV1i.z),intBitsToFloat(R124i.x)) + intBitsToFloat(R126i.z)));
R16i.z = floatBitsToInt((mul_nonIEEE(intBitsToFloat(PV1i.x),intBitsToFloat(R124i.x)) + intBitsToFloat(R125i.x)));
R16i.w = floatBitsToInt((mul_nonIEEE(intBitsToFloat(PV1i.y),intBitsToFloat(R124i.x)) + intBitsToFloat(R125i.y)));
R6i.x = floatBitsToInt(intBitsToFloat(R0i.x) + intBitsToFloat(0xbbc00000));
PS0i = R6i.x;
}
if( activeMaskStackC[1] == true ) {
R17i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R4i.zy)).xyzw);
R18i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R1i.wy)).xyzw);
R19i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R2i.zy)).xyzw);
R20i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R3i.wy)).xyzw);
R21i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R5i.xy)).xyzw);
}
if( activeMaskStackC[1] == true ) {
// 0
R5i.x = floatBitsToInt(intBitsToFloat(R0i.x) + 0.0);
R6i.y = floatBitsToInt(intBitsToFloat(R0i.y) + 0.0);
R5i.z = floatBitsToInt(intBitsToFloat(R0i.y) + intBitsToFloat(0x3b9f49f5));
PV0i.w = floatBitsToInt(intBitsToFloat(R9i.w) + intBitsToFloat(R17i.w));
R3i.x = floatBitsToInt(intBitsToFloat(R0i.x) + 0.0);
PS0i = R3i.x;
// 1
R1i.x = floatBitsToInt(intBitsToFloat(R0i.x) + 0.0);
R3i.y = floatBitsToInt(intBitsToFloat(R0i.y) + intBitsToFloat(0x3bfa4fa5));
R2i.z = floatBitsToInt(intBitsToFloat(R18i.w) + intBitsToFloat(PV0i.w));
R1i.w = floatBitsToInt(intBitsToFloat(R0i.y) + intBitsToFloat(0x3c2aaaab));
R4i.x = floatBitsToInt(intBitsToFloat(R0i.x) + 0.0);
PS1i = R4i.x;
}
if( activeMaskStackC[1] == true ) {
R22i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R6i.xy)).xyzw);
R6i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R5i.xz)).xyzw);
R3i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R3i.xy)).xyzw);
R23i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R1i.xw)).xyzw);
}
if( activeMaskStackC[1] == true ) {
// 0
backupReg0i = R0i.y;
backupReg1i = R0i.x;
backupReg0i = R0i.y;
PV0i.x = floatBitsToInt(intBitsToFloat(R11i.w) + intBitsToFloat(R6i.w));
PV0i.y = floatBitsToInt(intBitsToFloat(R19i.w) + intBitsToFloat(R2i.z));
R4i.z = floatBitsToInt(intBitsToFloat(backupReg0i) + intBitsToFloat(0xbb9f49f5));
R1i.w = floatBitsToInt(intBitsToFloat(backupReg1i) + 0.0);
R1i.y = floatBitsToInt(intBitsToFloat(backupReg0i) + intBitsToFloat(0xbbfa4fa5));
PS0i = R1i.y;
// 1
backupReg0i = R3i.w;
R1i.x = floatBitsToInt(intBitsToFloat(R8i.w) + intBitsToFloat(PV0i.y));
R2i.y = floatBitsToInt(intBitsToFloat(R0i.y) + intBitsToFloat(0xbc2aaaab));
R2i.z = floatBitsToInt(intBitsToFloat(R0i.x) + 0.0);
R3i.w = floatBitsToInt(intBitsToFloat(backupReg0i) + intBitsToFloat(PV0i.x));
}
if( activeMaskStackC[1] == true ) {
R4i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R4i.xz)).xyzw);
R5i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R1i.wy)).xyzw);
R24i.xyzw = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R2i.zy)).xyzw);
}
if( activeMaskStackC[1] == true ) {
activeMaskStack[1] = activeMaskStack[0];
activeMaskStackC[2] = activeMaskStackC[1];
// 0
PV0i.z = floatBitsToInt(intBitsToFloat(R23i.w) + intBitsToFloat(R3i.w));
PV0i.w = floatBitsToInt(intBitsToFloat(R20i.w) + intBitsToFloat(R1i.x));
// 1
PV1i.y = floatBitsToInt(intBitsToFloat(R10i.w) + intBitsToFloat(PV0i.z));
PV1i.z = floatBitsToInt(intBitsToFloat(R21i.w) + intBitsToFloat(PV0i.w));
// 2
PV0i.x = floatBitsToInt(intBitsToFloat(R4i.w) + intBitsToFloat(PV1i.y));
PV0i.y = floatBitsToInt(intBitsToFloat(R22i.w) + intBitsToFloat(PV1i.z));
// 3
PV1i.x = floatBitsToInt(intBitsToFloat(PV0i.y) * intBitsToFloat(0x3e000000));
PV1i.x = floatBitsToInt(intBitsToFloat(PV1i.x) * 2.0);
PV1i.w = floatBitsToInt(intBitsToFloat(R5i.w) + intBitsToFloat(PV0i.x));
// 4
PV0i.y = floatBitsToInt(intBitsToFloat(R24i.w) + intBitsToFloat(PV1i.w));
R0i.z = floatBitsToInt(intBitsToFloat(PV1i.x) + -(1.0));
R0i.z = clampFI32(R0i.z);
// 5
PV1i.z = floatBitsToInt(intBitsToFloat(PV0i.y) * intBitsToFloat(0x3e000000));
PV1i.z = floatBitsToInt(intBitsToFloat(PV1i.z) * 2.0);
// 6
R25i.x = floatBitsToInt(intBitsToFloat(PV1i.z) + -(1.0));
R25i.x = clampFI32(R25i.x);
PV0i.x = R25i.x;
// 7
PV1i.x = floatBitsToInt(intBitsToFloat(R0i.z) + -(intBitsToFloat(PV0i.x)));
// 8
R1i.y = floatBitsToInt(max(intBitsToFloat(PV1i.x), -(intBitsToFloat(PV1i.x))));
// 9
predResult = (intBitsToFloat(R1i.y) > intBitsToFloat(0x3e4ccccd));
activeMaskStack[1] = predResult;
activeMaskStackC[2] = predResult == true && activeMaskStackC[1] == true;
}
else {
activeMaskStack[1] = false;
activeMaskStackC[2] = false;
}
if( activeMaskStackC[2] == true ) {
// 0
PV0i.x = floatBitsToInt(intBitsToFloat(R11i.x) + intBitsToFloat(R6i.x));
R124i.y = floatBitsToInt(intBitsToFloat(R7i.w) + -(intBitsToFloat(R12i.w)));
PV0i.z = floatBitsToInt(intBitsToFloat(R11i.z) + intBitsToFloat(R6i.z));
PV0i.w = floatBitsToInt(intBitsToFloat(R11i.y) + intBitsToFloat(R6i.y));
R2i.y = floatBitsToInt(intBitsToFloat(R7i.w) + -(intBitsToFloat(R14i.w)));
PS0i = R2i.y;
// 1
PV1i.x = floatBitsToInt(intBitsToFloat(R3i.y) + intBitsToFloat(PV0i.w));
PV1i.y = floatBitsToInt(intBitsToFloat(R3i.x) + intBitsToFloat(PV0i.x));
PV1i.z = floatBitsToInt(intBitsToFloat(R9i.x) + intBitsToFloat(R17i.x));
PV1i.w = floatBitsToInt(intBitsToFloat(R3i.z) + intBitsToFloat(PV0i.z));
R127i.x = floatBitsToInt(intBitsToFloat(R9i.y) + intBitsToFloat(R17i.y));
PS1i = R127i.x;
// 2
PV0i.x = floatBitsToInt(intBitsToFloat(R23i.z) + intBitsToFloat(PV1i.w));
PV0i.y = floatBitsToInt(intBitsToFloat(R23i.y) + intBitsToFloat(PV1i.x));
PV0i.z = floatBitsToInt(intBitsToFloat(R23i.x) + intBitsToFloat(PV1i.y));
PV0i.w = floatBitsToInt(intBitsToFloat(R9i.z) + intBitsToFloat(R17i.z));
R127i.z = floatBitsToInt(intBitsToFloat(R18i.x) + intBitsToFloat(PV1i.z));
PS0i = R127i.z;
// 3
PV1i.x = floatBitsToInt(intBitsToFloat(R18i.z) + intBitsToFloat(PV0i.w));
PV1i.y = floatBitsToInt(intBitsToFloat(R18i.y) + intBitsToFloat(R127i.x));
PV1i.z = floatBitsToInt(intBitsToFloat(R10i.y) + intBitsToFloat(PV0i.y));
PV1i.w = floatBitsToInt(intBitsToFloat(R10i.x) + intBitsToFloat(PV0i.z));
R127i.y = floatBitsToInt(intBitsToFloat(R10i.z) + intBitsToFloat(PV0i.x));
PS1i = R127i.y;
// 4
PV0i.x = floatBitsToInt(intBitsToFloat(R4i.x) + intBitsToFloat(PV1i.w));
PV0i.y = floatBitsToInt(intBitsToFloat(R19i.z) + intBitsToFloat(PV1i.x));
PV0i.z = floatBitsToInt(intBitsToFloat(R19i.y) + intBitsToFloat(PV1i.y));
PV0i.w = floatBitsToInt(intBitsToFloat(R19i.x) + intBitsToFloat(R127i.z));
R127i.w = floatBitsToInt(intBitsToFloat(R4i.y) + intBitsToFloat(PV1i.z));
PS0i = R127i.w;
// 5
PV1i.x = floatBitsToInt(intBitsToFloat(R8i.x) + intBitsToFloat(PV0i.w));
PV1i.y = floatBitsToInt(intBitsToFloat(R8i.z) + intBitsToFloat(PV0i.y));
PV1i.z = floatBitsToInt(intBitsToFloat(R4i.z) + intBitsToFloat(R127i.y));
PV1i.w = floatBitsToInt(intBitsToFloat(R8i.y) + intBitsToFloat(PV0i.z));
R127i.y = floatBitsToInt(intBitsToFloat(R5i.x) + intBitsToFloat(PV0i.x));
PS1i = R127i.y;
// 6
PV0i.x = floatBitsToInt(intBitsToFloat(R5i.y) + intBitsToFloat(R127i.w));
PV0i.y = floatBitsToInt(intBitsToFloat(R20i.x) + intBitsToFloat(PV1i.x));
PV0i.z = floatBitsToInt(intBitsToFloat(R20i.y) + intBitsToFloat(PV1i.w));
PV0i.w = floatBitsToInt(intBitsToFloat(R5i.z) + intBitsToFloat(PV1i.z));
R127i.w = floatBitsToInt(intBitsToFloat(R20i.z) + intBitsToFloat(PV1i.y));
PS0i = R127i.w;
// 7
PV1i.x = floatBitsToInt(intBitsToFloat(R21i.x) + intBitsToFloat(PV0i.y));
PV1i.y = floatBitsToInt(intBitsToFloat(R24i.y) + intBitsToFloat(PV0i.x));
PV1i.z = floatBitsToInt(intBitsToFloat(R24i.x) + intBitsToFloat(R127i.y));
PV1i.w = floatBitsToInt(intBitsToFloat(R24i.z) + intBitsToFloat(PV0i.w));
R127i.y = floatBitsToInt(intBitsToFloat(R21i.y) + intBitsToFloat(PV0i.z));
PS1i = R127i.y;
// 8
R127i.x = floatBitsToInt(intBitsToFloat(R21i.z) + intBitsToFloat(R127i.w));
R126i.y = floatBitsToInt(intBitsToFloat(PV1i.z) * intBitsToFloat(0x3e000000));
R127i.z = floatBitsToInt(intBitsToFloat(PV1i.y) * intBitsToFloat(0x3e000000));
R127i.w = floatBitsToInt(intBitsToFloat(PV1i.w) * intBitsToFloat(0x3e000000));
R126i.w = floatBitsToInt(intBitsToFloat(R22i.x) + intBitsToFloat(PV1i.x));
PS0i = R126i.w;
// 9
tempi.x = floatBitsToInt(dot(vec4(intBitsToFloat(R7i.x),intBitsToFloat(R7i.y),intBitsToFloat(R7i.z),-0.0),vec4(intBitsToFloat(0x3e991687),intBitsToFloat(0x3f1645a2),intBitsToFloat(0x3de978d5),0.0)));
PV1i.x = tempi.x;
PV1i.y = tempi.x;
PV1i.z = tempi.x;
PV1i.w = tempi.x;
R1i.z = tempi.x;
R126i.z = floatBitsToInt(intBitsToFloat(R22i.y) + intBitsToFloat(R127i.y));
PS1i = R126i.z;
// 10
tempi.x = floatBitsToInt(dot(vec4(intBitsToFloat(R12i.x),intBitsToFloat(R12i.y),intBitsToFloat(R12i.z),-0.0),vec4(intBitsToFloat(0x3e991687),intBitsToFloat(0x3f1645a2),intBitsToFloat(0x3de978d5),0.0)));
PV0i.x = tempi.x;
PV0i.y = tempi.x;
PV0i.z = tempi.x;
PV0i.w = tempi.x;
R125i.y = tempi.x;
R127i.y = floatBitsToInt(intBitsToFloat(R22i.z) + intBitsToFloat(R127i.x));
PS0i = R127i.y;
// 11
tempi.x = floatBitsToInt(dot(vec4(intBitsToFloat(R126i.y),intBitsToFloat(R127i.z),intBitsToFloat(R127i.w),-0.0),vec4(intBitsToFloat(0x3e991687),intBitsToFloat(0x3f1645a2),intBitsToFloat(0x3de978d5),0.0)));
PV1i.x = tempi.x;
PV1i.y = tempi.x;
PV1i.z = tempi.x;
PV1i.w = tempi.x;
R127i.w = tempi.x;
PS1i = floatBitsToInt(intBitsToFloat(R1i.z) + -(intBitsToFloat(PV0i.x)));
// 12
backupReg0i = R127i.y;
R127i.x = floatBitsToInt(intBitsToFloat(R126i.w) * intBitsToFloat(0x3e000000));
R127i.y = floatBitsToInt(intBitsToFloat(R126i.z) * intBitsToFloat(0x3e000000));
R126i.z = floatBitsToInt(intBitsToFloat(backupReg0i) * intBitsToFloat(0x3e000000));
PV0i.w = floatBitsToInt(intBitsToFloat(PV1i.x) + -(intBitsToFloat(R125i.y)));
PS0i = floatBitsToInt(1.0 / intBitsToFloat(PS1i));
// 13
tempi.x = floatBitsToInt(dot(vec4(intBitsToFloat(R14i.x),intBitsToFloat(R14i.y),intBitsToFloat(R14i.z),-0.0),vec4(intBitsToFloat(0x3e991687),intBitsToFloat(0x3f1645a2),intBitsToFloat(0x3de978d5),0.0)));
PV1i.x = tempi.x;
PV1i.y = tempi.x;
PV1i.z = tempi.x;
PV1i.w = tempi.x;
R126i.w = tempi.x;
R127i.z = floatBitsToInt(intBitsToFloat(PV0i.w) * intBitsToFloat(PS0i));
R127i.z = clampFI32(R127i.z);
PS1i = R127i.z;
// 14
R1i.x = floatBitsToInt(dot(vec4(intBitsToFloat(R127i.x),intBitsToFloat(R127i.y),intBitsToFloat(R126i.z),-0.0),vec4(intBitsToFloat(0x3e991687),intBitsToFloat(0x3f1645a2),intBitsToFloat(0x3de978d5),0.0)));
PV0i.x = R1i.x;
PV0i.y = R1i.x;
PV0i.z = R1i.x;
PV0i.w = R1i.x;
R127i.x = floatBitsToInt(intBitsToFloat(R1i.z) + -(intBitsToFloat(PV1i.x)));
PS0i = R127i.x;
// 15
tempi.x = floatBitsToInt(dot(vec4(intBitsToFloat(R13i.x),intBitsToFloat(R13i.y),intBitsToFloat(R13i.z),-0.0),vec4(intBitsToFloat(0x3e991687),intBitsToFloat(0x3f1645a2),intBitsToFloat(0x3de978d5),0.0)));
PV1i.x = tempi.x;
PV1i.y = tempi.x;
PV1i.z = tempi.x;
PV1i.w = tempi.x;
R127i.y = floatBitsToInt(intBitsToFloat(PV0i.x) + -(intBitsToFloat(R126i.w)));
PS1i = R127i.y;
// 16
PV0i.x = ((intBitsToFloat(R127i.z) == 0.0)?int(0xFFFFFFFF):int(0x0));
PV0i.y = floatBitsToInt(-(intBitsToFloat(R1i.z)) + intBitsToFloat(PV1i.x));
R126i.z = floatBitsToInt(intBitsToFloat(R7i.x) + -(intBitsToFloat(R12i.x)));
R126i.w = floatBitsToInt(intBitsToFloat(R7i.y) + -(intBitsToFloat(R12i.y)));
PS0i = floatBitsToInt(1.0 / intBitsToFloat(R127i.x));
// 17
backupReg0i = R127i.z;
PV1i.x = floatBitsToInt(intBitsToFloat(R7i.z) + -(intBitsToFloat(R12i.z)));
R1i.y = floatBitsToInt(intBitsToFloat(R7i.x) + -(intBitsToFloat(R14i.x)));
R127i.z = floatBitsToInt(intBitsToFloat(R127i.y) * intBitsToFloat(PS0i));
R127i.z = clampFI32(R127i.z);
R123i.w = ((PV0i.x == 0)?(backupReg0i):(0x3f800000));
PV1i.w = R123i.w;
R125i.w = floatBitsToInt(1.0 / intBitsToFloat(PV0i.y));
PS1i = R125i.w;
// 18
R3i.x = floatBitsToInt((mul_nonIEEE(intBitsToFloat(PV1i.x),intBitsToFloat(PV1i.w)) + intBitsToFloat(R12i.z)));
R4i.y = floatBitsToInt((mul_nonIEEE(intBitsToFloat(R126i.w),intBitsToFloat(PV1i.w)) + intBitsToFloat(R12i.y)));
R4i.z = floatBitsToInt((mul_nonIEEE(intBitsToFloat(R126i.z),intBitsToFloat(PV1i.w)) + intBitsToFloat(R12i.x)));
R2i.w = floatBitsToInt((mul_nonIEEE(intBitsToFloat(R124i.y),intBitsToFloat(PV1i.w)) + intBitsToFloat(R12i.w)));
R124i.y = floatBitsToInt(intBitsToFloat(R127i.w) + -(intBitsToFloat(R1i.z)));
PS0i = R124i.y;
// 19
tempi.x = floatBitsToInt(dot(vec4(intBitsToFloat(R15i.x),intBitsToFloat(R15i.y),intBitsToFloat(R15i.z),-0.0),vec4(intBitsToFloat(0x3e991687),intBitsToFloat(0x3f1645a2),intBitsToFloat(0x3de978d5),0.0)));
PV1i.x = tempi.x;
PV1i.y = tempi.x;
PV1i.z = tempi.x;
PV1i.w = tempi.x;
PS1i = ((intBitsToFloat(R127i.z) == 0.0)?int(0xFFFFFFFF):int(0x0));
// 20
R2i.x = floatBitsToInt(-(intBitsToFloat(R1i.z)) + intBitsToFloat(PV1i.x));
R3i.y = ((PS1i == 0)?(R127i.z):(0x3f800000));
R3i.z = floatBitsToInt(intBitsToFloat(R124i.y) * intBitsToFloat(R125i.w));
R3i.z = clampFI32(R3i.z);
R1i.w = floatBitsToInt(intBitsToFloat(R13i.y) + -(intBitsToFloat(R4i.y)));
R2i.z = floatBitsToInt(intBitsToFloat(R13i.w) + -(intBitsToFloat(R2i.w)));
PS0i = R2i.z;
}
if( activeMaskStackC[2] == true ) {
// 0
PV0i.x = floatBitsToInt(intBitsToFloat(R7i.y) + -(intBitsToFloat(R14i.y)));
R124i.y = floatBitsToInt(intBitsToFloat(R13i.x) + -(intBitsToFloat(R4i.z)));
R127i.z = floatBitsToInt(intBitsToFloat(R1i.x) + -(intBitsToFloat(R1i.z)));
R125i.w = floatBitsToInt(intBitsToFloat(R13i.z) + -(intBitsToFloat(R3i.x)));
// 1
R126i.x = floatBitsToInt((mul_nonIEEE(intBitsToFloat(R1i.y),intBitsToFloat(R3i.y)) + intBitsToFloat(R14i.x)));
PV1i.x = R126i.x;
R127i.y = ((1.0 > intBitsToFloat(R3i.z))?int(0xFFFFFFFF):int(0x0));
PV1i.z = floatBitsToInt(intBitsToFloat(R7i.z) + -(intBitsToFloat(R14i.z)));
R126i.w = floatBitsToInt((mul_nonIEEE(intBitsToFloat(PV0i.x),intBitsToFloat(R3i.y)) + intBitsToFloat(R14i.y)));
R127i.w = floatBitsToInt(1.0 / intBitsToFloat(R2i.x));
PS1i = R127i.w;
// 2
backupReg0i = R2i.y;
R127i.x = floatBitsToInt((mul_nonIEEE(intBitsToFloat(R124i.y),intBitsToFloat(R3i.z)) + intBitsToFloat(R4i.z)));
R2i.y = floatBitsToInt((mul_nonIEEE(intBitsToFloat(backupReg0i),intBitsToFloat(R3i.y)) + intBitsToFloat(R14i.w)));
R125i.z = floatBitsToInt((mul_nonIEEE(intBitsToFloat(PV1i.z),intBitsToFloat(R3i.y)) + intBitsToFloat(R14i.z)));
R123i.w = floatBitsToInt((mul_nonIEEE(intBitsToFloat(R125i.w),intBitsToFloat(R3i.z)) + intBitsToFloat(R3i.x)));
PV0i.w = R123i.w;
R125i.w = floatBitsToInt(intBitsToFloat(R15i.x) + -(intBitsToFloat(PV1i.x)));
PS0i = R125i.w;
// 3
R123i.x = floatBitsToInt((mul_nonIEEE(intBitsToFloat(R1i.w),intBitsToFloat(R3i.z)) + intBitsToFloat(R4i.y)));
PV1i.x = R123i.x;
R124i.y = floatBitsToInt(intBitsToFloat(R127i.z) * intBitsToFloat(R127i.w));
R124i.y = clampFI32(R124i.y);
R123i.z = floatBitsToInt((mul_nonIEEE(intBitsToFloat(R2i.z),intBitsToFloat(R3i.z)) + intBitsToFloat(R2i.w)));
PV1i.z = R123i.z;
R127i.w = ((R127i.y == 0)?(R3i.x):(PV0i.w));
// 4
backupReg0i = R127i.y;
backupReg1i = R127i.x;
backupReg0i = R127i.y;
R127i.x = ((R127i.y == 0)?(R4i.y):(PV1i.x));
R127i.y = ((backupReg0i == 0)?(R4i.z):(backupReg1i));
R127i.z = ((backupReg0i == 0)?(R2i.w):(PV1i.z));
PV0i.w = floatBitsToInt(intBitsToFloat(R15i.y) + -(intBitsToFloat(R126i.w)));
PS0i = floatBitsToInt(intBitsToFloat(R15i.z) + -(intBitsToFloat(R125i.z)));
// 5
PV1i.x = floatBitsToInt(intBitsToFloat(R15i.w) + -(intBitsToFloat(R2i.y)));
R126i.y = ((1.0 > intBitsToFloat(R124i.y))?int(0xFFFFFFFF):int(0x0));
PV1i.y = R126i.y;
R126i.z = floatBitsToInt((mul_nonIEEE(intBitsToFloat(PV0i.w),intBitsToFloat(R124i.y)) + intBitsToFloat(R126i.w)));
R123i.w = floatBitsToInt((mul_nonIEEE(intBitsToFloat(R125i.w),intBitsToFloat(R124i.y)) + intBitsToFloat(R126i.x)));
PV1i.w = R123i.w;
R125i.y = floatBitsToInt((mul_nonIEEE(intBitsToFloat(PS0i),intBitsToFloat(R124i.y)) + intBitsToFloat(R125i.z)));
PS1i = R125i.y;
// 6
backupReg0i = R127i.z;
backupReg1i = R126i.x;
R126i.x = floatBitsToInt((mul_nonIEEE(intBitsToFloat(PV1i.x),intBitsToFloat(R124i.y)) + intBitsToFloat(R2i.y)));
PV0i.y = floatBitsToInt(-(intBitsToFloat(R16i.z)) + intBitsToFloat(R127i.w));
R127i.z = floatBitsToInt(-(intBitsToFloat(R16i.w)) + intBitsToFloat(backupReg0i));
PV0i.w = floatBitsToInt(-(intBitsToFloat(R16i.x)) + intBitsToFloat(R127i.y));
R127i.w = ((PV1i.y == 0)?(backupReg1i):(PV1i.w));
PS0i = R127i.w;
// 7
backupReg0i = R127i.x;
R127i.x = ((R126i.y == 0)?(R126i.w):(R126i.z));
R123i.y = ((R126i.y == 0)?(R125i.z):(R125i.y));
PV1i.y = R123i.y;
PV1i.z = floatBitsToInt(-(intBitsToFloat(R16i.y)) + intBitsToFloat(backupReg0i));
R126i.w = floatBitsToInt((mul_nonIEEE(intBitsToFloat(PV0i.w),intBitsToFloat(R25i.x)) + intBitsToFloat(R16i.x)));
PV1i.w = R126i.w;
R125i.y = floatBitsToInt((mul_nonIEEE(intBitsToFloat(PV0i.y),intBitsToFloat(R25i.x)) + intBitsToFloat(R16i.z)));
PS1i = R125i.y;
// 8
R123i.x = ((R126i.y == 0)?(R2i.y):(R126i.x));
PV0i.x = R123i.x;
R127i.y = floatBitsToInt((mul_nonIEEE(intBitsToFloat(R127i.z),intBitsToFloat(R25i.x)) + intBitsToFloat(R16i.w)));
PV0i.y = R127i.y;
R127i.z = floatBitsToInt((mul_nonIEEE(intBitsToFloat(PV1i.z),intBitsToFloat(R25i.x)) + intBitsToFloat(R16i.y)));
PV0i.z = R127i.z;
PV0i.w = floatBitsToInt(intBitsToFloat(R127i.w) + -(intBitsToFloat(PV1i.w)));
R126i.y = floatBitsToInt(intBitsToFloat(PV1i.y) + -(intBitsToFloat(PS1i)));
PS0i = R126i.y;
// 9
backupReg0i = R0i.z;
PV1i.x = floatBitsToInt(intBitsToFloat(PV0i.x) + -(intBitsToFloat(PV0i.y)));
PV1i.z = floatBitsToInt(intBitsToFloat(R127i.x) + -(intBitsToFloat(PV0i.z)));
R16i.x = floatBitsToInt((mul_nonIEEE(intBitsToFloat(PV0i.w),intBitsToFloat(backupReg0i)) + intBitsToFloat(R126i.w)));
PS1i = R16i.x;
// 10
R16i.y = floatBitsToInt((mul_nonIEEE(intBitsToFloat(PV1i.z),intBitsToFloat(R0i.z)) + intBitsToFloat(R127i.z)));
R16i.z = floatBitsToInt((mul_nonIEEE(intBitsToFloat(R126i.y),intBitsToFloat(R0i.z)) + intBitsToFloat(R125i.y)));
R16i.w = floatBitsToInt((mul_nonIEEE(intBitsToFloat(PV1i.x),intBitsToFloat(R0i.z)) + intBitsToFloat(R127i.y)));
}
activeMaskStackC[1] = activeMaskStack[0] == true && activeMaskStackC[0] == true;
if( activeMaskStackC[1] == true ) {
// 0
R1i.x = floatBitsToInt(intBitsToFloat(R0i.x) + intBitsToFloat(0xba99999a));
R1i.y = floatBitsToInt(intBitsToFloat(R0i.y) + intBitsToFloat(0xbb088889));
R0i.z = floatBitsToInt(intBitsToFloat(R0i.x) + intBitsToFloat(0x3a99999a));
R0i.w = floatBitsToInt(intBitsToFloat(R0i.y) + intBitsToFloat(0xbb088889));
R2i.x = floatBitsToInt(intBitsToFloat(R0i.x) + intBitsToFloat(0xba99999a));
PS0i = R2i.x;
// 1
R3i.x = floatBitsToInt(intBitsToFloat(R0i.x) + intBitsToFloat(0x3a99999a));
R2i.y = floatBitsToInt(intBitsToFloat(R0i.y) + intBitsToFloat(0x3b088889));
R3i.z = floatBitsToInt(intBitsToFloat(R0i.y) + intBitsToFloat(0x3b088889));
R4i.w = floatBitsToInt(intBitsToFloat(R7i.x) + -(intBitsToFloat(R16i.x)));
R1i.z = floatBitsToInt(intBitsToFloat(R7i.y) + -(intBitsToFloat(R16i.y)));
PS1i = R1i.z;
}
if( activeMaskStackC[1] == true ) {
R1i.w = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R1i.xy)).w);
R0i.w = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R0i.zw)).w);
R2i.w = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R2i.xy)).w);
R3i.w = floatBitsToInt(texture(textureUnitPS0, intBitsToFloat(R3i.xz)).w);
}
if( activeMaskStackC[1] == true ) {
// 0
R127i.x = floatBitsToInt(intBitsToFloat(R7i.z) + -(intBitsToFloat(R16i.z)));
PV0i.y = floatBitsToInt(intBitsToFloat(R1i.w) + intBitsToFloat(R0i.w));
// 1
PV1i.x = floatBitsToInt(intBitsToFloat(R2i.w) + intBitsToFloat(PV0i.y));
R127i.y = floatBitsToInt(intBitsToFloat(R7i.w) + -(intBitsToFloat(R16i.w)));
// 2
PV0i.w = floatBitsToInt(intBitsToFloat(R3i.w) + intBitsToFloat(PV1i.x));
PV0i.w = floatBitsToInt(intBitsToFloat(PV0i.w) * 4.0);
// 3
PV1i.z = floatBitsToInt(intBitsToFloat(R7i.w) + intBitsToFloat(PV0i.w));
// 4
PV0i.y = floatBitsToInt(intBitsToFloat(R10i.w) + intBitsToFloat(PV1i.z));
// 5
PV1i.x = floatBitsToInt(intBitsToFloat(R11i.w) + intBitsToFloat(PV0i.y));
// 6
PV0i.w = floatBitsToInt(intBitsToFloat(R8i.w) + intBitsToFloat(PV1i.x));
// 7
PV1i.z = floatBitsToInt(intBitsToFloat(R9i.w) + intBitsToFloat(PV0i.w));
// 8
PV0i.y = floatBitsToInt(intBitsToFloat(PV1i.z) * intBitsToFloat(0x3d23d70a));
// 9
R123i.x = floatBitsToInt((intBitsToFloat(PV0i.y) * intBitsToFloat(0x40400000) + -(1.5)));
R123i.x = clampFI32(R123i.x);
PV1i.x = R123i.x;
// 10
R1i.x = floatBitsToInt((mul_nonIEEE(intBitsToFloat(R4i.w),intBitsToFloat(PV1i.x)) + intBitsToFloat(R16i.x)));
R1i.y = floatBitsToInt((mul_nonIEEE(intBitsToFloat(R1i.z),intBitsToFloat(PV1i.x)) + intBitsToFloat(R16i.y)));
R1i.z = floatBitsToInt((mul_nonIEEE(intBitsToFloat(R127i.x),intBitsToFloat(PV1i.x)) + intBitsToFloat(R16i.z)));
R1i.w = floatBitsToInt((mul_nonIEEE(intBitsToFloat(R127i.y),intBitsToFloat(PV1i.x)) + intBitsToFloat(R16i.w)));
}
// export
//passPixelColor0 = vec4(intBitsToFloat(R1i.x), intBitsToFloat(R1i.y), intBitsToFloat(R1i.z), intBitsToFloat(R1i.w));
}

View File

@ -0,0 +1,168 @@
[Definition]
titleIds = 00050000101B0400
name = Resolution
path = "Star Fox Zero/Graphics/Resolution"
description = Changes the resolution of the game.
version = 3
[Preset]
name = 1280x720 (Default)
$width = 1280
$height = 720
$gameWidth = 1280
$gameHeight = 720
# Performance
[Preset]
name = 320x180
$width = 320
$height = 180
$gameWidth = 1280
$gameHeight = 720
[Preset]
name = 640x360
$width = 640
$height = 360
$gameWidth = 1280
$gameHeight = 720
[Preset]
name = 960x540
$width = 960
$height = 540
$gameWidth = 1280
$gameHeight = 720
# Common HD Resolutions
[Preset]
name = 1600x900
$width = 1600
$height = 900
$gameWidth = 1280
$gameHeight = 720
[Preset]
name = 1920x1080
$width = 1920
$height = 1080
$gameWidth = 1280
$gameHeight = 720
[Preset]
name = 2560x1440
$width = 2560
$height = 1440
$gameWidth = 1280
$gameHeight = 720
[Preset]
name = 3200x1800
$width = 3200
$height = 1800
$gameWidth = 1280
$gameHeight = 720
[Preset]
name = 3840x2160
$width = 3840
$height = 2160
$gameWidth = 1280
$gameHeight = 720
[Preset]
name = 5120x2880
$width = 5120
$height = 2880
$gameWidth = 1280
$gameHeight = 720
# TV
[TextureRedefine]
width = 1280
height = 720
formats = 0x11,0x1a,0x80e,0x816
overwriteWidth = ($width/$gameWidth) * 1280
overwriteHeight = ($height/$gameHeight) * 720
[TextureRedefine]
width = 1152
height = 720
formats = 0x11,0x80e,0x816
overwriteWidth = ($width/$gameWidth) * 1152
overwriteHeight = ($height/$gameHeight) * 720
[TextureRedefine]
width = 640
height = 368
formats = 0x11,0x1a
overwriteWidth = ($width/$gameWidth) * 640
overwriteHeight = ($height/$gameHeight) * 368
[TextureRedefine]
width = 640
height = 360
formats = 0x1a
overwriteWidth = ($width/$gameWidth) * 640
overwriteHeight = ($height/$gameHeight) * 360
[TextureRedefine]
width = 320
height = 192
formats = 0x1a
overwriteWidth = ($width/$gameWidth) * 320
overwriteHeight = ($height/$gameHeight) * 192
[TextureRedefine]
width = 320
height = 180
formats = 0x1a
overwriteWidth = ($width/$gameWidth) * 320
overwriteHeight = ($height/$gameHeight) * 180
# Gamepad
[TextureRedefine]
width = 864
height = 480
formats = 0x11,0x1a,0x816
overwriteWidth = ($width/$gameWidth) * 864
overwriteHeight = ($height/$gameHeight) * 480
[TextureRedefine]
width = 854
height = 480
formats = 0x1a,0x816
overwriteWidth = ($width/$gameWidth) * 854
overwriteHeight = ($height/$gameHeight) * 480
[TextureRedefine]
width = 768
height = 480
formats = 0x11,0x80e,0x816
overwriteWidth = ($width/$gameWidth) * 768
overwriteHeight = ($height/$gameHeight) * 480
[TextureRedefine]
width = 765
height = 480
formats = 0x11,0x816
overwriteWidth = ($width/$gameWidth) * 765
overwriteHeight = ($height/$gameHeight) * 480
[TextureRedefine]
width = 704
height = 480
formats = 0x11,0x80e,0x816
overwriteWidth = ($width/$gameWidth) * 704
overwriteHeight = ($height/$gameHeight) * 480
[TextureRedefine]
width = 680
height = 480
formats = 0x11,0x80e,0x816
overwriteWidth = ($width/$gameWidth) * 680
overwriteHeight = ($height/$gameHeight) * 480