This commit is contained in:
Jamie 2018-01-11 12:28:52 -08:00
commit 2a929a61c3
17 changed files with 3287 additions and 50 deletions

View File

@ -0,0 +1,132 @@
<?php
include 'Source/functions.php';
$fullWidth = $argv[1];
$fullHeight = $argv[2];
$scaleFactorX = always_decimal_format($fullWidth / 1280.0);
$scaleFactorY = always_decimal_format($fullHeight / 720.0);
?>
#version 420
#extension GL_ARB_texture_gather : enable
#extension GL_ARB_separate_shader_objects : enable
// shader 117889891fd19c30
//menu
const float resScale = <?=$scaleFactorX?>;
uniform ivec4 uf_remappedPS[1];
uniform float uf_alphaTestRef;
layout(binding = 1) uniform sampler2D textureUnitPS1;// Tex1 addr 0xf4000800 res 1280x720x1 dim 1 tm: 4 format 001a compSel: 0 1 2 3 mipView: 0x0 (num 0x1) sliceView: 0x0 (num 0x1) Sampler1 ClampX/Y/Z: 2 2 0 border: 0
layout(location = 0) in vec4 passParameterSem129;
layout(location = 1) in vec4 passParameterSem128;
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()
{
vec4 R0f = vec4(0.0);
vec4 R1f = vec4(0.0);
vec4 R2f = vec4(0.0);
vec4 R3f = vec4(0.0);
vec4 R4f = vec4(0.0);
vec4 R5f = vec4(0.0);
vec4 R6f = vec4(0.0);
vec4 R7f = vec4(0.0);
vec4 R8f = vec4(0.0);
vec4 R126f = vec4(0.0);
vec4 R127f = vec4(0.0);
float backupReg0f, backupReg1f, backupReg2f, backupReg3f, backupReg4f;
vec4 PV0f = vec4(0.0), PV1f = vec4(0.0);
float PS0f = 0.0, PS1f = 0.0;
vec4 tempf = vec4(0.0);
float tempResultf;
int tempResulti;
ivec4 ARi = ivec4(0);
bool predResult = true;
vec3 cubeMapSTM;
int cubeMapFaceId;
R0f = passParameterSem129;
R1f = passParameterSem128;
// 0
backupReg0f = R0f.w;
R7f.x = intBitsToFloat(uf_remappedPS[0].z) * intBitsToFloat(0x3e124925);
PV0f.w = mul_nonIEEE(backupReg0f, intBitsToFloat(uf_remappedPS[0].w));
PV0f.w *= 2.0;
PS0f = 1.0 / R1f.w;
PS0f /= 2.0;
// 1
R127f.x = PV0f.w * intBitsToFloat(0x3a4ccccd)/ resScale;
R127f.y = PV0f.w * intBitsToFloat(0x3acccccd)/ resScale;
PV1f.z = mul_nonIEEE(R1f.x, PS0f);
PV1f.w = mul_nonIEEE(-(R1f.y), PS0f);
R127f.w = PV0f.w * intBitsToFloat(0x3b19999a)/ resScale;
PS1f = R127f.w;
// 2
R6f.x = PV1f.z + 0.5;
PV0f.x = R6f.x;
R6f.y = PV1f.w + 0.5;
PV0f.y = R6f.y;
R8f.w = 1.0;
// 3
R1f.x = PV0f.x + -(R127f.x);
R1f.y = PV0f.y;
R0f.z = PV0f.y;
R0f.x = PV0f.x + R127f.x;
PS1f = R0f.x;
// 4
R2f.x = R6f.x + -(R127f.y);
R2f.y = R6f.y;
R3f.z = R6f.y;
R3f.x = R6f.x + R127f.y;
PS0f = R3f.x;
// 5
R4f.x = R6f.x + -(R127f.w);
R4f.y = R6f.y;
R5f.z = R6f.y;
R5f.x = R6f.x + R127f.w;
PS1f = R5f.x;
R1f.xyz = (texture(textureUnitPS1, R1f.xy).xyz);
R0f.xyz = (texture(textureUnitPS1, R0f.xz).xyz);
R2f.xyz = (texture(textureUnitPS1, R2f.xy).xyz);
R3f.xyz = (texture(textureUnitPS1, R3f.xz).xyz);
R4f.xyz = (texture(textureUnitPS1, R4f.xy).xyz);
R5f.xyz = (texture(textureUnitPS1, R5f.xz).xyz);
R6f.xyz = (texture(textureUnitPS1, R6f.xy).xyz);
// 0
backupReg0f = R0f.x;
PV0f.x = R1f.x + backupReg0f;
R127f.z = R1f.z + R0f.z;
PV0f.w = R1f.y + R0f.y;
// 1
R127f.x = R6f.x + PV0f.x;
R127f.y = R2f.x + R3f.x;
R126f.z = R2f.z + R3f.z;
R127f.w = R2f.y + R3f.y;
R126f.w = R6f.y + PV0f.w;
PS1f = R126f.w;
// 2
PV0f.x = R4f.y + R5f.y;
PV0f.y = R4f.x + R5f.x;
PV0f.w = R4f.z + R5f.z;
// 3
PV1f.x = PV0f.y + R127f.y;
PV1f.y = PV0f.x + R127f.w;
PV1f.z = R6f.z + R127f.z;
PV1f.w = PV0f.w + R126f.z;
// 4
PV0f.y = PV1f.z + PV1f.w;
PV0f.z = R126f.w + PV1f.y;
PV0f.w = R127f.x + PV1f.x;
// 5
R8f.x = mul_nonIEEE(PV0f.w, R7f.x);
R8f.y = mul_nonIEEE(PV0f.z, R7f.x);
R8f.z = mul_nonIEEE(PV0f.y, R7f.x);
// export
if( ((vec4(R8f.x, R8f.y, R8f.z, R8f.w)).a >= uf_alphaTestRef) == false) discard;
passPixelColor0 = vec4(R8f.x, R8f.y, R8f.z, R8f.w);
}

View File

@ -0,0 +1,114 @@
<?php
include 'Source/functions.php';
$fullWidth = $argv[1];
$fullHeight = $argv[2];
$scaleFactorX = always_decimal_format($fullWidth / 1280.0);
$scaleFactorY = always_decimal_format($fullHeight / 720.0);
?>
#version 420
#extension GL_ARB_texture_gather : enable
#extension GL_ARB_separate_shader_objects : enable
// shader 212e4514290f2693
const float resScale = <?=$scaleFactorX?>;
uniform ivec4 uf_remappedPS[1];
layout(binding = 1) uniform sampler2D textureUnitPS1;// Tex1 addr 0xf4e48800 res 320x176x1 dim 1 tm: 4 format 001a compSel: 0 1 2 3 mipView: 0x0 (num 0x1) sliceView: 0x0 (num 0x1) Sampler1 ClampX/Y/Z: 2 2 0 border: 0
layout(location = 0) in vec4 passParameterSem128;
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()
{
vec4 R0f = vec4(0.0);
vec4 R1f = vec4(0.0);
vec4 R2f = vec4(0.0);
vec4 R3f = vec4(0.0);
vec4 R4f = vec4(0.0);
vec4 R5f = vec4(0.0);
vec4 R123f = vec4(0.0);
float backupReg0f, backupReg1f, backupReg2f, backupReg3f, backupReg4f;
vec4 PV0f = vec4(0.0), PV1f = vec4(0.0);
float PS0f = 0.0, PS1f = 0.0;
vec4 tempf = vec4(0.0);
float tempResultf;
int tempResulti;
ivec4 ARi = ivec4(0);
bool predResult = true;
vec3 cubeMapSTM;
int cubeMapFaceId;
R0f = passParameterSem128;
R4f.xyzw = (texture(textureUnitPS1, R0f.xy).xyzw);
// 0
R1f.x = R0f.x + intBitsToFloat(0x3c400000)/ resScale;
R1f.y = R0f.y;
R2f.z = R0f.y;
R5f.w = intBitsToFloat(uf_remappedPS[0].w);
R2f.x = R0f.x + intBitsToFloat(0x3bc00000)/ resScale;
PS0f = R2f.x;
// 1
R3f.x = R0f.x + -(intBitsToFloat(0x3c400000))/ resScale;
R3f.y = R0f.y;
R0f.z = R0f.x + -(intBitsToFloat(0x3bc00000))/ resScale;
R1f.xyzw = (texture(textureUnitPS1, R1f.xy).xyzw);
R2f.xyzw = (texture(textureUnitPS1, R2f.xz).xyzw);
R3f.xyzw = (texture(textureUnitPS1, R3f.xy).xyzw);
R0f.xyzw = (texture(textureUnitPS1, R0f.zy).xyzw);
// 0
R123f.x = (R1f.x * intBitsToFloat(0x3ee66666) + R4f.x);
PV0f.x = R123f.x;
R123f.y = (R1f.w * intBitsToFloat(0x3ee66666) + R4f.w);
PV0f.y = R123f.y;
R123f.z = (R1f.z * intBitsToFloat(0x3ee66666) + R4f.z);
PV0f.z = R123f.z;
R123f.w = (R1f.y * intBitsToFloat(0x3ee66666) + R4f.y);
PV0f.w = R123f.w;
// 1
R123f.x = (R2f.w * intBitsToFloat(0x3f4ccccd) + PV0f.y);
PV1f.x = R123f.x;
R123f.y = (R2f.z * intBitsToFloat(0x3f4ccccd) + PV0f.z);
PV1f.y = R123f.y;
R123f.z = (R2f.y * intBitsToFloat(0x3f4ccccd) + PV0f.w);
PV1f.z = R123f.z;
R123f.w = (R2f.x * intBitsToFloat(0x3f4ccccd) + PV0f.x);
PV1f.w = R123f.w;
// 2
R123f.x = (R3f.w * intBitsToFloat(0x3ee66666) + PV1f.x);
PV0f.x = R123f.x;
R123f.y = (R3f.z * intBitsToFloat(0x3ee66666) + PV1f.y);
PV0f.y = R123f.y;
R123f.z = (R3f.y * intBitsToFloat(0x3ee66666) + PV1f.z);
PV0f.z = R123f.z;
R123f.w = (R3f.x * intBitsToFloat(0x3ee66666) + PV1f.w);
PV0f.w = R123f.w;
// 3
R123f.x = (R0f.z * intBitsToFloat(0x3f4ccccd) + PV0f.y);
PV1f.x = R123f.x;
R123f.y = (R0f.y * intBitsToFloat(0x3f4ccccd) + PV0f.z);
PV1f.y = R123f.y;
R123f.z = (R0f.x * intBitsToFloat(0x3f4ccccd) + PV0f.w);
PV1f.z = R123f.z;
R123f.w = (R0f.w * intBitsToFloat(0x3f4ccccd) + PV0f.x);
PV1f.w = R123f.w;
// 4
PV0f.x = PV1f.x * intBitsToFloat(0x3e924925);
PV0f.y = PV1f.y * intBitsToFloat(0x3e924925);
PV0f.z = PV1f.z * intBitsToFloat(0x3e924925);
PV0f.w = PV1f.w * intBitsToFloat(0x3e924925);
// 5
PV1f.x = mul_nonIEEE(PV0f.x, PV0f.w);
PV1f.y = mul_nonIEEE(PV0f.y, PV0f.w);
PV1f.z = mul_nonIEEE(PV0f.z, PV0f.w);
// 6
R5f.x = mul_nonIEEE(PV1f.z, intBitsToFloat(uf_remappedPS[0].x));
R5f.y = mul_nonIEEE(PV1f.y, intBitsToFloat(uf_remappedPS[0].y));
R5f.z = mul_nonIEEE(PV1f.x, intBitsToFloat(uf_remappedPS[0].z));
// export
passPixelColor0 = vec4(R5f.x, R5f.y, R5f.z, R5f.w);
}

View File

@ -0,0 +1,115 @@
<?php
include 'Source/functions.php';
$fullWidth = $argv[1];
$fullHeight = $argv[2];
$scaleFactorX = always_decimal_format($fullWidth / 1280.0);
$scaleFactorY = always_decimal_format($fullHeight / 720.0);
?>
#version 420
#extension GL_ARB_texture_gather : enable
#extension GL_ARB_separate_shader_objects : enable
// shader 51f398ee2e3e18a6
//blur vert
const float resScale = <?=$scaleFactorX?>;
uniform ivec4 uf_remappedPS[1];
layout(binding = 1) uniform sampler2D textureUnitPS1;// Tex1 addr 0xf4e11800 res 320x176x1 dim 1 tm: 4 format 001a compSel: 0 1 2 3 mipView: 0x0 (num 0x1) sliceView: 0x0 (num 0x1) Sampler1 ClampX/Y/Z: 2 2 0 border: 0
layout(location = 0) in vec4 passParameterSem128;
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()
{
vec4 R0f = vec4(0.0);
vec4 R1f = vec4(0.0);
vec4 R2f = vec4(0.0);
vec4 R3f = vec4(0.0);
vec4 R4f = vec4(0.0);
vec4 R5f = vec4(0.0);
vec4 R123f = vec4(0.0);
float backupReg0f, backupReg1f, backupReg2f, backupReg3f, backupReg4f;
vec4 PV0f = vec4(0.0), PV1f = vec4(0.0);
float PS0f = 0.0, PS1f = 0.0;
vec4 tempf = vec4(0.0);
float tempResultf;
int tempResulti;
ivec4 ARi = ivec4(0);
bool predResult = true;
vec3 cubeMapSTM;
int cubeMapFaceId;
R0f = passParameterSem128;
R4f.xyzw = (texture(textureUnitPS1, R0f.xy).xyzw);
// 0
R1f.x = R0f.x;
R1f.y = R0f.y + intBitsToFloat(0x3c400000) / resScale;
R2f.z = R0f.x;
R5f.w = intBitsToFloat(uf_remappedPS[0].w);
R2f.y = R0f.y + intBitsToFloat(0x3bc00000) / resScale;
PS0f = R2f.y;
// 1
R3f.x = R0f.x;
R3f.y = R0f.y + -(intBitsToFloat(0x3c400000)) / resScale;
R0f.z = R0f.y + -(intBitsToFloat(0x3bc00000)) / resScale;
R1f.xyzw = (texture(textureUnitPS1, R1f.xy).xyzw);
R2f.xyzw = (texture(textureUnitPS1, R2f.zy).xyzw);
R3f.xyzw = (texture(textureUnitPS1, R3f.xy).xyzw);
R0f.xyzw = (texture(textureUnitPS1, R0f.xz).xyzw);
// 0
R123f.x = (R1f.w * intBitsToFloat(0x3ee66666) + R4f.w);
PV0f.x = R123f.x;
R123f.y = (R1f.x * intBitsToFloat(0x3ee66666) + R4f.x);
PV0f.y = R123f.y;
R123f.z = (R1f.z * intBitsToFloat(0x3ee66666) + R4f.z);
PV0f.z = R123f.z;
R123f.w = (R1f.y * intBitsToFloat(0x3ee66666) + R4f.y);
PV0f.w = R123f.w;
// 1
R123f.x = (R2f.w * intBitsToFloat(0x3f4ccccd) + PV0f.x);
PV1f.x = R123f.x;
R123f.y = (R2f.z * intBitsToFloat(0x3f4ccccd) + PV0f.z);
PV1f.y = R123f.y;
R123f.z = (R2f.y * intBitsToFloat(0x3f4ccccd) + PV0f.w);
PV1f.z = R123f.z;
R123f.w = (R2f.x * intBitsToFloat(0x3f4ccccd) + PV0f.y);
PV1f.w = R123f.w;
// 2
R123f.x = (R3f.z * intBitsToFloat(0x3ee66666) + PV1f.y);
PV0f.x = R123f.x;
R123f.y = (R3f.w * intBitsToFloat(0x3ee66666) + PV1f.x);
PV0f.y = R123f.y;
R123f.z = (R3f.y * intBitsToFloat(0x3ee66666) + PV1f.z);
PV0f.z = R123f.z;
R123f.w = (R3f.x * intBitsToFloat(0x3ee66666) + PV1f.w);
PV0f.w = R123f.w;
// 3
R123f.x = (R0f.z * intBitsToFloat(0x3f4ccccd) + PV0f.x);
PV1f.x = R123f.x;
R123f.y = (R0f.y * intBitsToFloat(0x3f4ccccd) + PV0f.z);
PV1f.y = R123f.y;
R123f.z = (R0f.x * intBitsToFloat(0x3f4ccccd) + PV0f.w);
PV1f.z = R123f.z;
R123f.w = (R0f.w * intBitsToFloat(0x3f4ccccd) + PV0f.y);
PV1f.w = R123f.w;
// 4
PV0f.x = PV1f.x * intBitsToFloat(0x3e924925);
PV0f.y = PV1f.y * intBitsToFloat(0x3e924925);
PV0f.z = PV1f.z * intBitsToFloat(0x3e924925);
PV0f.w = PV1f.w * intBitsToFloat(0x3e924925);
// 5
PV1f.x = mul_nonIEEE(PV0f.x, PV0f.w);
PV1f.y = mul_nonIEEE(PV0f.y, PV0f.w);
PV1f.z = mul_nonIEEE(PV0f.z, PV0f.w);
// 6
R5f.x = mul_nonIEEE(PV1f.z, intBitsToFloat(uf_remappedPS[0].x));
R5f.y = mul_nonIEEE(PV1f.y, intBitsToFloat(uf_remappedPS[0].y));
R5f.z = mul_nonIEEE(PV1f.x, intBitsToFloat(uf_remappedPS[0].z));
// export
passPixelColor0 = vec4(R5f.x, R5f.y, R5f.z, R5f.w);
}

View File

@ -0,0 +1,58 @@
<?php
include 'Source/functions.php';
$fullWidth = $argv[1];
$fullHeight = $argv[2];
$scaleFactorX = always_decimal_format($fullWidth / 1280.0);
$scaleFactorY = always_decimal_format($fullHeight / 720.0);
?>
#version 420
#extension GL_ARB_texture_gather : enable
#extension GL_ARB_separate_shader_objects : enable
// shader 63a0a7de4fdcf0ce
const float brightness = 0.5;
uniform ivec4 uf_remappedPS[2];
layout(binding = 1) uniform sampler2D textureUnitPS1;// Tex1 addr 0xf4000800 res 1280x720x1 dim 1 tm: 4 format 001a compSel: 0 1 2 3 mipView: 0x0 (num 0x1) sliceView: 0x0 (num 0x1) Sampler1 ClampX/Y/Z: 2 2 0 border: 0
layout(location = 0) in vec4 passParameterSem128;
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()
{
vec4 R0f = vec4(0.0);
float backupReg0f, backupReg1f, backupReg2f, backupReg3f, backupReg4f;
vec4 PV0f = vec4(0.0), PV1f = vec4(0.0);
float PS0f = 0.0, PS1f = 0.0;
vec4 tempf = vec4(0.0);
float tempResultf;
int tempResulti;
ivec4 ARi = ivec4(0);
bool predResult = true;
vec3 cubeMapSTM;
int cubeMapFaceId;
R0f = passParameterSem128;
// 0
backupReg0f = R0f.x;
backupReg1f = R0f.y;
R0f.x = backupReg0f + intBitsToFloat(uf_remappedPS[0].x);
R0f.y = backupReg1f + intBitsToFloat(uf_remappedPS[0].y);
R0f.xyzw = (texture(textureUnitPS1, R0f.xy).xyzw)*brightness;
// 0
backupReg0f = R0f.x;
backupReg1f = R0f.y;
backupReg2f = R0f.z;
backupReg3f = R0f.w;
R0f.x = mul_nonIEEE(backupReg0f, intBitsToFloat(uf_remappedPS[1].x));
R0f.y = mul_nonIEEE(backupReg1f, intBitsToFloat(uf_remappedPS[1].y));
R0f.z = mul_nonIEEE(backupReg2f, intBitsToFloat(uf_remappedPS[1].z));
R0f.w = mul_nonIEEE(backupReg3f, intBitsToFloat(uf_remappedPS[1].w));
// export
passPixelColor0 = vec4(R0f.x, R0f.y, R0f.z, R0f.w);
}

View File

@ -0,0 +1,318 @@
<?php
include 'Source/functions.php';
$fullWidth = $argv[1];
$fullHeight = $argv[2];
$scaleFactorX = always_decimal_format($fullWidth / 1280.0);
$scaleFactorY = always_decimal_format($fullHeight / 720.0);
?>
#version 420
#extension GL_ARB_texture_gather : enable
#extension GL_ARB_separate_shader_objects : enable
// shader 6e828da50daedc79
// cut scene blur
const float resScale = <?=$scaleFactorX?>;
uniform ivec4 uf_remappedPS[3];
layout(binding = 0) uniform sampler2D textureUnitPS0;// Tex0 addr 0xf5195800 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 0 border: 0
layout(binding = 1) uniform sampler2D textureUnitPS1;// Tex1 addr 0xf4709800 res 1280x720x1 dim 1 tm: 4 format 080e compSel: 0 0 0 0 mipView: 0x0 (num 0x1) sliceView: 0x0 (num 0x1) Sampler1 ClampX/Y/Z: 2 2 0 border: 0
layout(location = 0) in vec4 passParameterSem128;
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()
{
vec4 R0f = vec4(0.0);
vec4 R1f = vec4(0.0);
vec4 R2f = vec4(0.0);
vec4 R3f = vec4(0.0);
vec4 R4f = vec4(0.0);
vec4 R5f = vec4(0.0);
vec4 R6f = vec4(0.0);
vec4 R7f = vec4(0.0);
vec4 R8f = vec4(0.0);
vec4 R9f = vec4(0.0);
vec4 R10f = vec4(0.0);
vec4 R11f = vec4(0.0);
vec4 R12f = vec4(0.0);
vec4 R13f = vec4(0.0);
vec4 R123f = vec4(0.0);
vec4 R126f = vec4(0.0);
vec4 R127f = vec4(0.0);
float backupReg0f, backupReg1f, backupReg2f, backupReg3f, backupReg4f;
vec4 PV0f = vec4(0.0), PV1f = vec4(0.0);
float PS0f = 0.0, PS1f = 0.0;
vec4 tempf = vec4(0.0);
float tempResultf;
int tempResulti;
ivec4 ARi = ivec4(0);
bool predResult = true;
vec3 cubeMapSTM;
int cubeMapFaceId;
R0f = passParameterSem128;
R9f.xyz = (texture(textureUnitPS0, R0f.xy).xyz);
R10f.x = (texture(textureUnitPS1, R0f.xy).x);
// 0
PV0f.x = -(1.0) + R0f.z;
R127f.y = intBitsToFloat(0xba4ccccd) / resScale * intBitsToFloat(uf_remappedPS[0].x);
PV0f.y = R127f.y;
R2f.z = intBitsToFloat(0x3a4ccccd) / resScale * intBitsToFloat(uf_remappedPS[0].x);
R2f.w = intBitsToFloat(0xbab60b61) / resScale * intBitsToFloat(uf_remappedPS[0].x);
PV0f.w = R2f.w;
R3f.y = intBitsToFloat(0x3ab60b61) / resScale * intBitsToFloat(uf_remappedPS[0].x);
PS0f = R3f.y;
// 1
R7f.x = intBitsToFloat(0x3ab60b61) / resScale * intBitsToFloat(uf_remappedPS[0].x);
R1f.y = R0f.y + PV0f.w;
R6f.z = 1.0 + PV0f.x;
R3f.w = intBitsToFloat(0x3a4ccccd) / resScale* intBitsToFloat(uf_remappedPS[0].x);
R1f.x = R0f.x + PV0f.y;
PS1f = R1f.x;
// 2
R3f.x = -(intBitsToFloat(uf_remappedPS[1].z)) + intBitsToFloat(uf_remappedPS[1].w);
R2f.y = -(intBitsToFloat(uf_remappedPS[1].x)) + intBitsToFloat(uf_remappedPS[1].y);
R1f.z = R0f.x + R127f.y;
R1f.w = R0f.y + R3f.y;
R6f.x = R0f.x + R2f.z;
PS0f = R6f.x;
R5f.xyz = (texture(textureUnitPS0, R1f.xy).xyz);
R1f.x = (texture(textureUnitPS1, R1f.xy).x);
R4f.xyz = (texture(textureUnitPS0, R1f.zw).xyz);
R2f.x = (texture(textureUnitPS1, R1f.zw).x);
// 0
backupReg0f = R1f.x;
R1f.x = R0f.x + R2f.z;
R127f.y = R2f.x + R6f.z;
PV0f.z = backupReg0f + R6f.z;
R6f.w = R0f.y + R2f.w;
R1f.z = 1.0 / R2f.y;
PS0f = R1f.z;
// 1
R12f.x = mul_nonIEEE(PS0f, intBitsToFloat(uf_remappedPS[1].x));
R1f.y = R0f.y + R3f.y;
PS1f = 1.0 / PV0f.z;
// 2
R127f.w = mul_nonIEEE(R0f.w, PS1f);
PV0f.w = R127f.w;
R7f.z = 1.0 / R3f.x;
PS0f = R7f.z;
// 3
R13f.x = mul_nonIEEE(PS0f, intBitsToFloat(uf_remappedPS[1].z));
PV1f.x = R13f.x;
R2f.y = R0f.y + R7f.x;
R2f.z = R0f.x;
R126f.w = (mul_nonIEEE(PV0f.w,R1f.z) + -(R12f.x));
R126f.w = clamp(R126f.w, 0.0, 1.0);
PS1f = 1.0 / R127f.y;
// 4
backupReg0f = R0f.w;
R8f.x = R6f.x;
R8f.y = R0f.y;
R123f.z = (mul_nonIEEE(R127f.w,R7f.z) + -(PV1f.x));
R123f.z = clamp(R123f.z, 0.0, 1.0);
PV0f.z = R123f.z;
PV0f.w = mul_nonIEEE(backupReg0f, PS1f);
// 5
backupReg0f = R126f.w;
R123f.y = (mul_nonIEEE(R7f.z,PV0f.w) + -(R13f.x));
R123f.y = clamp(R123f.y, 0.0, 1.0);
PV1f.y = R123f.y;
R123f.z = (mul_nonIEEE(R1f.z,PV0f.w) + -(R12f.x));
R123f.z = clamp(R123f.z, 0.0, 1.0);
PV1f.z = R123f.z;
R126f.w = max(backupReg0f, PV0f.z);
// 6
backupReg0f = R0f.x;
PV0f.x = max(PV1f.z, PV1f.y);
R11f.y = R0f.y;
R11f.x = backupReg0f + -(R3f.w);
PS0f = R11f.x;
// 7
R2f.x = R126f.w + PV0f.x;
PV1f.y = mul_nonIEEE(R4f.z, PV0f.x);
PV1f.z = mul_nonIEEE(R4f.y, PV0f.x);
PV1f.w = mul_nonIEEE(R4f.x, PV0f.x);
// 8
backupReg0f = R5f.x;
backupReg1f = R5f.z;
R5f.x = (mul_nonIEEE(backupReg0f,R126f.w) + PV1f.w);
R5f.z = (mul_nonIEEE(backupReg1f,R126f.w) + PV1f.y);
R3f.w = (mul_nonIEEE(R5f.y,R126f.w) + PV1f.z);
R4f.xyz = (texture(textureUnitPS0, R6f.xw).xyz);
R6f.x = (texture(textureUnitPS1, R6f.xw).x);
R3f.xyz = (texture(textureUnitPS0, R1f.xy).xyz);
R1f.x = (texture(textureUnitPS1, R1f.xy).x);
// 0
R127f.x = R1f.x + R6f.z;
PV0f.y = R6f.x + R6f.z;
// 1
backupReg0f = R0f.y;
R0f.y = backupReg0f + -(R7f.x);
PS1f = 1.0 / PV0f.y;
// 2
PV0f.x = mul_nonIEEE(R0f.w, PS1f);
PS0f = 1.0 / R127f.x;
// 3
PV1f.x = mul_nonIEEE(R0f.w, PS0f);
R123f.y = (mul_nonIEEE(R7f.z,PV0f.x) + -(R13f.x));
R123f.y = clamp(R123f.y, 0.0, 1.0);
PV1f.y = R123f.y;
R123f.w = (mul_nonIEEE(R1f.z,PV0f.x) + -(R12f.x));
R123f.w = clamp(R123f.w, 0.0, 1.0);
PV1f.w = R123f.w;
// 4
R123f.x = (mul_nonIEEE(R1f.z,PV1f.x) + -(R12f.x));
R123f.x = clamp(R123f.x, 0.0, 1.0);
PV0f.x = R123f.x;
R123f.y = (mul_nonIEEE(R7f.z,PV1f.x) + -(R13f.x));
R123f.y = clamp(R123f.y, 0.0, 1.0);
PV0f.y = R123f.y;
R8f.z = max(PV1f.w, PV1f.y);
PV0f.z = R8f.z;
// 5
R123f.x = (mul_nonIEEE(R4f.z,PV0f.z) + R5f.z);
PV1f.x = R123f.x;
PV1f.y = max(PV0f.x, PV0f.y);
R123f.z = (mul_nonIEEE(R4f.y,PV0f.z) + R3f.w);
PV1f.z = R123f.z;
R123f.w = (mul_nonIEEE(R4f.x,PV0f.z) + R5f.x);
PV1f.w = R123f.w;
// 6
backupReg0f = R3f.y;
backupReg1f = R3f.x;
R3f.x = R2f.x + PV1f.y;
R3f.y = (mul_nonIEEE(R3f.z,PV1f.y) + PV1f.x);
R3f.z = (mul_nonIEEE(backupReg0f,PV1f.y) + PV1f.z);
R3f.w = (mul_nonIEEE(backupReg1f,PV1f.y) + PV1f.w);
R5f.xyz = (texture(textureUnitPS0, R8f.xy).xyz);
R8f.x = (texture(textureUnitPS1, R8f.xy).x);
R4f.xyz = (texture(textureUnitPS0, R2f.zy).xyz);
R2f.x = (texture(textureUnitPS1, R2f.zy).x);
// 0
backupReg0f = R3f.y;
backupReg1f = R2f.x;
R2f.x = R9f.y + R3f.z;
R3f.y = R9f.x + R3f.w;
PV0f.z = R8f.x + R6f.z;
R2f.w = R9f.z + backupReg0f;
R127f.y = backupReg1f + R6f.z;
PS0f = R127f.y;
// 1
R126f.y = R10f.x + R6f.z;
PS1f = 1.0 / PV0f.z;
// 2
PV0f.x = mul_nonIEEE(R0f.w, PS1f);
PS0f = 1.0 / R127f.y;
// 3
PV1f.x = mul_nonIEEE(R0f.w, PS0f);
R123f.z = (mul_nonIEEE(R7f.z,PV0f.x) + -(R13f.x));
R123f.z = clamp(R123f.z, 0.0, 1.0);
PV1f.z = R123f.z;
R123f.w = (mul_nonIEEE(R1f.z,PV0f.x) + -(R12f.x));
R123f.w = clamp(R123f.w, 0.0, 1.0);
PV1f.w = R123f.w;
PS1f = 1.0 / R126f.y;
// 4
PV0f.x = mul_nonIEEE(R0f.w, PS1f);
R123f.y = (mul_nonIEEE(R7f.z,PV1f.x) + -(R13f.x));
R123f.y = clamp(R123f.y, 0.0, 1.0);
PV0f.y = R123f.y;
R123f.z = (mul_nonIEEE(R1f.z,PV1f.x) + -(R12f.x));
R123f.z = clamp(R123f.z, 0.0, 1.0);
PV0f.z = R123f.z;
R126f.w = max(PV1f.w, PV1f.z);
// 5
PV1f.x = max(PV0f.z, PV0f.y);
R123f.y = (mul_nonIEEE(R7f.z,PV0f.x) + -(R13f.x));
R123f.y = clamp(R123f.y, 0.0, 1.0);
PV1f.y = R123f.y;
R123f.z = (mul_nonIEEE(R1f.z,PV0f.x) + -(R12f.x));
R123f.z = clamp(R123f.z, 0.0, 1.0);
PV1f.z = R123f.z;
// 6
PV0f.x = max(PV1f.z, PV1f.y);
PV0f.y = mul_nonIEEE(R4f.z, PV1f.x);
PV0f.z = mul_nonIEEE(R4f.y, PV1f.x);
PV0f.w = mul_nonIEEE(R4f.x, PV1f.x);
R6f.w = R126f.w + PV1f.x;
PS0f = R6f.w;
// 7
backupReg0f = R5f.y;
R5f.y = (mul_nonIEEE(R5f.z,R126f.w) + PV0f.y);
R5f.z = (mul_nonIEEE(backupReg0f,R126f.w) + PV0f.z);
R3f.w = (mul_nonIEEE(R5f.x,R126f.w) + PV0f.w);
R9f.w = mul_nonIEEE(PV0f.x, intBitsToFloat(uf_remappedPS[2].w));
PS1f = R9f.w;
R4f.xyz = (texture(textureUnitPS0, R11f.xy).xyz);
R11f.x = (texture(textureUnitPS1, R11f.xy).x);
R10f.xyz = (texture(textureUnitPS0, R0f.xy).xyz);
R5f.x = (texture(textureUnitPS1, R0f.xy).x);
// 0
PV0f.x = R11f.x + R6f.z;
R126f.y = R6f.z + R5f.x;
// 1
PS1f = 1.0 / PV0f.x;
// 2
backupReg0f = R0f.w;
PV0f.w = mul_nonIEEE(backupReg0f, PS1f);
PS0f = 1.0 / R126f.y;
// 3
R123f.x = (mul_nonIEEE(R7f.z,PV0f.w) + -(R13f.x));
R123f.x = clamp(R123f.x, 0.0, 1.0);
PV1f.x = R123f.x;
R123f.y = (mul_nonIEEE(R1f.z,PV0f.w) + -(R12f.x));
R123f.y = clamp(R123f.y, 0.0, 1.0);
PV1f.y = R123f.y;
PV1f.z = mul_nonIEEE(R0f.w, PS0f);
// 4
R123f.x = (mul_nonIEEE(R7f.z,PV1f.z) + -(R13f.x));
R123f.x = clamp(R123f.x, 0.0, 1.0);
PV0f.x = R123f.x;
R123f.y = (mul_nonIEEE(R1f.z,PV1f.z) + -(R12f.x));
R123f.y = clamp(R123f.y, 0.0, 1.0);
PV0f.y = R123f.y;
PV0f.z = max(PV1f.y, PV1f.x);
// 5
PV1f.x = max(PV0f.y, PV0f.x);
R123f.y = (mul_nonIEEE(R4f.y,PV0f.z) + R5f.z);
PV1f.y = R123f.y;
R123f.z = (mul_nonIEEE(R4f.z,PV0f.z) + R5f.y);
PV1f.z = R123f.z;
R123f.w = (mul_nonIEEE(R4f.x,PV0f.z) + R3f.w);
PV1f.w = R123f.w;
PS1f = R6f.w + PV0f.z;
// 6
R123f.x = (mul_nonIEEE(R10f.z,PV1f.x) + PV1f.z);
PV0f.x = R123f.x;
R123f.y = (mul_nonIEEE(R10f.y,PV1f.x) + PV1f.y);
PV0f.y = R123f.y;
R123f.z = (mul_nonIEEE(R10f.x,PV1f.x) + PV1f.w);
PV0f.z = R123f.z;
R126f.w = PS1f + R8f.z;
PS0f = 1.0 + PV1f.x;
// 7
R127f.x = PV0f.x + R2f.w;
R126f.y = PV0f.y + R2f.x;
R127f.z = PV0f.z + R3f.y;
PV1f.w = PS0f + R3f.x;
// 8
PV0f.z = PV1f.w + R126f.w;
// 9
PS1f = 1.0 / PV0f.z;
// 10
PV0f.x = mul_nonIEEE(R127f.z, PS1f);
PV0f.z = mul_nonIEEE(R127f.x, PS1f);
PV0f.w = mul_nonIEEE(R126f.y, PS1f);
// 11
R9f.x = mul_nonIEEE(PV0f.x, intBitsToFloat(uf_remappedPS[2].x));
R9f.y = mul_nonIEEE(PV0f.w, intBitsToFloat(uf_remappedPS[2].y));
R9f.z = mul_nonIEEE(PV0f.z, intBitsToFloat(uf_remappedPS[2].z));
// export
passPixelColor0 = vec4(R9f.x, R9f.y, R9f.z, R9f.w);
}

View File

@ -0,0 +1,526 @@
<?php
include 'Source/functions.php';
$fullWidth = $argv[1];
$fullHeight = $argv[2];
$scaleFactorX = always_decimal_format($fullWidth / 1280.0);
$scaleFactorY = always_decimal_format($fullHeight / 720.0);
?>
#version 420
#extension GL_ARB_texture_gather : enable
#extension GL_ARB_separate_shader_objects : enable
// shader 9d1d7119cc2a1bc5
//film simulation blur
const float resScale = 3.0;const float resScale = <?=$scaleFactorX?>;uniform ivec4 uf_remappedPS[3];
layout(binding = 0) uniform sampler2D textureUnitPS0;// Tex0 addr 0xf5195800 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 0 border: 0
layout(binding = 1) uniform sampler2D textureUnitPS1;// Tex1 addr 0xf4709800 res 1280x720x1 dim 1 tm: 4 format 080e compSel: 0 0 0 0 mipView: 0x0 (num 0x1) sliceView: 0x0 (num 0x1) Sampler1 ClampX/Y/Z: 2 2 0 border: 0
layout(location = 0) in vec4 passParameterSem128;
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()
{
vec4 R0f = vec4(0.0);
vec4 R1f = vec4(0.0);
vec4 R2f = vec4(0.0);
vec4 R3f = vec4(0.0);
vec4 R4f = vec4(0.0);
vec4 R5f = vec4(0.0);
vec4 R6f = vec4(0.0);
vec4 R7f = vec4(0.0);
vec4 R8f = vec4(0.0);
vec4 R9f = vec4(0.0);
vec4 R10f = vec4(0.0);
vec4 R11f = vec4(0.0);
vec4 R12f = vec4(0.0);
vec4 R13f = vec4(0.0);
vec4 R14f = vec4(0.0);
vec4 R15f = vec4(0.0);
vec4 R16f = vec4(0.0);
vec4 R123f = vec4(0.0);
vec4 R127f = vec4(0.0);
float backupReg0f, backupReg1f, backupReg2f, backupReg3f, backupReg4f;
vec4 PV0f = vec4(0.0), PV1f = vec4(0.0);
float PS0f = 0.0, PS1f = 0.0;
vec4 tempf = vec4(0.0);
float tempResultf;
int tempResulti;
ivec4 ARi = ivec4(0);
bool predResult = true;
vec3 cubeMapSTM;
int cubeMapFaceId;
R0f = passParameterSem128;
R9f.xyz = (texture(textureUnitPS0, R0f.xy).xyz);
R13f.x = (texture(textureUnitPS1, R0f.xy).x);
// 0
backupReg0f = R0f.z;
R5f.x = intBitsToFloat(0xbab60b61)/ resScale * intBitsToFloat(uf_remappedPS[0].x);
R5f.y = intBitsToFloat(0x3b19999a) / resScale * intBitsToFloat(uf_remappedPS[0].x);
PV0f.z = -(1.0) + backupReg0f;
R1f.w = intBitsToFloat(0xbb19999a) / resScale * intBitsToFloat(uf_remappedPS[0].x);
R6f.y = intBitsToFloat(0x3ab60b61) / resScale * intBitsToFloat(uf_remappedPS[0].x);
PS0f = R6f.y;
// 1
R10f.x = intBitsToFloat(0xbb888889) / resScale * intBitsToFloat(uf_remappedPS[0].x);
R13f.y = 1.0 + PV0f.z;
R5f.z = intBitsToFloat(0x3a4ccccd) / resScale * intBitsToFloat(uf_remappedPS[0].x);
R3f.w = intBitsToFloat(0xba4ccccd) / resScale * intBitsToFloat(uf_remappedPS[0].x);
R11f.y = intBitsToFloat(0x3b888889) / resScale* intBitsToFloat(uf_remappedPS[0].x);
PS1f = R11f.y;
// 2
R12f.x = intBitsToFloat(0x3b19999a) / resScale * intBitsToFloat(uf_remappedPS[0].x);
R12f.y = intBitsToFloat(0x3b888889) / resScale * intBitsToFloat(uf_remappedPS[0].x);
R6f.z = intBitsToFloat(0xbb888889) / resScale * intBitsToFloat(uf_remappedPS[0].x);
R4f.w = intBitsToFloat(0xbb19999a) / resScale * intBitsToFloat(uf_remappedPS[0].x);
PS0f = -(intBitsToFloat(uf_remappedPS[1].x)) + intBitsToFloat(uf_remappedPS[1].y);
// 3
R1f.x = R0f.x + intBitsToFloat(0xba4ccccd) / resScale;
R1f.y = R0f.y + intBitsToFloat(0xbab60b61) / resScale;
R2f.z = R0f.x + intBitsToFloat(0xba4ccccd) / resScale;
PV1f.w = -(intBitsToFloat(uf_remappedPS[1].z)) + intBitsToFloat(uf_remappedPS[1].w);
R15f.y = 1.0 / PS0f;
PS1f = R15f.y;
// 4
R6f.x = R0f.x + intBitsToFloat(0x3a4ccccd) / resScale;
R2f.y = R0f.y + intBitsToFloat(0x3ab60b61) / resScale;
R8f.z = mul_nonIEEE(PS1f, intBitsToFloat(uf_remappedPS[1].x));
R6f.w = R0f.y + intBitsToFloat(0xbab60b61) / resScale;
R16f.y = 1.0 / PV1f.w;
PS0f = R16f.y;
R4f.xyz = (texture(textureUnitPS0, R1f.xy).xyz);
R1f.x = (texture(textureUnitPS1, R1f.xy).x);
R3f.xyz = (texture(textureUnitPS0, R2f.zy).xyz);
R2f.x = (texture(textureUnitPS1, R2f.zy).x);
// 0
backupReg0f = R0f.y;
R127f.x = R2f.x + R13f.y;
PV0f.y = R1f.x + R13f.y;
R2f.z = mul_nonIEEE(R16f.y, intBitsToFloat(uf_remappedPS[1].z));
R2f.w = R0f.x + intBitsToFloat(0x3a4ccccd) / resScale;
R2f.y = backupReg0f + intBitsToFloat(0x3ab60b61) / resScale;
PS0f = R2f.y;
// 1
R8f.x = R0f.x + R1f.w;
R8f.y = R0f.y + R5f.x;
PS1f = 1.0 / PV0f.y;
// 2
PV0f.x = mul_nonIEEE(R0f.w, PS1f);
PS0f = 1.0 / R127f.x;
// 3
R123f.x = (mul_nonIEEE(PV0f.x,R15f.y) + -(R8f.z));
R123f.x = clamp(R123f.x, 0.0, 1.0);
PV1f.x = R123f.x;
PV1f.y = mul_nonIEEE(R0f.w, PS0f);
R123f.w = (mul_nonIEEE(PV0f.x,R16f.y) + -(R2f.z));
R123f.w = clamp(R123f.w, 0.0, 1.0);
PV1f.w = R123f.w;
// 4
R123f.x = (mul_nonIEEE(R15f.y,PV1f.y) + -(R8f.z));
R123f.x = clamp(R123f.x, 0.0, 1.0);
PV0f.x = R123f.x;
R123f.z = (mul_nonIEEE(R16f.y,PV1f.y) + -(R2f.z));
R123f.z = clamp(R123f.z, 0.0, 1.0);
PV0f.z = R123f.z;
R127f.w = max(PV1f.x, PV1f.w);
R1f.x = R0f.x + R1f.w;
PS0f = R1f.x;
// 5
backupReg0f = R0f.y;
PV1f.y = max(PV0f.x, PV0f.z);
R1f.z = backupReg0f + R6f.y;
// 6
PV0f.x = mul_nonIEEE(R3f.x, PV1f.y);
R1f.y = R127f.w + PV1f.y;
PV0f.z = mul_nonIEEE(R3f.z, PV1f.y);
PV0f.w = mul_nonIEEE(R3f.y, PV1f.y);
// 7
backupReg0f = R5f.x;
R5f.x = (mul_nonIEEE(R4f.y,R127f.w) + PV0f.w);
R4f.y = (mul_nonIEEE(R4f.x,R127f.w) + PV0f.x);
R10f.z = R0f.x + R5f.y;
R1f.w = (mul_nonIEEE(R4f.z,R127f.w) + PV0f.z);
R10f.y = R0f.y + backupReg0f;
PS1f = R10f.y;
R3f.xyz = (texture(textureUnitPS0, R6f.xw).xyz);
R6f.x = (texture(textureUnitPS1, R6f.xw).x);
R7f.xyz = (texture(textureUnitPS0, R2f.wy).xyz);
R4f.x = (texture(textureUnitPS1, R2f.wy).x);
// 0
R127f.y = R4f.x + R13f.y;
PV0f.w = R6f.x + R13f.y;
// 1
PS1f = 1.0 / PV0f.w;
// 2
PV0f.z = mul_nonIEEE(R0f.w, PS1f);
PS0f = 1.0 / R127f.y;
// 3
R123f.x = (mul_nonIEEE(R15f.y,PV0f.z) + -(R8f.z));
R123f.x = clamp(R123f.x, 0.0, 1.0);
PV1f.x = R123f.x;
PV1f.y = mul_nonIEEE(R0f.w, PS0f);
R123f.w = (mul_nonIEEE(R16f.y,PV0f.z) + -(R2f.z));
R123f.w = clamp(R123f.w, 0.0, 1.0);
PV1f.w = R123f.w;
// 4
R123f.x = (mul_nonIEEE(R16f.y,PV1f.y) + -(R2f.z));
R123f.x = clamp(R123f.x, 0.0, 1.0);
PV0f.x = R123f.x;
PV0f.y = max(PV1f.x, PV1f.w);
R123f.z = (mul_nonIEEE(R15f.y,PV1f.y) + -(R8f.z));
R123f.z = clamp(R123f.z, 0.0, 1.0);
PV0f.z = R123f.z;
R5f.w = R0f.x + R5f.y;
// 5
R123f.x = (mul_nonIEEE(R3f.z,PV0f.y) + R1f.w);
PV1f.x = R123f.x;
PV1f.y = max(PV0f.z, PV0f.x);
R123f.z = (mul_nonIEEE(R3f.x,PV0f.y) + R4f.y);
PV1f.z = R123f.z;
R123f.w = (mul_nonIEEE(R3f.y,PV0f.y) + R5f.x);
PV1f.w = R123f.w;
PS1f = R1f.y + PV0f.y;
// 6
backupReg0f = R6f.y;
R2f.x = PS1f + PV1f.y;
R6f.y = (mul_nonIEEE(R7f.z,PV1f.y) + PV1f.x);
R7f.z = (mul_nonIEEE(R7f.y,PV1f.y) + PV1f.w);
R1f.w = (mul_nonIEEE(R7f.x,PV1f.y) + PV1f.z);
R5f.y = R0f.y + backupReg0f;
PS0f = R5f.y;
R4f.xyz = (texture(textureUnitPS0, R8f.xy).xyz);
R8f.x = (texture(textureUnitPS1, R8f.xy).x);
R3f.xyz = (texture(textureUnitPS0, R1f.xz).xyz);
R1f.x = (texture(textureUnitPS1, R1f.xz).x);
// 0
R7f.x = R9f.y + R7f.z;
R7f.y = R9f.x + R1f.w;
PV0f.z = R8f.x + R13f.y;
R2f.w = R9f.z + R6f.y;
R127f.w = R13f.y + R1f.x;
PS0f = R127f.w;
// 1
R6f.x = R0f.x + R3f.w;
R6f.y = R0f.y + R10f.x;
PS1f = 1.0 / PV0f.z;
// 2
backupReg0f = R0f.w;
PV0f.w = mul_nonIEEE(backupReg0f, PS1f);
PS0f = 1.0 / R127f.w;
// 3
backupReg0f = R0f.x;
PV1f.x = mul_nonIEEE(R0f.w, PS0f);
R123f.y = (mul_nonIEEE(R15f.y,PV0f.w) + -(R8f.z));
R123f.y = clamp(R123f.y, 0.0, 1.0);
PV1f.y = R123f.y;
R123f.z = (mul_nonIEEE(R16f.y,PV0f.w) + -(R2f.z));
R123f.z = clamp(R123f.z, 0.0, 1.0);
PV1f.z = R123f.z;
R9f.w = backupReg0f + R3f.w;
// 4
R123f.x = (mul_nonIEEE(R15f.y,PV1f.x) + -(R8f.z));
R123f.x = clamp(R123f.x, 0.0, 1.0);
PV0f.x = R123f.x;
R123f.y = (mul_nonIEEE(R16f.y,PV1f.x) + -(R2f.z));
R123f.y = clamp(R123f.y, 0.0, 1.0);
PV0f.y = R123f.y;
R127f.w = max(PV1f.y, PV1f.z);
// 5
R9f.y = R0f.y + R11f.y;
PV1f.z = max(PV0f.x, PV0f.y);
// 6
backupReg0f = R0f.x;
PV0f.x = mul_nonIEEE(R3f.y, PV1f.z);
PV0f.y = mul_nonIEEE(R3f.x, PV1f.z);
R7f.z = R127f.w + PV1f.z;
PV0f.w = mul_nonIEEE(R3f.z, PV1f.z);
R8f.x = backupReg0f + R5f.z;
PS0f = R8f.x;
// 7
backupReg0f = R4f.y;
backupReg1f = R4f.z;
R4f.y = (mul_nonIEEE(backupReg0f,R127f.w) + PV0f.x);
R4f.z = (mul_nonIEEE(R4f.x,R127f.w) + PV0f.y);
R3f.w = (mul_nonIEEE(backupReg1f,R127f.w) + PV0f.w);
R8f.y = R0f.y + R10f.x;
PS1f = R8f.y;
R3f.xyz = (texture(textureUnitPS0, R10f.zy).xyz);
R4f.x = (texture(textureUnitPS1, R10f.zy).x);
R1f.xyz = (texture(textureUnitPS0, R5f.wy).xyz);
R10f.x = (texture(textureUnitPS1, R5f.wy).x);
// 0
PV0f.x = R4f.x + R13f.y;
R127f.z = R10f.x + R13f.y;
// 1
PS1f = 1.0 / PV0f.x;
// 2
PV0f.y = mul_nonIEEE(R0f.w, PS1f);
PS0f = 1.0 / R127f.z;
// 3
R123f.x = (mul_nonIEEE(R16f.y,PV0f.y) + -(R2f.z));
R123f.x = clamp(R123f.x, 0.0, 1.0);
PV1f.x = R123f.x;
PV1f.y = mul_nonIEEE(R0f.w, PS0f);
R123f.z = (mul_nonIEEE(R15f.y,PV0f.y) + -(R8f.z));
R123f.z = clamp(R123f.z, 0.0, 1.0);
PV1f.z = R123f.z;
R5f.w = R0f.x + R5f.z;
// 4
R123f.x = (mul_nonIEEE(R15f.y,PV1f.y) + -(R8f.z));
R123f.x = clamp(R123f.x, 0.0, 1.0);
PV0f.x = R123f.x;
R123f.z = (mul_nonIEEE(R16f.y,PV1f.y) + -(R2f.z));
R123f.z = clamp(R123f.z, 0.0, 1.0);
PV0f.z = R123f.z;
PV0f.w = max(PV1f.z, PV1f.x);
// 5
R5f.x = max(PV0f.x, PV0f.z);
PV1f.x = R5f.x;
R123f.y = (mul_nonIEEE(R3f.x,PV0f.w) + R4f.z);
PV1f.y = R123f.y;
R123f.z = (mul_nonIEEE(R3f.y,PV0f.w) + R4f.y);
PV1f.z = R123f.z;
R123f.w = (mul_nonIEEE(R3f.z,PV0f.w) + R3f.w);
PV1f.w = R123f.w;
R1f.w = R7f.z + PV0f.w;
PS1f = R1f.w;
// 6
backupReg0f = R1f.z;
R3f.x = (mul_nonIEEE(R1f.x,PV1f.x) + PV1f.y);
R5f.y = R0f.y + R11f.y;
R1f.z = (mul_nonIEEE(backupReg0f,PV1f.x) + PV1f.w);
R3f.w = (mul_nonIEEE(R1f.y,PV1f.x) + PV1f.z);
R10f.x = R0f.x + R4f.w;
PS0f = R10f.x;
R11f.xyz = (texture(textureUnitPS0, R6f.xy).xyz);
R6f.x = (texture(textureUnitPS1, R6f.xy).x);
R4f.xyz = (texture(textureUnitPS0, R9f.wy).xyz);
R1f.x = (texture(textureUnitPS1, R9f.wy).x);
// 0
R9f.x = R0f.x + R4f.w;
R10f.y = R0f.y + R6f.z;
R127f.z = R1f.x + R13f.y;
PV0f.w = R13f.y + R6f.x;
R9f.y = R0f.y + R12f.y;
PS0f = R9f.y;
// 1
PS1f = 1.0 / PV0f.w;
// 2
PV0f.z = mul_nonIEEE(R0f.w, PS1f);
PS0f = 1.0 / R127f.z;
// 3
R123f.x = (mul_nonIEEE(R15f.y,PV0f.z) + -(R8f.z));
R123f.x = clamp(R123f.x, 0.0, 1.0);
PV1f.x = R123f.x;
PV1f.y = mul_nonIEEE(R0f.w, PS0f);
R123f.w = (mul_nonIEEE(R16f.y,PV0f.z) + -(R2f.z));
R123f.w = clamp(R123f.w, 0.0, 1.0);
PV1f.w = R123f.w;
// 4
R3f.y = max(PV1f.x, PV1f.w);
PV0f.y = R3f.y;
R123f.z = (mul_nonIEEE(R16f.y,PV1f.y) + -(R2f.z));
R123f.z = clamp(R123f.z, 0.0, 1.0);
PV0f.z = R123f.z;
R123f.w = (mul_nonIEEE(R15f.y,PV1f.y) + -(R8f.z));
R123f.w = clamp(R123f.w, 0.0, 1.0);
PV0f.w = R123f.w;
// 5
backupReg0f = R11f.y;
R123f.x = (mul_nonIEEE(R11f.z,PV0f.y) + R1f.z);
PV1f.x = R123f.x;
R11f.y = max(PV0f.w, PV0f.z);
PV1f.y = R11f.y;
R123f.z = (mul_nonIEEE(R11f.x,PV0f.y) + R3f.x);
PV1f.z = R123f.z;
R123f.w = (mul_nonIEEE(backupReg0f,PV0f.y) + R3f.w);
PV1f.w = R123f.w;
// 6
backupReg0f = R4f.z;
R3f.x = (mul_nonIEEE(R4f.x,PV1f.y) + PV1f.z);
R14f.y = R0f.y + R6f.z;
R4f.z = (mul_nonIEEE(backupReg0f,PV1f.y) + PV1f.x);
R3f.w = (mul_nonIEEE(R4f.y,PV1f.y) + PV1f.w);
R14f.x = R0f.x + R12f.x;
PS0f = R14f.x;
R6f.xyz = (texture(textureUnitPS0, R8f.xy).xyz);
R8f.x = (texture(textureUnitPS1, R8f.xy).x);
R1f.xyz = (texture(textureUnitPS0, R5f.wy).xyz);
R4f.x = (texture(textureUnitPS1, R5f.wy).x);
// 0
R127f.y = R13f.y + R4f.x;
PV0f.w = R8f.x + R13f.y;
// 1
PS1f = 1.0 / PV0f.w;
// 2
PV0f.z = mul_nonIEEE(R0f.w, PS1f);
PS0f = 1.0 / R127f.y;
// 3
R123f.x = (mul_nonIEEE(R15f.y,PV0f.z) + -(R8f.z));
R123f.x = clamp(R123f.x, 0.0, 1.0);
PV1f.x = R123f.x;
PV1f.y = mul_nonIEEE(R0f.w, PS0f);
R123f.w = (mul_nonIEEE(R16f.y,PV0f.z) + -(R2f.z));
R123f.w = clamp(R123f.w, 0.0, 1.0);
PV1f.w = R123f.w;
// 4
R123f.x = (mul_nonIEEE(R16f.y,PV1f.y) + -(R2f.z));
R123f.x = clamp(R123f.x, 0.0, 1.0);
PV0f.x = R123f.x;
PV0f.y = max(PV1f.x, PV1f.w);
R123f.z = (mul_nonIEEE(R15f.y,PV1f.y) + -(R8f.z));
R123f.z = clamp(R123f.z, 0.0, 1.0);
PV0f.z = R123f.z;
R5f.w = R0f.x + R12f.x;
// 5
backupReg0f = R6f.y;
R123f.x = (mul_nonIEEE(R6f.z,PV0f.y) + R4f.z);
PV1f.x = R123f.x;
R6f.y = max(PV0f.z, PV0f.x);
PV1f.y = R6f.y;
R123f.z = (mul_nonIEEE(R6f.x,PV0f.y) + R3f.x);
PV1f.z = R123f.z;
R123f.w = (mul_nonIEEE(backupReg0f,PV0f.y) + R3f.w);
PV1f.w = R123f.w;
R3f.w = R1f.w + PV0f.y;
PS1f = R3f.w;
// 6
backupReg0f = R1f.x;
R1f.x = (mul_nonIEEE(R1f.z,PV1f.y) + PV1f.x);
R5f.y = R0f.y + R12f.y;
R1f.z = (mul_nonIEEE(R1f.y,PV1f.y) + PV1f.w);
R1f.w = (mul_nonIEEE(backupReg0f,PV1f.y) + PV1f.z);
R4f.xyz = (texture(textureUnitPS0, R10f.xy).xyz);
R10f.x = (texture(textureUnitPS1, R10f.xy).x);
R12f.xyz = (texture(textureUnitPS0, R9f.xy).xyz);
R9f.x = (texture(textureUnitPS1, R9f.xy).x);
// 0
backupReg0f = R1f.x;
backupReg1f = R7f.y;
R1f.x = backupReg0f + R2f.w;
R7f.y = R1f.z + R7f.x;
R1f.z = R1f.w + backupReg1f;
PV0f.w = R10f.x + R13f.y;
// 1
PV1f.x = R9f.x + R13f.y;
PV1f.y = R11f.y + R5f.x;
PS1f = 1.0 / PV0f.w;
// 2
backupReg0f = R0f.w;
R5f.x = R6f.y + PV1f.y;
PV0f.w = mul_nonIEEE(backupReg0f, PS1f);
PS0f = 1.0 / PV1f.x;
// 3
PV1f.x = mul_nonIEEE(R0f.w, PS0f);
R123f.y = (mul_nonIEEE(R15f.y,PV0f.w) + -(R8f.z));
R123f.y = clamp(R123f.y, 0.0, 1.0);
PV1f.y = R123f.y;
R123f.z = (mul_nonIEEE(R16f.y,PV0f.w) + -(R2f.z));
R123f.z = clamp(R123f.z, 0.0, 1.0);
PV1f.z = R123f.z;
// 4
R123f.x = (mul_nonIEEE(R16f.y,PV1f.x) + -(R2f.z));
R123f.x = clamp(R123f.x, 0.0, 1.0);
PV0f.x = R123f.x;
R123f.y = (mul_nonIEEE(R15f.y,PV1f.x) + -(R8f.z));
R123f.y = clamp(R123f.y, 0.0, 1.0);
PV0f.y = R123f.y;
R11f.z = R2f.x + R3f.y;
R127f.w = max(PV1f.y, PV1f.z);
// 5
PV1f.y = R13f.x + R13f.y;
PV1f.w = max(PV0f.y, PV0f.x);
// 6
PV0f.x = mul_nonIEEE(R12f.z, PV1f.w);
PV0f.y = mul_nonIEEE(R12f.y, PV1f.w);
PV0f.z = mul_nonIEEE(R12f.x, PV1f.w);
R2f.w = R127f.w + PV1f.w;
PS0f = 1.0 / PV1f.y;
// 7
backupReg0f = R4f.y;
R12f.x = mul_nonIEEE(R0f.w, PS0f);
R4f.y = (mul_nonIEEE(R4f.z,R127f.w) + PV0f.x);
R4f.z = (mul_nonIEEE(backupReg0f,R127f.w) + PV0f.y);
R1f.w = (mul_nonIEEE(R4f.x,R127f.w) + PV0f.z);
R3f.xyz = (texture(textureUnitPS0, R14f.xy).xyz);
R14f.x = (texture(textureUnitPS1, R14f.xy).x);
R6f.xyz = (texture(textureUnitPS0, R5f.wy).xyz);
R4f.x = (texture(textureUnitPS1, R5f.wy).x);
// 0
R123f.x = (mul_nonIEEE(R15f.y,R12f.x) + -(R8f.z));
R123f.x = clamp(R123f.x, 0.0, 1.0);
PV0f.x = R123f.x;
R123f.y = (mul_nonIEEE(R16f.y,R12f.x) + -(R2f.z));
R123f.y = clamp(R123f.y, 0.0, 1.0);
PV0f.y = R123f.y;
PV0f.z = R14f.x + R13f.y;
R127f.w = R4f.x + R13f.y;
// 1
R127f.x = max(PV0f.x, PV0f.y);
PS1f = 1.0 / PV0f.z;
// 2
backupReg0f = R0f.w;
PV0f.w = mul_nonIEEE(backupReg0f, PS1f);
PS0f = 1.0 / R127f.w;
// 3
R123f.x = (mul_nonIEEE(R15f.y,PV0f.w) + -(R8f.z));
R123f.x = clamp(R123f.x, 0.0, 1.0);
PV1f.x = R123f.x;
PV1f.y = mul_nonIEEE(R0f.w, PS0f);
R123f.z = (mul_nonIEEE(R16f.y,PV0f.w) + -(R2f.z));
R123f.z = clamp(R123f.z, 0.0, 1.0);
PV1f.z = R123f.z;
R0f.w = mul_nonIEEE(R127f.x, intBitsToFloat(uf_remappedPS[2].w));
// 4
PV0f.x = max(PV1f.x, PV1f.z);
R123f.y = (mul_nonIEEE(R15f.y,PV1f.y) + -(R8f.z));
R123f.y = clamp(R123f.y, 0.0, 1.0);
PV0f.y = R123f.y;
R123f.w = (mul_nonIEEE(R16f.y,PV1f.y) + -(R2f.z));
R123f.w = clamp(R123f.w, 0.0, 1.0);
PV0f.w = R123f.w;
// 5
PV1f.x = max(PV0f.y, PV0f.w);
R123f.y = (mul_nonIEEE(R3f.y,PV0f.x) + R4f.z);
PV1f.y = R123f.y;
R123f.z = (mul_nonIEEE(R3f.z,PV0f.x) + R4f.y);
PV1f.z = R123f.z;
R123f.w = (mul_nonIEEE(R3f.x,PV0f.x) + R1f.w);
PV1f.w = R123f.w;
PS1f = R2f.w + PV0f.x;
// 6
R123f.x = (mul_nonIEEE(R6f.y,PV1f.x) + PV1f.y);
PV0f.x = R123f.x;
R123f.y = (mul_nonIEEE(R6f.x,PV1f.x) + PV1f.w);
PV0f.y = R123f.y;
PV0f.z = PS1f + PV1f.x;
R123f.w = (mul_nonIEEE(R6f.z,PV1f.x) + PV1f.z);
PV0f.w = R123f.w;
// 7
R127f.xyz = vec3(PV0f.y,PV0f.w,PV0f.x) + vec3(R1f.z,R1f.x,R7f.y);
PV1f.w = PV0f.z + R5f.x;
// 8
PV0f.z = PV1f.w + 1.0;
// 9
PV1f.w = R11f.z + PV0f.z;
// 10
PV0f.z = R3f.w + PV1f.w;
// 11
PS1f = 1.0 / PV0f.z;
// 12
PV0f.x = mul_nonIEEE(R127f.x, PS1f);
PV0f.z = mul_nonIEEE(R127f.y, PS1f);
PV0f.w = mul_nonIEEE(R127f.z, PS1f);
// 13
R0f.x = mul_nonIEEE(PV0f.x, intBitsToFloat(uf_remappedPS[2].x));
R0f.y = mul_nonIEEE(PV0f.w, intBitsToFloat(uf_remappedPS[2].y));
R0f.z = mul_nonIEEE(PV0f.z, intBitsToFloat(uf_remappedPS[2].z));
// export
passPixelColor0 = vec4(R0f.x, R0f.y, R0f.z, R0f.w);
}

View File

@ -0,0 +1,131 @@
<?php
include 'Source/functions.php';
$fullWidth = $argv[1];
$fullHeight = $argv[2];
$scaleFactorX = always_decimal_format($fullWidth / 1280.0);
$scaleFactorY = always_decimal_format($fullHeight / 720.0);
?>
#version 420
#extension GL_ARB_texture_gather : enable
#extension GL_ARB_separate_shader_objects : enable
// shader f015876e4c8e82f9
//menu 2d blur
const float resScale = <?=$scaleFactorX?>;
uniform ivec4 uf_remappedPS[1];
uniform float uf_alphaTestRef;
layout(binding = 1) uniform sampler2D textureUnitPS1;// Tex1 addr 0xf4000800 res 1280x720x1 dim 1 tm: 4 format 001a compSel: 0 1 2 3 mipView: 0x0 (num 0x1) sliceView: 0x0 (num 0x1) Sampler1 ClampX/Y/Z: 2 2 0 border: 0
layout(location = 0) in vec4 passParameterSem129;
layout(location = 1) in vec4 passParameterSem128;
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()
{
vec4 R0f = vec4(0.0);
vec4 R1f = vec4(0.0);
vec4 R2f = vec4(0.0);
vec4 R3f = vec4(0.0);
vec4 R4f = vec4(0.0);
vec4 R5f = vec4(0.0);
vec4 R6f = vec4(0.0);
vec4 R7f = vec4(0.0);
vec4 R8f = vec4(0.0);
vec4 R126f = vec4(0.0);
vec4 R127f = vec4(0.0);
float backupReg0f, backupReg1f, backupReg2f, backupReg3f, backupReg4f;
vec4 PV0f = vec4(0.0), PV1f = vec4(0.0);
float PS0f = 0.0, PS1f = 0.0;
vec4 tempf = vec4(0.0);
float tempResultf;
int tempResulti;
ivec4 ARi = ivec4(0);
bool predResult = true;
vec3 cubeMapSTM;
int cubeMapFaceId;
R0f = passParameterSem129;
R1f = passParameterSem128;
// 0
R7f.x = intBitsToFloat(uf_remappedPS[0].z) * intBitsToFloat(0x3e124925);
PV0f.z = mul_nonIEEE(R0f.w, intBitsToFloat(uf_remappedPS[0].w));
PV0f.z *= 2.0;
R8f.w = 1.0;
PS0f = 1.0 / R1f.w;
PS0f /= 2.0;
// 1
R127f.x = PV0f.z * intBitsToFloat(0x3ab60b61)/ resScale;
R127f.y = PV0f.z * intBitsToFloat(0x3b360b61)/ resScale;
PV1f.z = mul_nonIEEE(R1f.x, PS0f);
PV1f.w = mul_nonIEEE(-(R1f.y), PS0f);
R127f.w = PV0f.z * intBitsToFloat(0x3b888889)/ resScale;
PS1f = R127f.w;
// 2
R6f.x = PV1f.z + 0.5;
PV0f.x = R6f.x;
R6f.y = PV1f.w + 0.5;
PV0f.y = R6f.y;
// 3
R1f.x = PV0f.x;
R1f.y = PV0f.y + -(R127f.x);
R0f.z = PV0f.x;
R0f.y = PV0f.y + R127f.x;
PS1f = R0f.y;
// 4
R2f.x = R6f.x;
R2f.y = R6f.y + -(R127f.y);
R3f.z = R6f.x;
R3f.y = R6f.y + R127f.y;
PS0f = R3f.y;
// 5
R4f.x = R6f.x;
R4f.y = R6f.y + -(R127f.w);
R5f.z = R6f.x;
R5f.y = R6f.y + R127f.w;
PS1f = R5f.y;
R1f.xyz = (texture(textureUnitPS1, R1f.xy).xyz);
R0f.xyz = (texture(textureUnitPS1, R0f.zy).xyz);
R2f.xyz = (texture(textureUnitPS1, R2f.xy).xyz);
R3f.xyz = (texture(textureUnitPS1, R3f.zy).xyz);
R4f.xyz = (texture(textureUnitPS1, R4f.xy).xyz);
R5f.xyz = (texture(textureUnitPS1, R5f.zy).xyz);
R6f.xyz = (texture(textureUnitPS1, R6f.xy).xyz);
// 0
backupReg0f = R0f.x;
PV0f.x = R1f.x + backupReg0f;
R127f.z = R1f.z + R0f.z;
PV0f.w = R1f.y + R0f.y;
// 1
R127f.x = R2f.x + R3f.x;
R127f.y = R6f.x + PV0f.x;
R126f.z = R2f.z + R3f.z;
R127f.w = R2f.y + R3f.y;
R126f.w = R6f.y + PV0f.w;
PS1f = R126f.w;
// 2
PV0f.x = R4f.y + R5f.y;
PV0f.y = R4f.x + R5f.x;
PV0f.w = R4f.z + R5f.z;
// 3
PV1f.x = PV0f.y + R127f.x;
PV1f.y = PV0f.x + R127f.w;
PV1f.z = R6f.z + R127f.z;
PV1f.w = PV0f.w + R126f.z;
// 4
PV0f.y = PV1f.z + PV1f.w;
PV0f.z = R126f.w + PV1f.y;
PV0f.w = R127f.y + PV1f.x;
// 5
R8f.x = mul_nonIEEE(PV0f.w, R7f.x);
R8f.y = mul_nonIEEE(PV0f.z, R7f.x);
R8f.z = mul_nonIEEE(PV0f.y, R7f.x);
// export
if( ((vec4(R8f.x, R8f.y, R8f.z, R8f.w)).a >= uf_alphaTestRef) == false) discard;
passPixelColor0 = vec4(R8f.x, R8f.y, R8f.z, R8f.w);
}

View File

@ -11,42 +11,52 @@ titleIds = 000500001014DB00,0005000010157E00,0005000010157F00
name = "Bayonetta - <?=$title?>"
version = 2
[TextureRedefine] # tv
width = 1280
[TextureRedefine] # game rendering resolution. #Change this value
width = 1280
height = 720
tileModesExcluded = 0x001
overwriteWidth = <?=round($scaleFactorX*1280)?>
overwriteHeight = <?=round($scaleFactorY*720)?>
[TextureRedefine]#half-res
width = 640
#[TextureRedefine] # No gamepad view found in B, uncommented
#width = 854
#height = 480
#overwriteWidth = 2560
#overwriteHeight = 1440
[TextureRedefine] # FMV, bloom/blur initial step
width = 640
height = 360
tileModesExcluded = 0x001
tileModesExcluded = 0x001
overwriteWidth = <?=round($scaleFactorX*640)?>
overwriteHeight = <?=round($scaleFactorY*360)?>
[TextureRedefine]#q-res1
width = 320
[TextureRedefine] # Bloom/blur pyaramid
width = 320
height = 176
formatsExcluded = 0x01a
overwriteWidth = <?=round($scaleFactorX*320)?>
overwriteHeight = <?=round($scaleFactorY*176)?>
[TextureRedefine]#bloom workaround
width = 320
height = 176
formats = 0x01a
overwriteWidth = 0
overwriteHeight = 0
[TextureRedefine]#q-res2
width = 320
height = 180
overwriteWidth = <?=round($scaleFactorX*320)?>
overwriteHeight = <?=round($scaleFactorY*180)?>
[TextureRedefine] # gamepad
width = 854
height = 480
#overwriteWidth = <?=round($scaleFactorX*1280)?>
#overwriteHeight = <?=round($scaleFactorY*720)?>
[TextureRedefine] #Bloom/blur pyaramid
width = 160
height = 80
overwriteWidth = <?=round($scaleFactorX*160)?>
overwriteHeight = <?=round($scaleFactorY*80)?>
[TextureRedefine] # Bloom/blur pyaramid
width = 80
height = 48
overwriteWidth = <?=round($scaleFactorX*80)?>
overwriteHeight = <?=round($scaleFactorY*48)?>
[TextureRedefine] # Bloom/blur pyaramid
width = 48
height = 32
overwriteWidth = <?=round($scaleFactorX*48)?>
overwriteHeight = <?=round($scaleFactorY*32)?>
[TextureRedefine] # Bloom/blur pyaramid
width = 32
height = 16
overwriteWidth = <?=round($scaleFactorX*32)?>
overwriteHeight = <?=round($scaleFactorY*16)?>

View File

@ -0,0 +1,617 @@
<?php
include 'Source/functions.php';
$fullWidth = $argv[1];
$fullHeight = $argv[2];
$scaleFactorX = always_decimal_format($fullWidth / 1280.0);
$scaleFactorY = always_decimal_format($fullHeight / 720.0);
?>
#version 420
#extension GL_ARB_texture_gather : enable
#extension GL_ARB_separate_shader_objects : enable
// shader 00fed4f92a49e851
//cut scen blur pass 2 a
const float resScale = <?=$scaleFactorX?>;
//const float resScale = 3.0;
uniform ivec4 uf_remappedPS[2];
layout(binding = 0) uniform sampler2D textureUnitPS0;// Tex0 addr 0x462bd800 res 320x180x1 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()
{
vec4 R0f = vec4(0.0);
vec4 R1f = vec4(0.0);
vec4 R2f = vec4(0.0);
vec4 R3f = vec4(0.0);
vec4 R4f = vec4(0.0);
vec4 R5f = vec4(0.0);
vec4 R6f = vec4(0.0);
vec4 R7f = vec4(0.0);
vec4 R8f = vec4(0.0);
vec4 R9f = vec4(0.0);
vec4 R10f = vec4(0.0);
vec4 R11f = vec4(0.0);
vec4 R122f = vec4(0.0);
vec4 R123f = vec4(0.0);
vec4 R126f = vec4(0.0);
vec4 R127f = vec4(0.0);
float backupReg0f, backupReg1f, backupReg2f, backupReg3f, backupReg4f;
vec4 PV0f = vec4(0.0), PV1f = vec4(0.0);
float PS0f = 0.0, PS1f = 0.0;
vec4 tempf = vec4(0.0);
float tempResultf;
int tempResulti;
ivec4 ARi = ivec4(0);
bool predResult = true;
vec3 cubeMapSTM;
int cubeMapFaceId;
R0f = passParameterSem133;
R5f.xyzw = (texture(textureUnitPS0, R0f.xy).xyzw);
// 0
backupReg0f = R0f.x;
backupReg1f = R0f.y;
PV0f.x = backupReg0f + -(0.0);
PV0f.x = clamp(PV0f.x, 0.0, 1.0);
PV0f.y = intBitsToFloat(uf_remappedPS[0].y) * intBitsToFloat(0xbeaf1d44)/ resScale;
PV0f.z = intBitsToFloat(uf_remappedPS[0].x) * intBitsToFloat(0x3f708fb2)/ resScale;
R10f.w = mul_nonIEEE(R5f.w, intBitsToFloat(uf_remappedPS[1].x));
PV0f.w = R10f.w;
PS0f = backupReg1f + 0.0;
PS0f = clamp(PS0f, 0.0, 1.0);
// 1
PV1f.x = max(PV0f.x, 0.0);
R10f.y = mul_nonIEEE(PV0f.w, PV0f.z);
PV1f.y = R10f.y;
R10f.z = mul_nonIEEE(PV0f.w, PV0f.y);
PV1f.z = R10f.z;
PV1f.w = max(PS0f, 0.0);
PS1f = max(R5f.w, intBitsToFloat(0x3a83126f));
// 2
R1f.x = min(PV1f.x, 1.0);
R1f.y = min(PV1f.w, 1.0);
PV0f.z = R0f.y + PV1f.z;
PV0f.z = clamp(PV0f.z, 0.0, 1.0);
PV0f.w = R0f.x + -(PV1f.y);
PV0f.w = clamp(PV0f.w, 0.0, 1.0);
R11f.y = 1.0 / PS1f;
PS0f = R11f.y;
// 3
R123f.x = (-(R10f.y) * 2.0 + R0f.x);
R123f.x = clamp(R123f.x, 0.0, 1.0);
PV1f.x = R123f.x;
R123f.y = (R10f.z * 2.0 + R0f.y);
R123f.y = clamp(R123f.y, 0.0, 1.0);
PV1f.y = R123f.y;
PV1f.z = max(PV0f.z, 0.0);
PV1f.w = max(PV0f.w, 0.0);
R127f.w = (-(R10f.y) * intBitsToFloat(0x40400000) + R0f.x);
R127f.w = clamp(R127f.w, 0.0, 1.0);
PS1f = R127f.w;
// 4
R2f.x = min(PV1f.w, 1.0);
R2f.y = min(PV1f.z, 1.0);
PV0f.z = max(PV1f.x, 0.0);
PV0f.w = max(PV1f.y, 0.0);
R122f.x = (R10f.z * intBitsToFloat(0x40400000) + R0f.y);
R122f.x = clamp(R122f.x, 0.0, 1.0);
PS0f = R122f.x;
// 5
R3f.x = min(PV0f.z, 1.0);
R3f.y = min(PV0f.w, 1.0);
PV1f.z = max(PS0f, 0.0);
PV1f.w = max(R127f.w, 0.0);
R122f.x = (-(R10f.y) * 4.0 + R0f.x);
R122f.x = clamp(R122f.x, 0.0, 1.0);
PS1f = R122f.x;
// 6
R4f.x = min(PV1f.w, 1.0);
R4f.y = min(PV1f.z, 1.0);
R0f.z = max(PS1f, 0.0);
R0f.w = (R10f.z * 4.0 + R0f.y);
R0f.w = clamp(R0f.w, 0.0, 1.0);
R6f.w = (-(R10f.y) * intBitsToFloat(0x40a00000) + R0f.x);
R6f.w = clamp(R6f.w, 0.0, 1.0);
PS0f = R6f.w;
R1f.xyzw = (texture(textureUnitPS0, R1f.xy).xyzw);
R2f.xyzw = (texture(textureUnitPS0, R2f.xy).xyzw);
R3f.xyzw = (texture(textureUnitPS0, R3f.xy).xyzw);
R4f.xyzw = (texture(textureUnitPS0, R4f.xy).xyzw);
// 0
PV0f.x = R1f.w * R11f.y;
PV0f.x = clamp(PV0f.x, 0.0, 1.0);
R127f.y = R11f.y * R2f.w;
R127f.y = clamp(R127f.y, 0.0, 1.0);
R127f.z = R11f.y * R3f.w;
R127f.z = clamp(R127f.z, 0.0, 1.0);
R7f.w = min(R0f.z, 1.0);
R126f.z = (R10f.z * intBitsToFloat(0x40a00000) + R0f.y);
R126f.z = clamp(R126f.z, 0.0, 1.0);
PS0f = R126f.z;
// 1
PV1f.x = PV0f.x + 1.0;
R123f.y = (mul_nonIEEE(R1f.z,PV0f.x) + R5f.z);
PV1f.y = R123f.y;
R123f.z = (mul_nonIEEE(R1f.y,PV0f.x) + R5f.y);
PV1f.z = R123f.z;
R123f.w = (mul_nonIEEE(R1f.x,PV0f.x) + R5f.x);
PV1f.w = R123f.w;
R126f.y = R11f.y * R4f.w;
R126f.y = clamp(R126f.y, 0.0, 1.0);
PS1f = R126f.y;
// 2
R123f.x = (mul_nonIEEE(R2f.x,R127f.y) + PV1f.w);
PV0f.x = R123f.x;
PV0f.y = PV1f.x + R127f.y;
R123f.z = (mul_nonIEEE(R2f.z,R127f.y) + PV1f.y);
PV0f.z = R123f.z;
R123f.w = (mul_nonIEEE(R2f.y,R127f.y) + PV1f.z);
PV0f.w = R123f.w;
PS0f = max(R0f.w, 0.0);
// 3
PV1f.x = PV0f.y + R127f.z;
R123f.y = (mul_nonIEEE(R3f.z,R127f.z) + PV0f.z);
PV1f.y = R123f.y;
R123f.z = (mul_nonIEEE(R3f.y,R127f.z) + PV0f.w);
PV1f.z = R123f.z;
R123f.w = (mul_nonIEEE(R3f.x,R127f.z) + PV0f.x);
PV1f.w = R123f.w;
R7f.y = min(PS0f, 1.0);
PS1f = R7f.y;
// 4
R1f.x = (mul_nonIEEE(R4f.x,R126f.y) + PV1f.w);
R2f.y = PV1f.x + R126f.y;
R3f.z = (mul_nonIEEE(R4f.z,R126f.y) + PV1f.y);
R4f.w = (mul_nonIEEE(R4f.y,R126f.y) + PV1f.z);
PS0f = max(R6f.w, 0.0);
// 5
R4f.x = min(PS0f, 1.0);
R123f.y = (-(R10f.y) * intBitsToFloat(0x40c00000) + R0f.x);
R123f.y = clamp(R123f.y, 0.0, 1.0);
PV1f.y = R123f.y;
PV1f.z = max(R126f.z, 0.0);
R123f.w = (R10f.z * intBitsToFloat(0x40c00000) + R0f.y);
R123f.w = clamp(R123f.w, 0.0, 1.0);
PV1f.w = R123f.w;
R122f.x = (-(R10f.y) * intBitsToFloat(0x40e00000) + R0f.x);
R122f.x = clamp(R122f.x, 0.0, 1.0);
PS1f = R122f.x;
// 6
PV0f.x = max(PV1f.w, 0.0);
R4f.y = min(PV1f.z, 1.0);
PV0f.z = max(PV1f.y, 0.0);
R123f.w = (R10f.z * intBitsToFloat(0x40e00000) + R0f.y);
R123f.w = clamp(R123f.w, 0.0, 1.0);
PV0f.w = R123f.w;
PS0f = max(PS1f, 0.0);
// 7
R3f.x = min(PV0f.z, 1.0);
R3f.y = min(PV0f.x, 1.0);
PV1f.z = max(PV0f.w, 0.0);
R6f.w = min(PS0f, 1.0);
R122f.x = (-(R10f.y) * intBitsToFloat(0x41000000) + R0f.x);
R122f.x = clamp(R122f.x, 0.0, 1.0);
PS1f = R122f.x;
// 8
R2f.x = (-(R10f.y) * intBitsToFloat(0x41100000) + R0f.x);
R2f.x = clamp(R2f.x, 0.0, 1.0);
R6f.y = min(PV1f.z, 1.0);
R4f.z = max(PS1f, 0.0);
R3f.w = (R10f.z * intBitsToFloat(0x41000000) + R0f.y);
R3f.w = clamp(R3f.w, 0.0, 1.0);
R2f.z = (R10f.z * intBitsToFloat(0x41100000) + R0f.y);
R2f.z = clamp(R2f.z, 0.0, 1.0);
PS0f = R2f.z;
R7f.xyzw = (texture(textureUnitPS0, R7f.wy).xyzw);
R5f.xyzw = (texture(textureUnitPS0, R4f.xy).xyzw);
R8f.xyzw = (texture(textureUnitPS0, R3f.xy).xyzw);
R6f.xyzw = (texture(textureUnitPS0, R6f.wy).xyzw);
// 0
PV0f.x = R11f.y * R7f.w;
PV0f.x = clamp(PV0f.x, 0.0, 1.0);
R126f.y = R11f.y * R5f.w;
R126f.y = clamp(R126f.y, 0.0, 1.0);
R126f.z = R11f.y * R8f.w;
R126f.z = clamp(R126f.z, 0.0, 1.0);
R1f.w = min(R4f.z, 1.0);
R127f.w = max(R2f.x, 0.0);
PS0f = R127f.w;
// 1
PV1f.x = R2f.y + PV0f.x;
R123f.y = (mul_nonIEEE(R7f.z,PV0f.x) + R3f.z);
PV1f.y = R123f.y;
R123f.z = (mul_nonIEEE(R7f.y,PV0f.x) + R4f.w);
PV1f.z = R123f.z;
R123f.w = (mul_nonIEEE(R7f.x,PV0f.x) + R1f.x);
PV1f.w = R123f.w;
R127f.y = R11f.y * R6f.w;
R127f.y = clamp(R127f.y, 0.0, 1.0);
PS1f = R127f.y;
// 2
R123f.x = (mul_nonIEEE(R5f.x,R126f.y) + PV1f.w);
PV0f.x = R123f.x;
PV0f.y = PV1f.x + R126f.y;
R123f.z = (mul_nonIEEE(R5f.z,R126f.y) + PV1f.y);
PV0f.z = R123f.z;
R123f.w = (mul_nonIEEE(R5f.y,R126f.y) + PV1f.z);
PV0f.w = R123f.w;
PS0f = max(R3f.w, 0.0);
// 3
PV1f.x = PV0f.y + R126f.z;
R123f.y = (mul_nonIEEE(R8f.z,R126f.z) + PV0f.z);
PV1f.y = R123f.y;
R123f.z = (mul_nonIEEE(R8f.y,R126f.z) + PV0f.w);
PV1f.z = R123f.z;
R123f.w = (mul_nonIEEE(R8f.x,R126f.z) + PV0f.x);
PV1f.w = R123f.w;
R1f.y = min(PS0f, 1.0);
PS1f = R1f.y;
// 4
backupReg0f = R6f.z;
R1f.x = (mul_nonIEEE(R6f.x,R127f.y) + PV1f.w);
R5f.y = PV1f.x + R127f.y;
R6f.z = (mul_nonIEEE(backupReg0f,R127f.y) + PV1f.y);
R6f.w = (mul_nonIEEE(R6f.y,R127f.y) + PV1f.z);
PS0f = max(R2f.z, 0.0);
// 5
R6f.x = min(R127f.w, 1.0);
R6f.y = min(PS0f, 1.0);
R123f.z = (-(R10f.y) * intBitsToFloat(0x41200000) + R0f.x);
R123f.z = clamp(R123f.z, 0.0, 1.0);
PV1f.z = R123f.z;
R123f.w = (R10f.z * intBitsToFloat(0x41200000) + R0f.y);
R123f.w = clamp(R123f.w, 0.0, 1.0);
PV1f.w = R123f.w;
R122f.x = (-(R10f.y) * intBitsToFloat(0x41300000) + R0f.x);
R122f.x = clamp(R122f.x, 0.0, 1.0);
PS1f = R122f.x;
// 6
R123f.x = (R10f.z * intBitsToFloat(0x41300000) + R0f.y);
R123f.x = clamp(R123f.x, 0.0, 1.0);
PV0f.x = R123f.x;
PV0f.y = max(PV1f.w, 0.0);
PV0f.z = max(PV1f.z, 0.0);
PV0f.w = max(PS1f, 0.0);
R127f.x = (-(R10f.y) * intBitsToFloat(0x41400000) + R0f.x);
R127f.x = clamp(R127f.x, 0.0, 1.0);
PS0f = R127f.x;
// 7
R8f.x = min(PV0f.z, 1.0);
R8f.y = min(PV0f.y, 1.0);
PV1f.z = max(PV0f.x, 0.0);
R3f.w = min(PV0f.w, 1.0);
R122f.x = (R10f.z * intBitsToFloat(0x41400000) + R0f.y);
R122f.x = clamp(R122f.x, 0.0, 1.0);
PS1f = R122f.x;
// 8
R5f.x = max(PS1f, 0.0);
R3f.y = min(PV1f.z, 1.0);
R2f.z = max(R127f.x, 0.0);
R8f.w = (-(R10f.y) * intBitsToFloat(0x41500000) + R0f.x);
R8f.w = clamp(R8f.w, 0.0, 1.0);
R8f.z = (R10f.z * intBitsToFloat(0x41500000) + R0f.y);
R8f.z = clamp(R8f.z, 0.0, 1.0);
PS0f = R8f.z;
R4f.xyzw = (texture(textureUnitPS0, R1f.wy).xyzw);
R7f.xyzw = (texture(textureUnitPS0, R6f.xy).xyzw);
R9f.xyzw = (texture(textureUnitPS0, R8f.xy).xyzw);
R3f.xyzw = (texture(textureUnitPS0, R3f.wy).xyzw);
// 0
PV0f.x = R11f.y * R4f.w;
PV0f.x = clamp(PV0f.x, 0.0, 1.0);
R127f.y = R11f.y * R7f.w;
R127f.y = clamp(R127f.y, 0.0, 1.0);
R126f.z = R11f.y * R9f.w;
R126f.z = clamp(R126f.z, 0.0, 1.0);
R1f.w = min(R2f.z, 1.0);
R1f.y = min(R5f.x, 1.0);
PS0f = R1f.y;
// 1
PV1f.x = R5f.y + PV0f.x;
R123f.y = (mul_nonIEEE(R4f.z,PV0f.x) + R6f.z);
PV1f.y = R123f.y;
R123f.z = (mul_nonIEEE(R4f.y,PV0f.x) + R6f.w);
PV1f.z = R123f.z;
R123f.w = (mul_nonIEEE(R4f.x,PV0f.x) + R1f.x);
PV1f.w = R123f.w;
R126f.y = R11f.y * R3f.w;
R126f.y = clamp(R126f.y, 0.0, 1.0);
PS1f = R126f.y;
// 2
R123f.x = (mul_nonIEEE(R7f.x,R127f.y) + PV1f.w);
PV0f.x = R123f.x;
PV0f.y = PV1f.x + R127f.y;
R123f.z = (mul_nonIEEE(R7f.z,R127f.y) + PV1f.y);
PV0f.z = R123f.z;
R123f.w = (mul_nonIEEE(R7f.y,R127f.y) + PV1f.z);
PV0f.w = R123f.w;
R127f.w = max(R8f.w, 0.0);
PS0f = R127f.w;
// 3
PV1f.x = PV0f.y + R126f.z;
R123f.y = (mul_nonIEEE(R9f.z,R126f.z) + PV0f.z);
PV1f.y = R123f.y;
R123f.z = (mul_nonIEEE(R9f.y,R126f.z) + PV0f.w);
PV1f.z = R123f.z;
R123f.w = (mul_nonIEEE(R9f.x,R126f.z) + PV0f.x);
PV1f.w = R123f.w;
R126f.z = max(R8f.z, 0.0);
PS1f = R126f.z;
// 4
R1f.x = (mul_nonIEEE(R3f.x,R126f.y) + PV1f.w);
R7f.y = PV1f.x + R126f.y;
R9f.z = (mul_nonIEEE(R3f.z,R126f.y) + PV1f.y);
R9f.w = (mul_nonIEEE(R3f.y,R126f.y) + PV1f.z);
R3f.x = min(R127f.w, 1.0);
PS0f = R3f.x;
// 5
R123f.x = (-(R10f.y) * intBitsToFloat(0x41600000) + R0f.x);
R123f.x = clamp(R123f.x, 0.0, 1.0);
PV1f.x = R123f.x;
R3f.y = min(R126f.z, 1.0);
R123f.z = (-(R10f.y) * intBitsToFloat(0x41700000) + R0f.x);
R123f.z = clamp(R123f.z, 0.0, 1.0);
PV1f.z = R123f.z;
R123f.w = (R10f.z * intBitsToFloat(0x41600000) + R0f.y);
R123f.w = clamp(R123f.w, 0.0, 1.0);
PV1f.w = R123f.w;
R122f.x = (R10f.z * intBitsToFloat(0x41700000) + R0f.y);
R122f.x = clamp(R122f.x, 0.0, 1.0);
PS1f = R122f.x;
// 6
backupReg0f = R0f.x;
PV0f.x = max(PS1f, 0.0);
PV0f.y = max(PV1f.w, 0.0);
PV0f.z = max(PV1f.x, 0.0);
PV0f.w = max(PV1f.z, 0.0);
R7f.x = (-(R10f.y) * intBitsToFloat(0x41800000) + backupReg0f);
R7f.x = clamp(R7f.x, 0.0, 1.0);
PS0f = R7f.x;
// 7
R9f.x = min(PV0f.z, 1.0);
R9f.y = min(PV0f.y, 1.0);
R3f.z = min(PV0f.w, 1.0);
R3f.w = min(PV0f.x, 1.0);
R7f.w = (R10f.z * intBitsToFloat(0x41800000) + R0f.y);
R7f.w = clamp(R7f.w, 0.0, 1.0);
PS1f = R7f.w;
R8f.xyzw = (texture(textureUnitPS0, R1f.wy).xyzw);
R4f.xyzw = (texture(textureUnitPS0, R3f.xy).xyzw);
R5f.xyzw = (texture(textureUnitPS0, R9f.xy).xyzw);
R3f.xyzw = (texture(textureUnitPS0, R3f.zw).xyzw);
// 0
backupReg0f = R0f.x;
PV0f.x = R11f.y * R8f.w;
PV0f.x = clamp(PV0f.x, 0.0, 1.0);
R126f.y = R11f.y * R4f.w;
R126f.y = clamp(R126f.y, 0.0, 1.0);
R126f.z = R11f.y * R5f.w;
R126f.z = clamp(R126f.z, 0.0, 1.0);
R127f.w = max(R7f.x, 0.0);
R126f.w = (-(R10f.y) * intBitsToFloat(0x41880000) + backupReg0f);
R126f.w = clamp(R126f.w, 0.0, 1.0);
PS0f = R126f.w;
// 1
PV1f.x = R7f.y + PV0f.x;
R123f.y = (mul_nonIEEE(R8f.z,PV0f.x) + R9f.z);
PV1f.y = R123f.y;
R123f.z = (mul_nonIEEE(R8f.y,PV0f.x) + R9f.w);
PV1f.z = R123f.z;
R123f.w = (mul_nonIEEE(R8f.x,PV0f.x) + R1f.x);
PV1f.w = R123f.w;
R127f.y = R11f.y * R3f.w;
R127f.y = clamp(R127f.y, 0.0, 1.0);
PS1f = R127f.y;
// 2
R123f.x = (mul_nonIEEE(R4f.x,R126f.y) + PV1f.w);
PV0f.x = R123f.x;
PV0f.y = PV1f.x + R126f.y;
R123f.z = (mul_nonIEEE(R4f.z,R126f.y) + PV1f.y);
PV0f.z = R123f.z;
R123f.w = (mul_nonIEEE(R4f.y,R126f.y) + PV1f.z);
PV0f.w = R123f.w;
R126f.y = max(R7f.w, 0.0);
PS0f = R126f.y;
// 3
PV1f.x = PV0f.y + R126f.z;
R123f.y = (mul_nonIEEE(R5f.z,R126f.z) + PV0f.z);
PV1f.y = R123f.y;
R123f.z = (mul_nonIEEE(R5f.y,R126f.z) + PV0f.w);
PV1f.z = R123f.z;
R123f.w = (mul_nonIEEE(R5f.x,R126f.z) + PV0f.x);
PV1f.w = R123f.w;
R5f.x = min(R127f.w, 1.0);
PS1f = R5f.x;
// 4
R8f.x = (mul_nonIEEE(R3f.x,R127f.y) + PV1f.w);
R4f.y = PV1f.x + R127f.y;
R8f.z = (mul_nonIEEE(R3f.z,R127f.y) + PV1f.y);
R3f.w = (mul_nonIEEE(R3f.y,R127f.y) + PV1f.z);
R5f.y = min(R126f.y, 1.0);
PS0f = R5f.y;
// 5
R123f.x = (-(R10f.y) * intBitsToFloat(0x41900000) + R0f.x);
R123f.x = clamp(R123f.x, 0.0, 1.0);
PV1f.x = R123f.x;
R123f.y = (R10f.z * intBitsToFloat(0x41900000) + R0f.y);
R123f.y = clamp(R123f.y, 0.0, 1.0);
PV1f.y = R123f.y;
R123f.z = (R10f.z * intBitsToFloat(0x41880000) + R0f.y);
R123f.z = clamp(R123f.z, 0.0, 1.0);
PV1f.z = R123f.z;
PV1f.w = max(R126f.w, 0.0);
R126f.w = (-(R10f.y) * intBitsToFloat(0x41980000) + R0f.x);
R126f.w = clamp(R126f.w, 0.0, 1.0);
PS1f = R126f.w;
// 6
backupReg0f = R0f.y;
R3f.x = min(PV1f.w, 1.0);
PV0f.y = max(PV1f.x, 0.0);
PV0f.z = max(PV1f.z, 0.0);
PV0f.w = max(PV1f.y, 0.0);
R122f.x = (R10f.z * intBitsToFloat(0x41980000) + backupReg0f);
R122f.x = clamp(R122f.x, 0.0, 1.0);
PS0f = R122f.x;
// 7
R4f.x = min(PV0f.y, 1.0);
R3f.y = min(PV0f.z, 1.0);
R4f.z = min(PV0f.w, 1.0);
PV1f.w = max(R126f.w, 0.0);
PS1f = max(PS0f, 0.0);
// 8
R1f.x = min(PV1f.w, 1.0);
R1f.y = min(PS1f, 1.0);
R3f.z = (-(R10f.y) * intBitsToFloat(0x41a00000) + R0f.x);
R3f.z = clamp(R3f.z, 0.0, 1.0);
R4f.w = (R10f.z * intBitsToFloat(0x41a00000) + R0f.y);
R4f.w = clamp(R4f.w, 0.0, 1.0);
R8f.w = (-(R10f.y) * intBitsToFloat(0x41a80000) + R0f.x);
R8f.w = clamp(R8f.w, 0.0, 1.0);
PS0f = R8f.w;
R5f.xyzw = (texture(textureUnitPS0, R5f.xy).xyzw);
R7f.xyzw = (texture(textureUnitPS0, R3f.xy).xyzw);
R9f.xyzw = (texture(textureUnitPS0, R4f.xz).xyzw);
R1f.xyzw = (texture(textureUnitPS0, R1f.xy).xyzw);
// 0
PV0f.x = R11f.y * R5f.w;
PV0f.x = clamp(PV0f.x, 0.0, 1.0);
R127f.y = R11f.y * R7f.w;
R127f.y = clamp(R127f.y, 0.0, 1.0);
R126f.z = R11f.y * R9f.w;
R126f.z = clamp(R126f.z, 0.0, 1.0);
R126f.w = max(R3f.z, 0.0);
R127f.z = (R10f.z * intBitsToFloat(0x41a80000) + R0f.y);
R127f.z = clamp(R127f.z, 0.0, 1.0);
PS0f = R127f.z;
// 1
PV1f.x = R4f.y + PV0f.x;
R123f.y = (mul_nonIEEE(R5f.z,PV0f.x) + R8f.z);
PV1f.y = R123f.y;
R123f.z = (mul_nonIEEE(R5f.y,PV0f.x) + R3f.w);
PV1f.z = R123f.z;
R123f.w = (mul_nonIEEE(R5f.x,PV0f.x) + R8f.x);
PV1f.w = R123f.w;
R126f.y = R11f.y * R1f.w;
R126f.y = clamp(R126f.y, 0.0, 1.0);
PS1f = R126f.y;
// 2
R123f.x = (mul_nonIEEE(R7f.x,R127f.y) + PV1f.w);
PV0f.x = R123f.x;
PV0f.y = PV1f.x + R127f.y;
R123f.z = (mul_nonIEEE(R7f.z,R127f.y) + PV1f.y);
PV0f.z = R123f.z;
R123f.w = (mul_nonIEEE(R7f.y,R127f.y) + PV1f.z);
PV0f.w = R123f.w;
R127f.y = max(R4f.w, 0.0);
PS0f = R127f.y;
// 3
PV1f.x = PV0f.y + R126f.z;
R123f.y = (mul_nonIEEE(R9f.z,R126f.z) + PV0f.z);
PV1f.y = R123f.y;
R123f.z = (mul_nonIEEE(R9f.y,R126f.z) + PV0f.w);
PV1f.z = R123f.z;
R123f.w = (mul_nonIEEE(R9f.x,R126f.z) + PV0f.x);
PV1f.w = R123f.w;
R9f.x = min(R126f.w, 1.0);
PS1f = R9f.x;
// 4
backupReg0f = R1f.z;
R7f.x = (mul_nonIEEE(R1f.x,R126f.y) + PV1f.w);
R7f.y = PV1f.x + R126f.y;
R1f.z = (mul_nonIEEE(backupReg0f,R126f.y) + PV1f.y);
R1f.w = (mul_nonIEEE(R1f.y,R126f.y) + PV1f.z);
R9f.y = min(R127f.y, 1.0);
PS0f = R9f.y;
// 5
R123f.x = (-(R10f.y) * intBitsToFloat(0x41b00000) + R0f.x);
R123f.x = clamp(R123f.x, 0.0, 1.0);
PV1f.x = R123f.x;
R123f.y = (R10f.z * intBitsToFloat(0x41b00000) + R0f.y);
R123f.y = clamp(R123f.y, 0.0, 1.0);
PV1f.y = R123f.y;
PV1f.z = max(R127f.z, 0.0);
PV1f.w = max(R8f.w, 0.0);
R126f.w = (-(R10f.y) * intBitsToFloat(0x41b80000) + R0f.x);
R126f.w = clamp(R126f.w, 0.0, 1.0);
PS1f = R126f.w;
// 6
backupReg0f = R0f.y;
R0f.x = min(PV1f.w, 1.0);
R0f.y = min(PV1f.z, 1.0);
PV0f.z = max(PV1f.x, 0.0);
PV0f.w = max(PV1f.y, 0.0);
R122f.x = (R10f.z * intBitsToFloat(0x41b80000) + backupReg0f);
R122f.x = clamp(R122f.x, 0.0, 1.0);
PS0f = R122f.x;
// 7
R10f.x = min(PV0f.z, 1.0);
R10f.y = min(PV0f.w, 1.0);
PV1f.z = max(PS0f, 0.0);
PV1f.w = max(R126f.w, 0.0);
R4f.w = R10f.w;
R4f.w *= 2.0;
PS1f = R4f.w;
// 8
R1f.x = min(PV1f.w, 1.0);
R1f.y = min(PV1f.z, 1.0);
R9f.xyzw = (texture(textureUnitPS0, R9f.xy).xyzw);
R0f.xyzw = (texture(textureUnitPS0, R0f.xy).xyzw);
R10f.xyzw = (texture(textureUnitPS0, R10f.xy).xyzw);
R8f.xyzw = (texture(textureUnitPS0, R1f.xy).xyzw);
// 0
PV0f.x = R11f.y * R9f.w;
PV0f.x = clamp(PV0f.x, 0.0, 1.0);
R127f.y = R11f.y * R0f.w;
R127f.y = clamp(R127f.y, 0.0, 1.0);
R127f.z = R11f.y * R10f.w;
R127f.z = clamp(R127f.z, 0.0, 1.0);
// 1
PV1f.x = R7f.y + PV0f.x;
R123f.y = (mul_nonIEEE(R9f.z,PV0f.x) + R1f.z);
PV1f.y = R123f.y;
R123f.z = (mul_nonIEEE(R9f.y,PV0f.x) + R1f.w);
PV1f.z = R123f.z;
R123f.w = (mul_nonIEEE(R9f.x,PV0f.x) + R7f.x);
PV1f.w = R123f.w;
R126f.y = R11f.y * R8f.w;
R126f.y = clamp(R126f.y, 0.0, 1.0);
PS1f = R126f.y;
// 2
backupReg0f = R0f.y;
R123f.x = (mul_nonIEEE(R0f.x,R127f.y) + PV1f.w);
PV0f.x = R123f.x;
PV0f.y = PV1f.x + R127f.y;
R123f.z = (mul_nonIEEE(R0f.z,R127f.y) + PV1f.y);
PV0f.z = R123f.z;
R123f.w = (mul_nonIEEE(backupReg0f,R127f.y) + PV1f.z);
PV0f.w = R123f.w;
// 3
PV1f.x = PV0f.y + R127f.z;
R123f.y = (mul_nonIEEE(R10f.z,R127f.z) + PV0f.z);
PV1f.y = R123f.y;
R123f.z = (mul_nonIEEE(R10f.y,R127f.z) + PV0f.w);
PV1f.z = R123f.z;
R123f.w = (mul_nonIEEE(R10f.x,R127f.z) + PV0f.x);
PV1f.w = R123f.w;
// 4
R127f.x = (mul_nonIEEE(R8f.x,R126f.y) + PV1f.w);
PV0f.y = PV1f.x + R126f.y;
R127f.z = (mul_nonIEEE(R8f.z,R126f.y) + PV1f.y);
R126f.w = (mul_nonIEEE(R8f.y,R126f.y) + PV1f.z);
// 5
PS1f = 1.0 / PV0f.y;
// 6
R4f.x = R127f.x * PS1f;
R4f.y = R126f.w * PS1f;
R4f.z = R127f.z * PS1f;
// export
passPixelColor0 = vec4(R4f.x, R4f.y, R4f.z, R4f.w);
}

View File

@ -0,0 +1,135 @@
<?php
include 'Source/functions.php';
$fullWidth = $argv[1];
$fullHeight = $argv[2];
$scaleFactorX = always_decimal_format($fullWidth / 1280.0);
$scaleFactorY = always_decimal_format($fullHeight / 720.0);
?>
#version 420
#extension GL_ARB_texture_gather : enable
#extension GL_ARB_separate_shader_objects : enable
// shader 43a2239f07af804e
//horizontal blur
const float resScale = <?=$scaleFactorX?>;
uniform ivec4 uf_remappedPS[3];
layout(binding = 0) uniform sampler2D textureUnitPS0;// Tex0 addr 0xf53f9800 res 320x176x1 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()
{
vec4 R0f = vec4(0.0);
vec4 R1f = vec4(0.0);
vec4 R2f = vec4(0.0);
vec4 R3f = vec4(0.0);
vec4 R4f = vec4(0.0);
vec4 R5f = vec4(0.0);
vec4 R123f = vec4(0.0);
vec4 R127f = vec4(0.0);
float backupReg0f, backupReg1f, backupReg2f, backupReg3f, backupReg4f;
vec4 PV0f = vec4(0.0), PV1f = vec4(0.0);
float PS0f = 0.0, PS1f = 0.0;
vec4 tempf = vec4(0.0);
float tempResultf;
int tempResulti;
ivec4 ARi = ivec4(0);
bool predResult = true;
vec3 cubeMapSTM;
int cubeMapFaceId;
R0f = passParameterSem133;
R4f.xyzw = (texture(textureUnitPS0, R0f.xy).xyzw);
// 0
R5f.x = intBitsToFloat(uf_remappedPS[0].x) + -(intBitsToFloat(uf_remappedPS[1].x));
R5f.w = intBitsToFloat(uf_remappedPS[0].y) + -(intBitsToFloat(uf_remappedPS[1].y));
// 1
R1f.x = R0f.x + intBitsToFloat(0x3c333333)/ resScale;
R1f.y = R0f.y;
R5f.z = intBitsToFloat(uf_remappedPS[0].z) + -(intBitsToFloat(uf_remappedPS[1].z));
R2f.w = R0f.y;
R2f.x = R0f.x + intBitsToFloat(0x3b99999a)/ resScale;
PS1f = R2f.x;
// 2
backupReg0f = R0f.x;
R3f.x = R0f.x + -(intBitsToFloat(0x3c333333)/ resScale);
R3f.y = R0f.y;
R0f.x = backupReg0f + -(intBitsToFloat(0x3b99999a)/ resScale);
PS0f = R0f.x;
R1f.xyzw = (texture(textureUnitPS0, R1f.xy).xyzw);
R2f.xyzw = (texture(textureUnitPS0, R2f.xw).xyzw);
R3f.xyzw = (texture(textureUnitPS0, R3f.xy).xyzw);
R0f.xyzw = (texture(textureUnitPS0, R0f.xy).xyzw);
// 0
PV0f.x = R1f.z * intBitsToFloat(0x3ee66666);
PV0f.y = R1f.y * intBitsToFloat(0x3ee66666);
PV0f.z = R1f.x * intBitsToFloat(0x3ee66666);
PV0f.w = R1f.w * intBitsToFloat(0x3ee66666);
// 1
R123f.x = (R4f.x * 1.0 + PV0f.z);
PV1f.x = R123f.x;
R123f.y = (R4f.y * 1.0 + PV0f.y);
PV1f.y = R123f.y;
R123f.z = (R4f.w * 1.0 + PV0f.w);
PV1f.z = R123f.z;
R123f.w = (R4f.z * 1.0 + PV0f.x);
PV1f.w = R123f.w;
// 2
R123f.x = (R2f.y * intBitsToFloat(0x3f4ccccd) + PV1f.y);
PV0f.x = R123f.x;
R123f.y = (R2f.x * intBitsToFloat(0x3f4ccccd) + PV1f.x);
PV0f.y = R123f.y;
R123f.z = (R2f.w * intBitsToFloat(0x3f4ccccd) + PV1f.z);
PV0f.z = R123f.z;
R123f.w = (R2f.z * intBitsToFloat(0x3f4ccccd) + PV1f.w);
PV0f.w = R123f.w;
// 3
R123f.x = (R3f.x * intBitsToFloat(0x3ee66666) + PV0f.y);
PV1f.x = R123f.x;
R123f.y = (R3f.w * intBitsToFloat(0x3ee66666) + PV0f.z);
PV1f.y = R123f.y;
R123f.z = (R3f.z * intBitsToFloat(0x3ee66666) + PV0f.w);
PV1f.z = R123f.z;
R123f.w = (R3f.y * intBitsToFloat(0x3ee66666) + PV0f.x);
PV1f.w = R123f.w;
// 4
R123f.x = (R0f.x * intBitsToFloat(0x3f4ccccd) + PV1f.x);
PV0f.x = R123f.x;
R123f.y = (R0f.w * intBitsToFloat(0x3f4ccccd) + PV1f.y);
PV0f.y = R123f.y;
R123f.z = (R0f.z * intBitsToFloat(0x3f4ccccd) + PV1f.z);
PV0f.z = R123f.z;
R123f.w = (R0f.y * intBitsToFloat(0x3f4ccccd) + PV1f.w);
PV0f.w = R123f.w;
// 5
R127f.x = PV0f.x * intBitsToFloat(0x3e924925);
R127f.y = PV0f.y * intBitsToFloat(0x3e924925);
PV1f.y = R127f.y;
R127f.z = PV0f.z * intBitsToFloat(0x3e924925);
R127f.w = PV0f.w * intBitsToFloat(0x3e924925);
// 6
R123f.x = (mul_nonIEEE(R5f.w,PV1f.y) + intBitsToFloat(uf_remappedPS[1].y));
PV0f.x = R123f.x;
R123f.y = (mul_nonIEEE(R5f.x,PV1f.y) + intBitsToFloat(uf_remappedPS[1].x));
PV0f.y = R123f.y;
R123f.w = (mul_nonIEEE(R5f.z,PV1f.y) + intBitsToFloat(uf_remappedPS[1].z));
PV0f.w = R123f.w;
// 7
PV1f.x = mul_nonIEEE(R127f.z, PV0f.w);
PV1f.y = mul_nonIEEE(R127f.w, PV0f.x);
PV1f.z = mul_nonIEEE(R127f.x, PV0f.y);
R5f.w = mul_nonIEEE(R127f.y, intBitsToFloat(uf_remappedPS[2].w));
// 8
R5f.x = mul_nonIEEE(PV1f.z, intBitsToFloat(uf_remappedPS[2].x));
R5f.y = mul_nonIEEE(PV1f.y, intBitsToFloat(uf_remappedPS[2].y));
R5f.z = mul_nonIEEE(PV1f.x, intBitsToFloat(uf_remappedPS[2].z));
// export
passPixelColor0 = vec4(R5f.x, R5f.y, R5f.z, R5f.w);
}

View File

@ -0,0 +1,561 @@
<?php
include 'Source/functions.php';
$fullWidth = $argv[1];
$fullHeight = $argv[2];
$scaleFactorX = always_decimal_format($fullWidth / 1280.0);
$scaleFactorY = always_decimal_format($fullHeight / 720.0);
?>
#version 420
#extension GL_ARB_texture_gather : enable
#extension GL_ARB_separate_shader_objects : enable
// shader 73ac09c3fff4b657
//cut scene vert blur //redundant?
const float resScale = <?=$scaleFactorX?>;
uniform ivec4 uf_remappedPS[2];
layout(binding = 0) uniform sampler2D textureUnitPS0;// Tex0 addr 0x462fa000 res 320x180x1 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()
{
vec4 R0f = vec4(0.0);
vec4 R1f = vec4(0.0);
vec4 R2f = vec4(0.0);
vec4 R3f = vec4(0.0);
vec4 R4f = vec4(0.0);
vec4 R5f = vec4(0.0);
vec4 R6f = vec4(0.0);
vec4 R7f = vec4(0.0);
vec4 R8f = vec4(0.0);
vec4 R123f = vec4(0.0);
vec4 R126f = vec4(0.0);
vec4 R127f = vec4(0.0);
float backupReg0f, backupReg1f, backupReg2f, backupReg3f, backupReg4f;
vec4 PV0f = vec4(0.0), PV1f = vec4(0.0);
float PS0f = 0.0, PS1f = 0.0;
vec4 tempf = vec4(0.0);
float tempResultf;
int tempResulti;
ivec4 ARi = ivec4(0);
bool predResult = true;
vec3 cubeMapSTM;
int cubeMapFaceId;
R0f = passParameterSem133;
R4f.xyzw = (texture(textureUnitPS0, R0f.xy).xyzw);
// 0
backupReg0f = R0f.y;
R8f.x = mul_nonIEEE(R4f.w, intBitsToFloat(uf_remappedPS[0].x)/ resScale);
PV0f.x = R8f.x;
PV0f.y = max(R0f.x, 0.0);
PV0f.z = backupReg0f + 0.0;
PV0f.z = clamp(PV0f.z, 0.0, 1.0);
PV0f.w = max(R4f.w, intBitsToFloat(0x3a83126f));
R127f.w = max(R0f.x, 0.0);
PS0f = R127f.w;
// 1
backupReg0f = R0f.x;
PV1f.x = max(PV0f.z, 0.0);
PV1f.y = max(backupReg0f, 0.0);
R1f.z = min(PV0f.y, 1.0);
R8f.w = mul_nonIEEE(PV0f.x, intBitsToFloat(uf_remappedPS[1].y)/ resScale);
PV1f.w = R8f.w;
R8f.z = 1.0 / PV0f.w;
PS1f = R8f.z;
// 2
PV0f.x = R0f.y + PV1f.w;
PV0f.x = clamp(PV0f.x, 0.0, 1.0);
R1f.y = min(PV1f.x, 1.0);
R2f.z = min(R127f.w, 1.0);
R123f.w = (PV1f.w * 2.0 + R0f.y);
R123f.w = clamp(R123f.w, 0.0, 1.0);
PV0f.w = R123f.w;
R3f.x = min(PV1f.y, 1.0);
PS0f = R3f.x;
// 3
backupReg0f = R0f.x;
PV1f.x = max(PV0f.w, 0.0);
R123f.y = (R8f.w * intBitsToFloat(0x40400000)/ + R0f.y);
R123f.y = clamp(R123f.y, 0.0, 1.0);
PV1f.y = R123f.y;
PV1f.z = max(PV0f.x, 0.0);
PV1f.w = max(backupReg0f, 0.0);
R127f.x = (R8f.w * 4.0 + R0f.y);
R127f.x = clamp(R127f.x, 0.0, 1.0);
PS1f = R127f.x;
// 4
backupReg0f = R0f.x;
PV0f.x = max(PV1f.y, 0.0);
R2f.y = min(PV1f.z, 1.0);
R3f.z = min(PV1f.x, 1.0);
R3f.w = min(PV1f.w, 1.0);
PS0f = max(backupReg0f, 0.0);
// 5
R6f.x = min(PS0f, 1.0);
R3f.y = min(PV0f.x, 1.0);
R0f.z = max(R127f.x, 0.0);
R0f.w = (R8f.w * intBitsToFloat(0x40a00000) + R0f.y);
R0f.w = clamp(R0f.w, 0.0, 1.0);
R6f.w = max(R0f.x, 0.0);
PS1f = R6f.w;
R1f.xyzw = (texture(textureUnitPS0, R1f.zy).xyzw);
R2f.xyzw = (texture(textureUnitPS0, R2f.zy).xyzw);
R5f.xyzw = (texture(textureUnitPS0, R3f.xz).xyzw);
R3f.xyzw = (texture(textureUnitPS0, R3f.wy).xyzw);
// 0
R127f.x = R8f.z * R5f.w;
R127f.x = clamp(R127f.x, 0.0, 1.0);
PV0f.y = R1f.w * R8f.z;
PV0f.y = clamp(PV0f.y, 0.0, 1.0);
R127f.w = R8f.z * R2f.w;
R127f.w = clamp(R127f.w, 0.0, 1.0);
R6f.y = min(R0f.z, 1.0);
PS0f = R6f.y;
// 1
R123f.x = (mul_nonIEEE(R1f.x,PV0f.y) + R4f.x);
PV1f.x = R123f.x;
PV1f.y = PV0f.y + 1.0;
R123f.z = (mul_nonIEEE(R1f.z,PV0f.y) + R4f.z);
PV1f.z = R123f.z;
R123f.w = (mul_nonIEEE(R1f.y,PV0f.y) + R4f.y);
PV1f.w = R123f.w;
R127f.y = R8f.z * R3f.w;
R127f.y = clamp(R127f.y, 0.0, 1.0);
PS1f = R127f.y;
// 2
backupReg0f = R0f.w;
R123f.x = (mul_nonIEEE(R2f.z,R127f.w) + PV1f.z);
PV0f.x = R123f.x;
R123f.y = (mul_nonIEEE(R2f.y,R127f.w) + PV1f.w);
PV0f.y = R123f.y;
R123f.z = (mul_nonIEEE(R2f.x,R127f.w) + PV1f.x);
PV0f.z = R123f.z;
PV0f.w = PV1f.y + R127f.w;
R127f.z = max(backupReg0f, 0.0);
PS0f = R127f.z;
// 3
R123f.x = (mul_nonIEEE(R5f.z,R127f.x) + PV0f.x);
PV1f.x = R123f.x;
R123f.y = (mul_nonIEEE(R5f.y,R127f.x) + PV0f.y);
PV1f.y = R123f.y;
R123f.z = (mul_nonIEEE(R5f.x,R127f.x) + PV0f.z);
PV1f.z = R123f.z;
PV1f.w = PV0f.w + R127f.x;
R5f.x = min(R6f.w, 1.0);
PS1f = R5f.x;
// 4
R2f.x = (mul_nonIEEE(R3f.x,R127f.y) + PV1f.z);
R2f.y = PV1f.w + R127f.y;
R2f.z = (mul_nonIEEE(R3f.z,R127f.y) + PV1f.x);
R3f.w = (mul_nonIEEE(R3f.y,R127f.y) + PV1f.y);
R5f.y = min(R127f.z, 1.0);
PS0f = R5f.y;
// 5
backupReg0f = R0f.y;
backupReg0f = R0f.y;
R123f.x = (R8f.w * intBitsToFloat(0x40e00000) + R0f.y);
R123f.x = clamp(R123f.x, 0.0, 1.0);
PV1f.x = R123f.x;
PV1f.y = max(R0f.x, 0.0);
R123f.z = (R8f.w * intBitsToFloat(0x40c00000) + backupReg0f);
R123f.z = clamp(R123f.z, 0.0, 1.0);
PV1f.z = R123f.z;
PV1f.w = max(R0f.x, 0.0);
R127f.x = (R8f.w * intBitsToFloat(0x41000000) + backupReg0f);
R127f.x = clamp(R127f.x, 0.0, 1.0);
PS1f = R127f.x;
// 6
backupReg0f = R0f.x;
PV0f.x = max(PV1f.z, 0.0);
PV0f.y = max(PV1f.x, 0.0);
R3f.z = min(PV1f.y, 1.0);
R5f.w = min(PV1f.w, 1.0);
PS0f = max(backupReg0f, 0.0);
// 7
R3f.x = max(R127f.x, 0.0);
R3f.y = min(PV0f.x, 1.0);
R5f.z = min(PV0f.y, 1.0);
R0f.w = min(PS0f, 1.0);
R4f.x = (R8f.w * intBitsToFloat(0x41100000) + R0f.y);
R4f.x = clamp(R4f.x, 0.0, 1.0);
PS1f = R4f.x;
R6f.xyzw = (texture(textureUnitPS0, R6f.xy).xyzw);
R1f.xyzw = (texture(textureUnitPS0, R5f.xy).xyzw);
R7f.xyzw = (texture(textureUnitPS0, R3f.zy).xyzw);
R5f.xyzw = (texture(textureUnitPS0, R5f.wz).xyzw);
// 0
R127f.x = R8f.z * R7f.w;
R127f.x = clamp(R127f.x, 0.0, 1.0);
PV0f.y = R8f.z * R6f.w;
PV0f.y = clamp(PV0f.y, 0.0, 1.0);
R0f.z = min(R3f.x, 1.0);
R127f.w = R8f.z * R1f.w;
R127f.w = clamp(R127f.w, 0.0, 1.0);
R126f.w = max(R0f.x, 0.0);
PS0f = R126f.w;
// 1
R123f.x = (mul_nonIEEE(R6f.x,PV0f.y) + R2f.x);
PV1f.x = R123f.x;
PV1f.y = R2f.y + PV0f.y;
R123f.z = (mul_nonIEEE(R6f.z,PV0f.y) + R2f.z);
PV1f.z = R123f.z;
R123f.w = (mul_nonIEEE(R6f.y,PV0f.y) + R3f.w);
PV1f.w = R123f.w;
R127f.y = R8f.z * R5f.w;
R127f.y = clamp(R127f.y, 0.0, 1.0);
PS1f = R127f.y;
// 2
R123f.x = (mul_nonIEEE(R1f.z,R127f.w) + PV1f.z);
PV0f.x = R123f.x;
R123f.y = (mul_nonIEEE(R1f.y,R127f.w) + PV1f.w);
PV0f.y = R123f.y;
R123f.z = (mul_nonIEEE(R1f.x,R127f.w) + PV1f.x);
PV0f.z = R123f.z;
PV0f.w = PV1f.y + R127f.w;
R127f.z = max(R4f.x, 0.0);
PS0f = R127f.z;
// 3
R123f.x = (mul_nonIEEE(R7f.z,R127f.x) + PV0f.x);
PV1f.x = R123f.x;
R123f.y = (mul_nonIEEE(R7f.y,R127f.x) + PV0f.y);
PV1f.y = R123f.y;
R123f.z = (mul_nonIEEE(R7f.x,R127f.x) + PV0f.z);
PV1f.z = R123f.z;
PV1f.w = PV0f.w + R127f.x;
R7f.x = min(R126f.w, 1.0);
PS1f = R7f.x;
// 4
R1f.x = (mul_nonIEEE(R5f.x,R127f.y) + PV1f.z);
R1f.y = PV1f.w + R127f.y;
R1f.z = (mul_nonIEEE(R5f.z,R127f.y) + PV1f.x);
R5f.w = (mul_nonIEEE(R5f.y,R127f.y) + PV1f.y);
R7f.y = min(R127f.z, 1.0);
PS0f = R7f.y;
// 5
backupReg0f = R0f.y;
backupReg0f = R0f.y;
R123f.x = (R8f.w * intBitsToFloat(0x41300000) + R0f.y);
R123f.x = clamp(R123f.x, 0.0, 1.0);
PV1f.x = R123f.x;
PV1f.y = max(R0f.x, 0.0);
R123f.z = (R8f.w * intBitsToFloat(0x41200000) + backupReg0f);
R123f.z = clamp(R123f.z, 0.0, 1.0);
PV1f.z = R123f.z;
PV1f.w = max(R0f.x, 0.0);
R127f.x = (R8f.w * intBitsToFloat(0x41400000) + backupReg0f);
R127f.x = clamp(R127f.x, 0.0, 1.0);
PS1f = R127f.x;
// 6
backupReg0f = R0f.x;
PV0f.x = max(PV1f.z, 0.0);
PV0f.y = max(PV1f.x, 0.0);
R5f.z = min(PV1f.y, 1.0);
R7f.w = min(PV1f.w, 1.0);
PS0f = max(backupReg0f, 0.0);
// 7
R5f.x = max(R127f.x, 0.0);
R5f.y = min(PV0f.x, 1.0);
R7f.z = min(PV0f.y, 1.0);
R6f.w = min(PS0f, 1.0);
R6f.x = (R8f.w * intBitsToFloat(0x41500000) + R0f.y);
R6f.x = clamp(R6f.x, 0.0, 1.0);
PS1f = R6f.x;
R4f.xyzw = (texture(textureUnitPS0, R0f.wz).xyzw);
R2f.xyzw = (texture(textureUnitPS0, R7f.xy).xyzw);
R3f.xyzw = (texture(textureUnitPS0, R5f.zy).xyzw);
R7f.xyzw = (texture(textureUnitPS0, R7f.wz).xyzw);
// 0
R127f.x = R8f.z * R3f.w;
R127f.x = clamp(R127f.x, 0.0, 1.0);
PV0f.y = R8f.z * R4f.w;
PV0f.y = clamp(PV0f.y, 0.0, 1.0);
R6f.z = min(R5f.x, 1.0);
R126f.w = R8f.z * R2f.w;
R126f.w = clamp(R126f.w, 0.0, 1.0);
R127f.w = max(R0f.x, 0.0);
PS0f = R127f.w;
// 1
R123f.x = (mul_nonIEEE(R4f.x,PV0f.y) + R1f.x);
PV1f.x = R123f.x;
PV1f.y = R1f.y + PV0f.y;
R123f.z = (mul_nonIEEE(R4f.z,PV0f.y) + R1f.z);
PV1f.z = R123f.z;
R123f.w = (mul_nonIEEE(R4f.y,PV0f.y) + R5f.w);
PV1f.w = R123f.w;
R127f.y = R8f.z * R7f.w;
R127f.y = clamp(R127f.y, 0.0, 1.0);
PS1f = R127f.y;
// 2
R123f.x = (mul_nonIEEE(R2f.z,R126f.w) + PV1f.z);
PV0f.x = R123f.x;
R123f.y = (mul_nonIEEE(R2f.y,R126f.w) + PV1f.w);
PV0f.y = R123f.y;
R123f.z = (mul_nonIEEE(R2f.x,R126f.w) + PV1f.x);
PV0f.z = R123f.z;
PV0f.w = PV1f.y + R126f.w;
R127f.z = max(R6f.x, 0.0);
PS0f = R127f.z;
// 3
R123f.x = (mul_nonIEEE(R3f.z,R127f.x) + PV0f.x);
PV1f.x = R123f.x;
R123f.y = (mul_nonIEEE(R3f.y,R127f.x) + PV0f.y);
PV1f.y = R123f.y;
R123f.z = (mul_nonIEEE(R3f.x,R127f.x) + PV0f.z);
PV1f.z = R123f.z;
PV1f.w = PV0f.w + R127f.x;
R3f.x = min(R127f.w, 1.0);
PS1f = R3f.x;
// 4
R2f.x = (mul_nonIEEE(R7f.x,R127f.y) + PV1f.z);
R2f.y = PV1f.w + R127f.y;
R2f.z = (mul_nonIEEE(R7f.z,R127f.y) + PV1f.x);
R7f.w = (mul_nonIEEE(R7f.y,R127f.y) + PV1f.y);
R3f.y = min(R127f.z, 1.0);
PS0f = R3f.y;
// 5
backupReg0f = R0f.y;
backupReg0f = R0f.y;
R123f.x = (R8f.w * intBitsToFloat(0x41700000) + R0f.y);
R123f.x = clamp(R123f.x, 0.0, 1.0);
PV1f.x = R123f.x;
PV1f.y = max(R0f.x, 0.0);
R123f.z = (R8f.w * intBitsToFloat(0x41600000) + backupReg0f);
R123f.z = clamp(R123f.z, 0.0, 1.0);
PV1f.z = R123f.z;
PV1f.w = max(R0f.x, 0.0);
R127f.x = (R8f.w * intBitsToFloat(0x41800000) + backupReg0f);
R127f.x = clamp(R127f.x, 0.0, 1.0);
PS1f = R127f.x;
// 6
backupReg0f = R0f.x;
PV0f.x = max(PV1f.z, 0.0);
PV0f.y = max(PV1f.x, 0.0);
R7f.z = min(PV1f.y, 1.0);
R3f.w = min(PV1f.w, 1.0);
PS0f = max(backupReg0f, 0.0);
// 7
R7f.x = max(R127f.x, 0.0);
R7f.y = min(PV0f.x, 1.0);
R3f.z = min(PV0f.y, 1.0);
R4f.w = min(PS0f, 1.0);
R4f.x = (R8f.w * intBitsToFloat(0x41880000) + R0f.y);
R4f.x = clamp(R4f.x, 0.0, 1.0);
PS1f = R4f.x;
R6f.xyzw = (texture(textureUnitPS0, R6f.wz).xyzw);
R1f.xyzw = (texture(textureUnitPS0, R3f.xy).xyzw);
R5f.xyzw = (texture(textureUnitPS0, R7f.zy).xyzw);
R3f.xyzw = (texture(textureUnitPS0, R3f.wz).xyzw);
// 0
R127f.x = R8f.z * R5f.w;
R127f.x = clamp(R127f.x, 0.0, 1.0);
PV0f.y = R8f.z * R6f.w;
PV0f.y = clamp(PV0f.y, 0.0, 1.0);
R4f.z = min(R7f.x, 1.0);
R127f.w = R8f.z * R1f.w;
R127f.w = clamp(R127f.w, 0.0, 1.0);
R126f.w = max(R0f.x, 0.0);
PS0f = R126f.w;
// 1
R123f.x = (mul_nonIEEE(R6f.x,PV0f.y) + R2f.x);
PV1f.x = R123f.x;
PV1f.y = R2f.y + PV0f.y;
R123f.z = (mul_nonIEEE(R6f.z,PV0f.y) + R2f.z);
PV1f.z = R123f.z;
R123f.w = (mul_nonIEEE(R6f.y,PV0f.y) + R7f.w);
PV1f.w = R123f.w;
R127f.y = R8f.z * R3f.w;
R127f.y = clamp(R127f.y, 0.0, 1.0);
PS1f = R127f.y;
// 2
R123f.x = (mul_nonIEEE(R1f.z,R127f.w) + PV1f.z);
PV0f.x = R123f.x;
R123f.y = (mul_nonIEEE(R1f.y,R127f.w) + PV1f.w);
PV0f.y = R123f.y;
R123f.z = (mul_nonIEEE(R1f.x,R127f.w) + PV1f.x);
PV0f.z = R123f.z;
PV0f.w = PV1f.y + R127f.w;
R127f.z = max(R4f.x, 0.0);
PS0f = R127f.z;
// 3
R123f.x = (mul_nonIEEE(R5f.z,R127f.x) + PV0f.x);
PV1f.x = R123f.x;
R123f.y = (mul_nonIEEE(R5f.y,R127f.x) + PV0f.y);
PV1f.y = R123f.y;
R123f.z = (mul_nonIEEE(R5f.x,R127f.x) + PV0f.z);
PV1f.z = R123f.z;
PV1f.w = PV0f.w + R127f.x;
R5f.x = min(R126f.w, 1.0);
PS1f = R5f.x;
// 4
R1f.x = (mul_nonIEEE(R3f.x,R127f.y) + PV1f.z);
R1f.y = PV1f.w + R127f.y;
R1f.z = (mul_nonIEEE(R3f.z,R127f.y) + PV1f.x);
R3f.w = (mul_nonIEEE(R3f.y,R127f.y) + PV1f.y);
R5f.y = min(R127f.z, 1.0);
PS0f = R5f.y;
// 5
backupReg0f = R0f.y;
backupReg0f = R0f.y;
R123f.x = (R8f.w * intBitsToFloat(0x41980000) + R0f.y);
R123f.x = clamp(R123f.x, 0.0, 1.0);
PV1f.x = R123f.x;
PV1f.y = max(R0f.x, 0.0);
R123f.z = (R8f.w * intBitsToFloat(0x41900000) + backupReg0f);
R123f.z = clamp(R123f.z, 0.0, 1.0);
PV1f.z = R123f.z;
PV1f.w = max(R0f.x, 0.0);
R127f.x = (R8f.w * intBitsToFloat(0x41a00000) + backupReg0f);
R127f.x = clamp(R127f.x, 0.0, 1.0);
PS1f = R127f.x;
// 6
backupReg0f = R0f.x;
PV0f.x = max(PV1f.z, 0.0);
PV0f.y = max(PV1f.x, 0.0);
R3f.z = min(PV1f.y, 1.0);
R5f.w = min(PV1f.w, 1.0);
PS0f = max(backupReg0f, 0.0);
// 7
R3f.x = max(R127f.x, 0.0);
R3f.y = min(PV0f.x, 1.0);
R5f.z = min(PV0f.y, 1.0);
R6f.w = min(PS0f, 1.0);
R6f.x = (R8f.w * intBitsToFloat(0x41a80000) + R0f.y);
R6f.x = clamp(R6f.x, 0.0, 1.0);
PS1f = R6f.x;
R4f.xyzw = (texture(textureUnitPS0, R4f.wz).xyzw);
R2f.xyzw = (texture(textureUnitPS0, R5f.xy).xyzw);
R7f.xyzw = (texture(textureUnitPS0, R3f.zy).xyzw);
R5f.xyzw = (texture(textureUnitPS0, R5f.wz).xyzw);
// 0
R127f.x = R8f.z * R7f.w;
R127f.x = clamp(R127f.x, 0.0, 1.0);
PV0f.y = R8f.z * R4f.w;
PV0f.y = clamp(PV0f.y, 0.0, 1.0);
R6f.z = min(R3f.x, 1.0);
R126f.w = R8f.z * R2f.w;
R126f.w = clamp(R126f.w, 0.0, 1.0);
R127f.w = max(R0f.x, 0.0);
PS0f = R127f.w;
// 1
R123f.x = (mul_nonIEEE(R4f.x,PV0f.y) + R1f.x);
PV1f.x = R123f.x;
PV1f.y = R1f.y + PV0f.y;
R123f.z = (mul_nonIEEE(R4f.z,PV0f.y) + R1f.z);
PV1f.z = R123f.z;
R123f.w = (mul_nonIEEE(R4f.y,PV0f.y) + R3f.w);
PV1f.w = R123f.w;
R127f.y = R8f.z * R5f.w;
R127f.y = clamp(R127f.y, 0.0, 1.0);
PS1f = R127f.y;
// 2
R123f.x = (mul_nonIEEE(R2f.z,R126f.w) + PV1f.z);
PV0f.x = R123f.x;
R123f.y = (mul_nonIEEE(R2f.y,R126f.w) + PV1f.w);
PV0f.y = R123f.y;
R123f.z = (mul_nonIEEE(R2f.x,R126f.w) + PV1f.x);
PV0f.z = R123f.z;
PV0f.w = PV1f.y + R126f.w;
R127f.z = max(R6f.x, 0.0);
PS0f = R127f.z;
// 3
R123f.x = (mul_nonIEEE(R7f.z,R127f.x) + PV0f.x);
PV1f.x = R123f.x;
R123f.y = (mul_nonIEEE(R7f.y,R127f.x) + PV0f.y);
PV1f.y = R123f.y;
R123f.z = (mul_nonIEEE(R7f.x,R127f.x) + PV0f.z);
PV1f.z = R123f.z;
PV1f.w = PV0f.w + R127f.x;
R7f.x = min(R127f.w, 1.0);
PS1f = R7f.x;
// 4
backupReg0f = R5f.x;
backupReg1f = R5f.z;
backupReg2f = R5f.y;
R5f.x = (mul_nonIEEE(backupReg0f,R127f.y) + PV1f.z);
R5f.y = PV1f.w + R127f.y;
R5f.z = (mul_nonIEEE(backupReg1f,R127f.y) + PV1f.x);
R5f.w = (mul_nonIEEE(backupReg2f,R127f.y) + PV1f.y);
R7f.y = min(R127f.z, 1.0);
PS0f = R7f.y;
// 5
backupReg0f = R0f.y;
R123f.x = (R8f.w * intBitsToFloat(0x41b80000) + R0f.y);
R123f.x = clamp(R123f.x, 0.0, 1.0);
PV1f.x = R123f.x;
PV1f.y = max(R0f.x, 0.0);
R123f.z = (R8f.w * intBitsToFloat(0x41b00000) + backupReg0f);
R123f.z = clamp(R123f.z, 0.0, 1.0);
PV1f.z = R123f.z;
PV1f.w = max(R0f.x, 0.0);
R1f.w = R8f.x;
R1f.w *= 2.0;
PS1f = R1f.w;
// 6
PV0f.x = max(PV1f.z, 0.0);
PV0f.y = max(PV1f.x, 0.0);
R0f.z = min(PV1f.y, 1.0);
R0f.w = min(PV1f.w, 1.0);
// 7
R0f.x = min(PV0f.y, 1.0);
R0f.y = min(PV0f.x, 1.0);
R6f.xyzw = (texture(textureUnitPS0, R6f.wz).xyzw);
R7f.xyzw = (texture(textureUnitPS0, R7f.xy).xyzw);
R2f.xyzw = (texture(textureUnitPS0, R0f.zy).xyzw);
R0f.xyzw = (texture(textureUnitPS0, R0f.wx).xyzw);
// 0
R127f.x = R8f.z * R2f.w;
R127f.x = clamp(R127f.x, 0.0, 1.0);
PV0f.y = R8f.z * R6f.w;
PV0f.y = clamp(PV0f.y, 0.0, 1.0);
R127f.w = R8f.z * R7f.w;
R127f.w = clamp(R127f.w, 0.0, 1.0);
// 1
R123f.x = (mul_nonIEEE(R6f.x,PV0f.y) + R5f.x);
PV1f.x = R123f.x;
PV1f.y = R5f.y + PV0f.y;
R123f.z = (mul_nonIEEE(R6f.z,PV0f.y) + R5f.z);
PV1f.z = R123f.z;
R123f.w = (mul_nonIEEE(R6f.y,PV0f.y) + R5f.w);
PV1f.w = R123f.w;
R127f.y = R8f.z * R0f.w;
R127f.y = clamp(R127f.y, 0.0, 1.0);
PS1f = R127f.y;
// 2
R123f.x = (mul_nonIEEE(R7f.z,R127f.w) + PV1f.z);
PV0f.x = R123f.x;
R123f.y = (mul_nonIEEE(R7f.y,R127f.w) + PV1f.w);
PV0f.y = R123f.y;
R123f.z = (mul_nonIEEE(R7f.x,R127f.w) + PV1f.x);
PV0f.z = R123f.z;
PV0f.w = PV1f.y + R127f.w;
// 3
R123f.x = (mul_nonIEEE(R2f.z,R127f.x) + PV0f.x);
PV1f.x = R123f.x;
R123f.y = (mul_nonIEEE(R2f.y,R127f.x) + PV0f.y);
PV1f.y = R123f.y;
R123f.z = (mul_nonIEEE(R2f.x,R127f.x) + PV0f.z);
PV1f.z = R123f.z;
PV1f.w = PV0f.w + R127f.x;
// 4
backupReg0f = R0f.y;
R127f.x = (mul_nonIEEE(R0f.x,R127f.y) + PV1f.z);
PV0f.y = PV1f.w + R127f.y;
R127f.z = (mul_nonIEEE(R0f.z,R127f.y) + PV1f.x);
R127f.w = (mul_nonIEEE(backupReg0f,R127f.y) + PV1f.y);
// 5
PS1f = 1.0 / PV0f.y;
// 6
R1f.x = R127f.x * PS1f;
R1f.y = R127f.w * PS1f;
R1f.z = R127f.z * PS1f;
// export
passPixelColor0 = vec4(R1f.x, R1f.y, R1f.z, R1f.w);
}

View File

@ -0,0 +1,115 @@
<?php
include 'Source/functions.php';
$fullWidth = $argv[1];
$fullHeight = $argv[2];
$scaleFactorX = always_decimal_format($fullWidth / 1280.0);
$scaleFactorY = always_decimal_format($fullHeight / 720.0);
?>
#version 420
#extension GL_ARB_texture_gather : enable
#extension GL_ARB_separate_shader_objects : enable
// shader 75387173950c1793
//vert blur
const float resScale = <?=$scaleFactorX?>;
uniform ivec4 uf_remappedPS[1];
layout(binding = 0) uniform sampler2D textureUnitPS0;// Tex0 addr 0xf536f000 res 320x176x1 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()
{
vec4 R0f = vec4(0.0);
vec4 R1f = vec4(0.0);
vec4 R2f = vec4(0.0);
vec4 R3f = vec4(0.0);
vec4 R4f = vec4(0.0);
vec4 R123f = vec4(0.0);
float backupReg0f, backupReg1f, backupReg2f, backupReg3f, backupReg4f;
vec4 PV0f = vec4(0.0), PV1f = vec4(0.0);
float PS0f = 0.0, PS1f = 0.0;
vec4 tempf = vec4(0.0);
float tempResultf;
int tempResulti;
ivec4 ARi = ivec4(0);
bool predResult = true;
vec3 cubeMapSTM;
int cubeMapFaceId;
R0f = passParameterSem133;
R4f.xyzw = (texture(textureUnitPS0, R0f.xy).xyzw);
// 0
R1f.x = R0f.x;
R1f.y = R0f.y + intBitsToFloat(0x3ca2e8ba)/ resScale;
R2f.z = R0f.x;
R2f.y = R0f.y + intBitsToFloat(0x3c0ba2e9)/ resScale;
PS0f = R2f.y;
// 1
R3f.x = R0f.x;
R3f.y = R0f.y + -(intBitsToFloat(0x3ca2e8ba)/ resScale);
R0f.z = R0f.y + -(intBitsToFloat(0x3c0ba2e9)/ resScale);
R1f.xyzw = (texture(textureUnitPS0, R1f.xy).xyzw);
R2f.xyzw = (texture(textureUnitPS0, R2f.zy).xyzw);
R3f.xyzw = (texture(textureUnitPS0, R3f.xy).xyzw);
R0f.xyzw = (texture(textureUnitPS0, R0f.xz).xyzw);
// 0
PV0f.x = R1f.x * intBitsToFloat(0x3ee66666);
PV0f.y = R1f.y * intBitsToFloat(0x3ee66666);
PV0f.z = R1f.w * intBitsToFloat(0x3ee66666);
PV0f.w = R1f.z * intBitsToFloat(0x3ee66666);
// 1
R123f.x = (R4f.x * 1.0 + PV0f.x);
PV1f.x = R123f.x;
R123f.y = (R4f.y * 1.0 + PV0f.y);
PV1f.y = R123f.y;
R123f.z = (R4f.w * 1.0 + PV0f.z);
PV1f.z = R123f.z;
R123f.w = (R4f.z * 1.0 + PV0f.w);
PV1f.w = R123f.w;
// 2
R123f.x = (R2f.x * intBitsToFloat(0x3f4ccccd) + PV1f.x);
PV0f.x = R123f.x;
R123f.y = (R2f.w * intBitsToFloat(0x3f4ccccd) + PV1f.z);
PV0f.y = R123f.y;
R123f.z = (R2f.z * intBitsToFloat(0x3f4ccccd) + PV1f.w);
PV0f.z = R123f.z;
R123f.w = (R2f.y * intBitsToFloat(0x3f4ccccd) + PV1f.y);
PV0f.w = R123f.w;
// 3
R123f.x = (R3f.w * intBitsToFloat(0x3ee66666) + PV0f.y);
PV1f.x = R123f.x;
R123f.y = (R3f.x * intBitsToFloat(0x3ee66666) + PV0f.x);
PV1f.y = R123f.y;
R123f.z = (R3f.z * intBitsToFloat(0x3ee66666) + PV0f.z);
PV1f.z = R123f.z;
R123f.w = (R3f.y * intBitsToFloat(0x3ee66666) + PV0f.w);
PV1f.w = R123f.w;
// 4
R123f.x = (R0f.w * intBitsToFloat(0x3f4ccccd) + PV1f.x);
PV0f.x = R123f.x;
R123f.y = (R0f.z * intBitsToFloat(0x3f4ccccd) + PV1f.z);
PV0f.y = R123f.y;
R123f.z = (R0f.y * intBitsToFloat(0x3f4ccccd) + PV1f.w);
PV0f.z = R123f.z;
R123f.w = (R0f.x * intBitsToFloat(0x3f4ccccd) + PV1f.y);
PV0f.w = R123f.w;
// 5
PV1f.x = PV0f.x * intBitsToFloat(0x3e924925);
PV1f.y = PV0f.y * intBitsToFloat(0x3e924925);
PV1f.z = PV0f.z * intBitsToFloat(0x3e924925);
PV1f.w = PV0f.w * intBitsToFloat(0x3e924925);
// 6
R0f.x = mul_nonIEEE(PV1f.w, intBitsToFloat(uf_remappedPS[0].x));
R0f.y = mul_nonIEEE(PV1f.z, intBitsToFloat(uf_remappedPS[0].y));
R0f.z = mul_nonIEEE(PV1f.y, intBitsToFloat(uf_remappedPS[0].z));
R0f.w = mul_nonIEEE(PV1f.x, intBitsToFloat(uf_remappedPS[0].w));
// export
passPixelColor0 = vec4(R0f.x, R0f.y, R0f.z, R0f.w);
}

View File

@ -0,0 +1,131 @@
<?php
include 'Source/functions.php';
$fullWidth = $argv[1];
$fullHeight = $argv[2];
$scaleFactorX = always_decimal_format($fullWidth / 1280.0);
$scaleFactorY = always_decimal_format($fullHeight / 720.0);
?>
#version 420
#extension GL_ARB_texture_gather : enable
#extension GL_ARB_separate_shader_objects : enable
// shader 8a0efcdc3f556942
//halfres, pyarmid start
const float resScale = <?=$scaleFactorX?>;
uniform ivec4 uf_remappedPS[2];
layout(binding = 0) uniform sampler2D textureUnitPS0;// Tex0 addr 0xf451b000 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()
{
vec4 R0f = vec4(0.0);
vec4 R1f = vec4(0.0);
vec4 R123f = vec4(0.0);
vec4 R124f = vec4(0.0);
vec4 R125f = vec4(0.0);
vec4 R126f = vec4(0.0);
vec4 R127f = vec4(0.0);
float backupReg0f, backupReg1f, backupReg2f, backupReg3f, backupReg4f;
vec4 PV0f = vec4(0.0), PV1f = vec4(0.0);
float PS0f = 0.0, PS1f = 0.0;
vec4 tempf = vec4(0.0);
float tempResultf;
int tempResulti;
ivec4 ARi = ivec4(0);
bool predResult = true;
vec3 cubeMapSTM;
int cubeMapFaceId;
R0f = passParameterSem133;
// 0
backupReg0f = R0f.x;
backupReg1f = R0f.y;
backupReg0f = R0f.x;
backupReg1f = R0f.y;
R0f.x = (intBitsToFloat(uf_remappedPS[0].z) / resScale * 2.0 + backupReg0f);
R0f.y = (intBitsToFloat(uf_remappedPS[0].w) / resScale* 2.0 + backupReg1f);
R0f.z = (-(intBitsToFloat(uf_remappedPS[0].z) / resScale) * 2.0 + backupReg0f);
R0f.w = (-(intBitsToFloat(uf_remappedPS[0].w) / resScale) * 2.0 + backupReg1f);
R1f.xyzw = (texture(textureUnitPS0, R0f.xy).xyzw);
R0f.xyzw = (texture(textureUnitPS0, R0f.zw).xyzw);
// 0
backupReg0f = R0f.x;
backupReg1f = R0f.w;
PV0f.x = mul_nonIEEE(R0f.y, R0f.w);
PV0f.y = mul_nonIEEE(R1f.y, R1f.w);
PV0f.z = mul_nonIEEE(R1f.x, R1f.w);
PV0f.w = mul_nonIEEE(backupReg0f, backupReg1f);
R127f.x = mul_nonIEEE(R1f.z, R1f.w);
PS0f = R127f.x;
// 1
PV1f.x = max(PV0f.z, PV0f.w);
PV1f.y = mul_nonIEEE(R0f.z, R0f.w);
R127f.z = max(R1f.w, R0f.w);
PV1f.z = R127f.z;
PV1f.w = max(PV0f.y, PV0f.x);
R126f.x = -(intBitsToFloat(uf_remappedPS[1].x)) + intBitsToFloat(uf_remappedPS[1].z);
PS1f = R126f.x;
// 2
PV0f.x = -(R1f.x) + PV1f.x;
PV0f.y = -(R1f.w) + PV1f.z;
PV0f.z = max(R127f.x, PV1f.y);
PV0f.w = -(R1f.y) + PV1f.w;
R126f.z = -(intBitsToFloat(uf_remappedPS[1].y)) + intBitsToFloat(uf_remappedPS[1].w);
PS0f = R126f.z;
// 3
R127f.x = (mul_nonIEEE(PV0f.x,R127f.z) + R1f.x);
PV1f.x = R127f.x;
R127f.y = (mul_nonIEEE(PV0f.w,R127f.z) + R1f.y);
PV1f.y = R127f.y;
PV1f.z = -(R1f.z) + PV0f.z;
R127f.w = (mul_nonIEEE(PV0f.y,R127f.z) + R1f.w);
PV1f.w = R127f.w;
// 4
PV0f.x = max(PV1f.x, PV1f.y);
R126f.y = (mul_nonIEEE(R126f.z,PV1f.w) + intBitsToFloat(uf_remappedPS[1].y));
R123f.z = (mul_nonIEEE(PV1f.z,R127f.z) + R1f.z);
PV0f.z = R123f.z;
R126f.w = (mul_nonIEEE(R126f.x,PV1f.w) + intBitsToFloat(uf_remappedPS[1].x));
R125f.y = PV1f.x;
R125f.y *= 2.0;
PS0f = R125f.y;
// 5
backupReg0f = R127f.w;
R126f.x = R127f.y;
R126f.x *= 2.0;
R124f.y = PV0f.z;
R124f.y *= 2.0;
PV1f.z = PV0f.z * intBitsToFloat(0x3dea7371);
R127f.w = max(PV0f.z, PV0f.x);
R127f.w /= 2.0;
R1f.w = backupReg0f;
PS1f = R1f.w;
// 6
tempf.x = dot(vec4(R127f.x,R127f.y,PV1f.z,-0.0),vec4(intBitsToFloat(0x3e990afe),intBitsToFloat(0x3f162c23),1.0,0.0));
tempf.x /= 2.0;
PV0f.x = tempf.x;
PV0f.y = tempf.x;
PV0f.z = tempf.x;
PV0f.w = tempf.x;
// 7
PV1f.z = R127f.w + PV0f.x;
// 8
PV0f.y = -(R126f.w) + PV1f.z;
// 9
PV1f.x = mul_nonIEEE(R126f.y, PV0f.y);
PV1f.x = clamp(PV1f.x, 0.0, 1.0);
// 10
R1f.x = mul_nonIEEE(R125f.y, PV1f.x);
R1f.y = mul_nonIEEE(R126f.x, PV1f.x);
R1f.z = mul_nonIEEE(R124f.y, PV1f.x);
// export
passPixelColor0 = vec4(R1f.x, R1f.y, R1f.z, R1f.w);
}

View File

@ -12,34 +12,58 @@ titleIds = 0005000010172600,0005000010172700,000500001011B900
name = "Bayonetta 2 - <?=$title?>"
version = 2
[TextureRedefine] # tv
width = 1280
[TextureRedefine] # game rendering resolution. #Change this value
width = 1280
height = 720
tileModesExcluded = 0x001
overwriteWidth = <?=round($scaleFactorX*1280)?>
overwriteHeight = <?=round($scaleFactorY*720)?>
[TextureRedefine]#half-res
width = 640
#[TextureRedefine] # No gamepad view found in B, uncommented
#width = 854
#height = 480
#overwriteWidth = 2560
#overwriteHeight = 1440
[TextureRedefine] # FMV, bloom/blur initial step
width = 640
height = 360
tileModesExcluded = 0x001
tileModesExcluded = 0x001
overwriteWidth = <?=round($scaleFactorX*640)?>
overwriteHeight = <?=round($scaleFactorY*360)?>
[TextureRedefine]#q-res1
width = 320
height = 176
overwriteWidth = <?=round($scaleFactorX*320)?>
overwriteHeight = <?=round($scaleFactorY*176)?>
[TextureRedefine]#q-res2
width = 320
[TextureRedefine] # Bloom/blur pyaramid
width = 320
height = 180
overwriteWidth = <?=round($scaleFactorX*320)?>
overwriteHeight = <?=round($scaleFactorY*180)?>
[TextureRedefine] # gamepad
width = 854
height = 480
#overwriteWidth = <?=round($scaleFactorX*1280)?>
#overwriteHeight = <?=round($scaleFactorY*720)?>
[TextureRedefine] # Bloom/blur pyaramid
width = 320
height = 176
overwriteWidth = <?=round($scaleFactorX*320)?>
overwriteHeight = <?=round($scaleFactorY*176)?>
[TextureRedefine] #Bloom/blur pyaramid
width = 160
height = 80
overwriteWidth = <?=round($scaleFactorX*160)?>
overwriteHeight = <?=round($scaleFactorY*80)?>
[TextureRedefine] # Bloom/blur pyaramid
width = 80
height = 48
overwriteWidth = <?=round($scaleFactorX*80)?>
overwriteHeight = <?=round($scaleFactorY*48)?>
[TextureRedefine] # Bloom/blur pyaramid
width = 48
height = 32
overwriteWidth = <?=round($scaleFactorX*48)?>
overwriteHeight = <?=round($scaleFactorY*32)?>
[TextureRedefine] # Bloom/blur pyaramid
width = 32
height = 16
overwriteWidth = <?=round($scaleFactorX*32)?>
overwriteHeight = <?=round($scaleFactorY*16)?>

View File

@ -24,7 +24,7 @@ overwriteHeight = <?=round($scaleFactorY*720)?>
[TextureRedefine] #TV
width = 1280
height = 720
formatsExcluded = 0x008,0x19,0x1a # exclude the intro background texture
formatsExcluded = 0x008,0x19,0x1a,0x431 # exclude the intro background texture, champions' photo
tileModesExcluded = 0x001
overwriteWidth = <?=round($scaleFactorX*1280)?>
overwriteHeight = <?=round($scaleFactorY*720)?>

View File

@ -0,0 +1,235 @@
<?php
include 'Source/functions.php';
$fullWidth = $argv[1];
$fullHeight = $argv[2];
$scaleFactorX = always_decimal_format($fullWidth / 1280.0);
$scaleFactorY = always_decimal_format($fullHeight / 720.0);
?>
#version 420
#extension GL_ARB_texture_gather : enable
#extension GL_ARB_separate_shader_objects : enable
// shader b4196905d6fff2bb
const float resScale = <?=$scaleFactorX?>;
uniform ivec4 uf_remappedPS[12];
layout(binding = 0) uniform sampler2D textureUnitPS0;// Tex0 addr 0xf4240800 res 1280x720x1 dim 1 tm: 4 format 080e compSel: 0 4 4 5 mipView: 0x0 (num 0x1) sliceView: 0x0 (num 0x1) Sampler0 ClampX/Y/Z: 2 2 2 border: 1
layout(binding = 1) uniform sampler2DArrayShadow textureUnitPS1;// Tex1 addr 0xf494a800 res 2048x2048x1 dim 5 tm: 4 format 0005 compSel: 0 4 4 5 mipView: 0x0 (num 0x1) sliceView: 0x0 (num 0x1) Sampler1 ClampX/Y/Z: 6 6 6 border: 2
layout(binding = 2) uniform sampler2D textureUnitPS2;// Tex2 addr 0x17f95000 res 4x4x1 dim 1 tm: 2 format 001a compSel: 0 1 2 3 mipView: 0x0 (num 0x1) sliceView: 0x0 (num 0x1) Sampler2 ClampX/Y/Z: 2 2 2 border: 1
layout(location = 0) noperspective in vec4 passParameterSem0;
layout(location = 1) noperspective in vec4 passParameterSem4;
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()
{
vec4 R0f = vec4(0.0);
vec4 R1f = vec4(0.0);
vec4 R2f = vec4(0.0);
vec4 R3f = vec4(0.0);
vec4 R4f = vec4(0.0);
vec4 R5f = vec4(0.0);
vec4 R6f = vec4(0.0);
vec4 R123f = vec4(0.0);
vec4 R124f = vec4(0.0);
vec4 R125f = vec4(0.0);
vec4 R126f = vec4(0.0);
vec4 R127f = vec4(0.0);
float backupReg0f, backupReg1f, backupReg2f, backupReg3f, backupReg4f;
vec4 PV0f = vec4(0.0), PV1f = vec4(0.0);
float PS0f = 0.0, PS1f = 0.0;
vec4 tempf = vec4(0.0);
float tempResultf;
int tempResulti;
ivec4 ARi = ivec4(0);
bool predResult = true;
vec3 cubeMapSTM;
int cubeMapFaceId;
R0f = passParameterSem0;
R1f = passParameterSem4;
R0f.w = (texture(textureUnitPS0, R1f.xy).x);
// 0
R125f.x = 1.0;
PV0f.y = intBitsToFloat(uf_remappedPS[0].w);
PV0f.y /= 2.0;
PV0f.z = intBitsToFloat(uf_remappedPS[0].z);
PV0f.z /= 2.0;
R123f.w = (mul_nonIEEE(-(R0f.w),intBitsToFloat(uf_remappedPS[1].y)) + 1.0);
PV0f.w = R123f.w;
R127f.x = -(intBitsToFloat(uf_remappedPS[0].z)/resScale);
R127f.x /= 2.0;
PS0f = R127f.x;
// 1
R126f.x = 0.0;
R127f.y = mul_nonIEEE(intBitsToFloat(uf_remappedPS[0].x)/resScale, PV0f.y);
R126f.z = mul_nonIEEE(intBitsToFloat(uf_remappedPS[0].x)/resScale, PV0f.z);
PV1f.w = -(intBitsToFloat(uf_remappedPS[0].w)/resScale);
PV1f.w /= 2.0;
PS1f = 1.0 / PV0f.w;
// 2
backupReg0f = R127f.x;
R127f.x = mul_nonIEEE(intBitsToFloat(uf_remappedPS[0].x)/resScale, backupReg0f);
PV0f.y = -(intBitsToFloat(uf_remappedPS[1].x)) * PS1f;
R1f.z = roundEven(0.0);
PV0f.z = R1f.z;
R126f.w = mul_nonIEEE(intBitsToFloat(uf_remappedPS[0].x)/resScale, PV1f.w);
// 3
R5f.x = mul_nonIEEE(R0f.x, PV0f.y);
PV1f.x = R5f.x;
R5f.y = mul_nonIEEE(R0f.y, PV0f.y);
PV1f.y = R5f.y;
R124f.z = PV0f.y;
PV1f.z = R124f.z;
R125f.w = -(PV0f.y) + -(intBitsToFloat(uf_remappedPS[2].x));
R2f.z = PV0f.z;
PS1f = R2f.z;
// 4
tempf.x = dot(vec4(PV1f.x,PV1f.y,PV1f.z,R125f.x),vec4(intBitsToFloat(uf_remappedPS[3].x),intBitsToFloat(uf_remappedPS[3].y),intBitsToFloat(uf_remappedPS[3].z),intBitsToFloat(uf_remappedPS[3].w)));
PV0f.x = tempf.x;
PV0f.y = tempf.x;
PV0f.z = tempf.x;
PV0f.w = tempf.x;
R3f.z = R1f.z;
PS0f = R3f.z;
// 5
tempf.x = dot(vec4(R5f.x,R5f.y,R124f.z,R125f.x),vec4(intBitsToFloat(uf_remappedPS[4].x),intBitsToFloat(uf_remappedPS[4].y),intBitsToFloat(uf_remappedPS[4].z),intBitsToFloat(uf_remappedPS[4].w)));
PV1f.x = tempf.x;
PV1f.y = tempf.x;
PV1f.z = tempf.x;
PV1f.w = tempf.x;
R125f.z = 1.0 / PV0f.x;
PS1f = R125f.z;
// 6
tempf.x = dot(vec4(R5f.x,R5f.y,R124f.z,R125f.x),vec4(intBitsToFloat(uf_remappedPS[5].x),intBitsToFloat(uf_remappedPS[5].y),intBitsToFloat(uf_remappedPS[5].z),intBitsToFloat(uf_remappedPS[5].w)));
PV0f.x = tempf.x;
PV0f.y = tempf.x;
PV0f.z = tempf.x;
PV0f.w = tempf.x;
R127f.z = 1.0 / PV1f.x;
PS0f = R127f.z;
// 7
tempf.x = dot(vec4(R5f.x,R5f.y,R124f.z,R125f.x),vec4(intBitsToFloat(uf_remappedPS[6].x),intBitsToFloat(uf_remappedPS[6].y),intBitsToFloat(uf_remappedPS[6].z),intBitsToFloat(uf_remappedPS[6].w)));
PV1f.x = tempf.x;
PV1f.y = tempf.x;
PV1f.z = tempf.x;
PV1f.w = tempf.x;
R127f.w = PV0f.x * R125f.z;
PS1f = R127f.w;
// 8
tempf.x = dot(vec4(R5f.x,R5f.y,R124f.z,R125f.x),vec4(intBitsToFloat(uf_remappedPS[7].x),intBitsToFloat(uf_remappedPS[7].y),intBitsToFloat(uf_remappedPS[7].z),intBitsToFloat(uf_remappedPS[7].w)));
PV0f.x = tempf.x;
PV0f.y = tempf.x;
PV0f.z = tempf.x;
PV0f.w = tempf.x;
R0f.x = mul_nonIEEE(PV1f.x, R127f.z);
PS0f = R0f.x;
// 9
backupReg0f = R127f.x;
R127f.x = mul_nonIEEE(R127f.w, R127f.y);
PV1f.x = R127f.x;
R0f.y = mul_nonIEEE(PV0f.x, R127f.z);
R127f.z = R127f.w + R126f.x;
R124f.w = mul_nonIEEE(R127f.w, R126f.z);
R126f.x = mul_nonIEEE(R127f.w, backupReg0f);
PS1f = R126f.x;
// 10
tempf.x = dot(vec4(R5f.x,R5f.y,R124f.z,R125f.x),vec4(intBitsToFloat(uf_remappedPS[8].x),intBitsToFloat(uf_remappedPS[8].y),intBitsToFloat(uf_remappedPS[8].z),intBitsToFloat(uf_remappedPS[8].w)));
PV0f.x = tempf.x;
PV0f.y = tempf.x;
PV0f.z = tempf.x;
PV0f.w = tempf.x;
R126f.z = PV1f.x;
PS0f = R126f.z;
// 11
tempf.x = dot(vec4(R5f.x,R5f.y,R124f.z,R125f.x),vec4(intBitsToFloat(uf_remappedPS[9].x),intBitsToFloat(uf_remappedPS[9].y),intBitsToFloat(uf_remappedPS[9].z),intBitsToFloat(uf_remappedPS[9].w)));
PV1f.x = tempf.x;
PV1f.y = tempf.x;
PV1f.z = tempf.x;
PV1f.w = tempf.x;
R127f.y = PV0f.x * R125f.z;
PS1f = R127f.y;
// 12
R124f.x = PV1f.x * R125f.z;
PV0f.x = R124f.x;
R126f.y = mul_nonIEEE(R127f.w, R126f.w);
R4f.z = R1f.z;
R127f.w = R127f.z;
R127f.w = clamp(R127f.w, 0.0, 1.0);
PV0f.w = R127f.w;
R1f.x = PS1f + R124f.w;
PS0f = R1f.x;
// 13
R2f.x = R127f.y + R126f.x;
R1f.y = PV0f.x + R126f.z;
R5f.z = mul_nonIEEE(intBitsToFloat(uf_remappedPS[2].z), R125f.w);
R5f.z = clamp(R5f.z, 0.0, 1.0);
R1f.w = PV0f.w;
R2f.y = PV0f.x + R127f.x;
PS1f = R2f.y;
// 14
R3f.x = R127f.y + R124f.w;
R3f.y = R124f.x + R126f.y;
PV0f.z = mul_nonIEEE(R125f.x, intBitsToFloat(uf_remappedPS[10].w));
R2f.w = R127f.w;
R3f.w = R127f.w;
PS0f = R3f.w;
// 15
R4f.x = R127f.y + R126f.x;
R4f.y = R124f.x + R126f.y;
R0f.z = (mul_nonIEEE(R124f.z,intBitsToFloat(uf_remappedPS[10].z)) + PV0f.z);
R4f.w = R127f.w;
R6f.x = intBitsToFloat(uf_remappedPS[11].x);
PS1f = R6f.x;
R0f.xy = (texture(textureUnitPS2, R0f.xy).xy);
R1f.z = (texture(textureUnitPS1, vec4(R1f.x,R1f.y,R1f.z,R1f.w)));
R2f.y = (texture(textureUnitPS1, vec4(R2f.x,R2f.y,R2f.z,R2f.w)));
R3f.x = (texture(textureUnitPS1, vec4(R3f.x,R3f.y,R3f.z,R3f.w)));
R4f.w = (texture(textureUnitPS1, vec4(R4f.x,R4f.y,R4f.z,R4f.w)));
// 0
backupReg0f = R0f.z;
backupReg1f = R0f.x;
backupReg1f = R0f.x;
backupReg2f = R0f.y;
tempf.x = dot(vec4(R5f.x,R5f.y,backupReg0f,0.0),vec4(intBitsToFloat(uf_remappedPS[10].x),intBitsToFloat(uf_remappedPS[10].y),1.0,0.0));
PV0f.x = tempf.x;
PV0f.y = tempf.x;
PV0f.z = tempf.x;
PV0f.w = tempf.x;
R127f.w = (mul_nonIEEE(-(backupReg1f),backupReg1f) + backupReg2f);
PS0f = R127f.w;
// 1
PV1f.z = R1f.z + R2f.y;
PV1f.z /= 2.0;
PV1f.w = min(PV0f.x, 1.0);
R6f.w = intBitsToFloat(uf_remappedPS[11].w);
PS1f = R6f.w;
// 2
R123f.y = (R3f.x * 0.5 + PV1f.z);
PV0f.y = R123f.y;
PV0f.z = PV1f.w + -(R0f.x);
// 3
R123f.x = (R4f.w * 0.5 + PV0f.y)/2.0;
PV1f.x = R123f.x;
R123f.y = (mul_nonIEEE(PV0f.z,PV0f.z) + R127f.w);
PV1f.y = R123f.y;
R124f.z = (0.0 >= PV0f.z)?1.0:0.0;
// 4
R6f.y = R5f.z + PV1f.x;
PS0f = 1.0 / PV1f.y;
// 5
PV1f.w = R127f.w * PS0f;
// 6
PV0f.y = max(PV1f.w, R124f.z);
// 7
PV1f.x = min(PV0f.y, 1.0);
// 8
R6f.z = R5f.z + PV1f.x;
// export
passPixelColor0 = vec4(R6f.x, R6f.y, R6f.z, R6f.w);
}

View File

@ -104,3 +104,18 @@ height = 90
formats = 0x816
overwriteWidth = <?=round($scaleFactorX*160)?>
overwriteHeight = <?=round($scaleFactorY*90)?>
[TextureRedefine]
width = 1024
height = 1024
formats = 0x005
overwriteWidth = <?=round($scaleFactorX*1024)?>
overwriteHeight = <?=round($scaleFactorY*1024)?>
[TextureRedefine]
width = 2048
height = 2048
formats = 0x005
overwriteWidth = <?=round($scaleFactorX*2048)?>
overwriteHeight = <?=round($scaleFactorY*2048)?>