mirror of
https://github.com/cemu-project/cemu_graphic_packs.git
synced 2024-11-29 21:04:14 +01:00
e71fff7263
doesn't do any shader scaling yet, AA is disabled by default
679 lines
33 KiB
Plaintext
679 lines
33 KiB
Plaintext
#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));
|
|
}
|