From e8c17a306f3ca7daaa2972cb39da6df4efe1e24a Mon Sep 17 00:00:00 2001 From: getdls Date: Wed, 31 Oct 2018 18:52:22 +0100 Subject: [PATCH] Bayonetta 1.4.x - Source --- .../117889891fd19c30_000000000000001e_ps.txt | 125 +++++ .../212e4514290f2693_0000000000000079_ps.txt | 107 ++++ .../51f398ee2e3e18a6_0000000000000079_ps.txt | 108 ++++ .../6e828da50daedc79_00000000000003c9_ps.txt | 311 +++++++++++ .../9d1d7119cc2a1bc5_00000000000003c9_ps.txt | 520 ++++++++++++++++++ .../f015876e4c8e82f9_000000000000001e_ps.txt | 124 +++++ Source/Bayonetta/rules.txt | 213 +++++++ 7 files changed, 1508 insertions(+) create mode 100644 Source/Bayonetta/117889891fd19c30_000000000000001e_ps.txt create mode 100644 Source/Bayonetta/212e4514290f2693_0000000000000079_ps.txt create mode 100644 Source/Bayonetta/51f398ee2e3e18a6_0000000000000079_ps.txt create mode 100644 Source/Bayonetta/6e828da50daedc79_00000000000003c9_ps.txt create mode 100644 Source/Bayonetta/9d1d7119cc2a1bc5_00000000000003c9_ps.txt create mode 100644 Source/Bayonetta/f015876e4c8e82f9_000000000000001e_ps.txt create mode 100644 Source/Bayonetta/rules.txt diff --git a/Source/Bayonetta/117889891fd19c30_000000000000001e_ps.txt b/Source/Bayonetta/117889891fd19c30_000000000000001e_ps.txt new file mode 100644 index 00000000..b7d0d514 --- /dev/null +++ b/Source/Bayonetta/117889891fd19c30_000000000000001e_ps.txt @@ -0,0 +1,125 @@ +#version 420 +#extension GL_ARB_texture_gather : enable +#extension GL_ARB_separate_shader_objects : enable +// shader 117889891fd19c30 +//menu +const float resScale = ($height/$gameHeight); +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); +} diff --git a/Source/Bayonetta/212e4514290f2693_0000000000000079_ps.txt b/Source/Bayonetta/212e4514290f2693_0000000000000079_ps.txt new file mode 100644 index 00000000..4dd6ffe2 --- /dev/null +++ b/Source/Bayonetta/212e4514290f2693_0000000000000079_ps.txt @@ -0,0 +1,107 @@ +#version 420 +#extension GL_ARB_texture_gather : enable +#extension GL_ARB_separate_shader_objects : enable +// shader 212e4514290f2693 +const float resScale = ($height/$gameHeight); +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); +} diff --git a/Source/Bayonetta/51f398ee2e3e18a6_0000000000000079_ps.txt b/Source/Bayonetta/51f398ee2e3e18a6_0000000000000079_ps.txt new file mode 100644 index 00000000..b1229af0 --- /dev/null +++ b/Source/Bayonetta/51f398ee2e3e18a6_0000000000000079_ps.txt @@ -0,0 +1,108 @@ +#version 420 +#extension GL_ARB_texture_gather : enable +#extension GL_ARB_separate_shader_objects : enable +// shader 51f398ee2e3e18a6 +//blur vert +const float resScale = ($height/$gameHeight); +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); +} diff --git a/Source/Bayonetta/6e828da50daedc79_00000000000003c9_ps.txt b/Source/Bayonetta/6e828da50daedc79_00000000000003c9_ps.txt new file mode 100644 index 00000000..c761caec --- /dev/null +++ b/Source/Bayonetta/6e828da50daedc79_00000000000003c9_ps.txt @@ -0,0 +1,311 @@ +#version 420 +#extension GL_ARB_texture_gather : enable +#extension GL_ARB_separate_shader_objects : enable +// shader 6e828da50daedc79 +// cut scene blur +const float resScale = ($height/$gameHeight); +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); +} diff --git a/Source/Bayonetta/9d1d7119cc2a1bc5_00000000000003c9_ps.txt b/Source/Bayonetta/9d1d7119cc2a1bc5_00000000000003c9_ps.txt new file mode 100644 index 00000000..87610210 --- /dev/null +++ b/Source/Bayonetta/9d1d7119cc2a1bc5_00000000000003c9_ps.txt @@ -0,0 +1,520 @@ +#version 420 +#extension GL_ARB_texture_gather : enable +#extension GL_ARB_separate_shader_objects : enable +// shader 9d1d7119cc2a1bc5 +//film simulation blur +const float resScale = ($height/$gameHeight) ; +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); +} diff --git a/Source/Bayonetta/f015876e4c8e82f9_000000000000001e_ps.txt b/Source/Bayonetta/f015876e4c8e82f9_000000000000001e_ps.txt new file mode 100644 index 00000000..35e2cfb1 --- /dev/null +++ b/Source/Bayonetta/f015876e4c8e82f9_000000000000001e_ps.txt @@ -0,0 +1,124 @@ +#version 420 +#extension GL_ARB_texture_gather : enable +#extension GL_ARB_separate_shader_objects : enable +// shader f015876e4c8e82f9 +//menu 2d blur +const float resScale = ($height/$gameHeight); +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); +} diff --git a/Source/Bayonetta/rules.txt b/Source/Bayonetta/rules.txt new file mode 100644 index 00000000..131d8a7f --- /dev/null +++ b/Source/Bayonetta/rules.txt @@ -0,0 +1,213 @@ +[Definition] +titleIds = 000500001014DB00,0005000010157E00,0005000010157F00 +name = Resolution +path = "Bayonetta/Graphics/Resolution " +description = Changes the resolution of the game. +version = 3 + +[[Preset] +name = 1280x720 (Default) +$width = 1280 +$height = 720 +$gameWidth = 1280 +$gameHeight = 720 + +// Performance + +[Preset] +name = 256x144 +$width = 256 +$height = 144 +$gameWidth = 1280 +$gameHeight = 720 + +[Preset] +name = 427x240 +$width = 427 +$height = 240 +$gameWidth = 1280 +$gameHeight = 720 + +[Preset] +name = 640x360 +$width = 640 +$height = 360 +$gameWidth = 1280 +$gameHeight = 720 + +[Preset] +name = 854x480 +$width = 854 +$height = 480 +$gameWidth = 1280 +$gameHeight = 720 + +[Preset] +name = 960x540 +$width = 960 +$height = 540 +$gameWidth = 1280 +$gameHeight = 720 + +// Quality + +[Preset] +name = 1920x1080 (HD) +$width = 1920 +$height = 1080 +$gameWidth = 1280 +$gameHeight = 720 + +[Preset] +name = 1600x900 +$width = 1600 +$height = 900 +$gameWidth = 1280 +$gameHeight = 720 + +[Preset] +name = 2560x1440 (Native x2) +$width = 2560 +$height = 1440 +$gameWidth = 1280 +$gameHeight = 720 + +[Preset] +name = 2732x1536 +$width = 2732 +$height = 1536 +$gameWidth = 1280 +$gameHeight = 720 + +[Preset] +name = 3200x1800 +$width = 3200 +$height = 1800 +$gameWidth = 1280 +$gameHeight = 720 + +[Preset] +name = 3840x2160 (4k - Native x3) +$width = 3840 +$height = 2160 +$gameWidth = 1280 +$gameHeight = 720 + +[Preset] +name = 5120x2880 +$width = 5120 +$height = 2880 +$gameWidth = 1280 +$gameHeight = 720 + +// Enthusiast + +[Preset] +name = 7680x4320 +$width = 7680 +$height = 4320 +$gameWidth = 1280 +$gameHeight = 720 + +[Preset] +name = 10240x5760 +$width = 10240 +$height = 5760 +$gameWidth = 1280 +$gameHeight = 720 + + +[TextureRedefine] +width = 1280 +height = 720 +#formats = 0x80e,0x001,0x01a +tileModesExcluded = 0x001 +overwriteWidth = ($width/$gameWidth) * 1280 +overwriteHeight = ($height/$gameHeight) * 720 + +[TextureRedefine] +width = 640 +height = 360 +#formats = 0x001,0x01a +tileModesExcluded = 0x001 +overwriteWidth = ($width/$gameWidth) * 640 +overwriteHeight = ($height/$gameHeight) * 360 + +#640x352 + +[TextureRedefine] +width = 320 +height = 176 +#formats = 0x01a +overwriteWidth = ($width/$gameWidth) * 320 +overwriteHeight = ($height/$gameHeight) * 176 + +#[TextureRedefine] #May unintentionally scale textures +#width = 256 +#height = 256 +#formatsExcluded = 0x033,0x032,0x031,0x01a,0x001 +#overwriteWidth = ($width/$gameWidth) * 256 +#overwriteHeight = ($height/$gameHeight) * 256 + +[TextureRedefine] +width = 160 +height = 80 +#formats = +overwriteWidth = ($width/$gameWidth) * 160 +overwriteHeight = ($height/$gameHeight) * 80 + +#[TextureRedefine] #May unintentionally scale textures +#width = 128 +#height = 128 +#formatsExcluded = 0x033,0x031,0x01a,0x001 +#overwriteWidth = ($width/$gameWidth) * 128 +#overwriteHeight = ($height/$gameHeight) * 128 + +[TextureRedefine] +width = 96 +height = 48 +#formats = 0x01a +overwriteWidth = ($width/$gameWidth) * 96 +overwriteHeight = ($height/$gameHeight) * 48 + +[TextureRedefine] +width = 80 +height = 48 +#formats = +overwriteWidth = ($width/$gameWidth) * 80 +overwriteHeight = ($height/$gameHeight) * 48 + +[TextureRedefine] ## +width = 64 +height = 32 +#formats = 0x01a +overwriteWidth = ($width/$gameWidth) * 64 +overwriteHeight = ($height/$gameHeight) * 32 + +[TextureRedefine] +width = 48 +height = 32 +#formats = +overwriteWidth = ($width/$gameWidth) * 48 +overwriteHeight = ($height/$gameHeight) * 32 + +#[TextureRedefine] # +#width = 32 +#height = 32 +#formatsExcluded = 0x031,0x002,0x001,0x01a +#overwriteWidth = ($width/$gameWidth) * 32 +#overwriteHeight = ($height/$gameHeight) * 32 + +[TextureRedefine] +width = 32 +height = 16 +#formats = +overwriteWidth = ($width/$gameWidth) * 32 +overwriteHeight = ($height/$gameHeight) * 16 + +[TextureRedefine] # +width = 8 +height = 8 +formatsExcluded = +overwriteWidth = ($width/$gameWidth) * 8 +overwriteHeight = ($height/$gameHeight) * 8