From 774b0a2fe706833c55ae0c928f91ef6b526dd05d Mon Sep 17 00:00:00 2001 From: Skal Fate <20464880+skalfate@users.noreply.github.com> Date: Fri, 30 Nov 2018 20:19:14 -0700 Subject: [PATCH] Botw Inventory AA Fixup (#285) * Delete disabled_58b8411478181d7f_0000000000000079_ps.txt not needed * Delete disabled_58b84124c01721ff_0000000000000079_ps.txt not needed * Update 0f2b9ee517917425_00000000000003c9_ps.txt Inventory AA Fixup for 1080p by rounding up . Anything between 720p-1080p (1.0-1.5) would get rounded down to 1.0 and therefore messy/fuzzy inventory especially in 1080p. The reason it got rounded down is because all the vector data types are initialized as integers instead of normal floats for accuracy. * Update rules.txt Added 1600x900 resolution per request, that resolution no longer glitches out due to cemu workaround. We may never know now lol. --- .../0f2b9ee517917425_00000000000003c9_ps.txt | 6 +++--- ...led_58b8411478181d7f_0000000000000079_ps.txt | 17 ----------------- ...led_58b84124c01721ff_0000000000000079_ps.txt | 17 ----------------- .../BreathOfTheWild_Resolution/rules.txt | 7 +++++++ 4 files changed, 10 insertions(+), 37 deletions(-) delete mode 100644 Enhancements/BreathOfTheWild_!AntiAliasing/disabled_58b8411478181d7f_0000000000000079_ps.txt delete mode 100644 Enhancements/BreathOfTheWild_!AntiAliasing/disabled_58b84124c01721ff_0000000000000079_ps.txt diff --git a/Enhancements/BreathOfTheWild_!AntiAliasing/0f2b9ee517917425_00000000000003c9_ps.txt b/Enhancements/BreathOfTheWild_!AntiAliasing/0f2b9ee517917425_00000000000003c9_ps.txt index ba6f9555..b393af7d 100644 --- a/Enhancements/BreathOfTheWild_!AntiAliasing/0f2b9ee517917425_00000000000003c9_ps.txt +++ b/Enhancements/BreathOfTheWild_!AntiAliasing/0f2b9ee517917425_00000000000003c9_ps.txt @@ -25,8 +25,8 @@ layout(location = 0) in vec4 passParameterSem2; layout(location = 0) out vec4 passPixelColor0; uniform vec2 uf_fragCoordScale; ivec2 resDim = textureSize2D(textureUnitPS0,0); -const float resXScale = float(resDim.x)/1280; -const float resYScale = float(resDim.y)/720; +const int resXScale = int( float(resDim.x)/1280 + 0.5 ); //We need to round up +const int resYScale = int( float(resDim.y)/720 + 0.5 ); //We need to round up int clampFI32(int v) { if( v == 0x7FFFFFFF ) @@ -1014,4 +1014,4 @@ void main() { passPixelColor0 = FxaaPixelShader(passParameterSem2.xy, textureUnitPS0, textureUnitPS1, RcpFrame, Subpix, EdgeThreshold, EdgeThresholdMin); } -#endif \ No newline at end of file +#endif diff --git a/Enhancements/BreathOfTheWild_!AntiAliasing/disabled_58b8411478181d7f_0000000000000079_ps.txt b/Enhancements/BreathOfTheWild_!AntiAliasing/disabled_58b8411478181d7f_0000000000000079_ps.txt deleted file mode 100644 index ac9a3b8f..00000000 --- a/Enhancements/BreathOfTheWild_!AntiAliasing/disabled_58b8411478181d7f_0000000000000079_ps.txt +++ /dev/null @@ -1,17 +0,0 @@ -#version 420 -#extension GL_ARB_texture_gather : enable -// shader 58b8411478181d7f - -layout(binding = 0) uniform sampler2D textureUnitPS0; -layout(location = 0) in vec4 passParameterSem2; -layout(location = 0) out vec4 passPixelColor0; -uniform vec2 uf_fragCoordScale; - -void main() -{ -vec3 R0f = texture(textureUnitPS0, passParameterSem2.xy).xyz; -R0f.x = dot(R0f, vec3(0.299, 0.587, 0.114)); -R0f.x = pow(R0f.x, 0.45); -// export -passPixelColor0 = vec4(R0f.x); -} diff --git a/Enhancements/BreathOfTheWild_!AntiAliasing/disabled_58b84124c01721ff_0000000000000079_ps.txt b/Enhancements/BreathOfTheWild_!AntiAliasing/disabled_58b84124c01721ff_0000000000000079_ps.txt deleted file mode 100644 index 3531da5e..00000000 --- a/Enhancements/BreathOfTheWild_!AntiAliasing/disabled_58b84124c01721ff_0000000000000079_ps.txt +++ /dev/null @@ -1,17 +0,0 @@ -#version 420 -#extension GL_ARB_texture_gather : enable -// shader 58b84124c01721ff - -layout(binding = 0) uniform sampler2D textureUnitPS0; -layout(location = 0) in vec4 passParameterSem2; -layout(location = 0) out vec4 passPixelColor0; -uniform vec2 uf_fragCoordScale; - -void main() -{ -vec3 R0f = texture(textureUnitPS0, passParameterSem2.xy).xyz; -R0f.x = dot(R0f, vec3(0.299, 0.587, 0.114)); -R0f.x = pow(R0f.x, 0.45); -// export -passPixelColor0 = vec4(R0f.x); -} diff --git a/Resolutions/BreathOfTheWild_Resolution/rules.txt b/Resolutions/BreathOfTheWild_Resolution/rules.txt index e3787b7a..b7c8e862 100644 --- a/Resolutions/BreathOfTheWild_Resolution/rules.txt +++ b/Resolutions/BreathOfTheWild_Resolution/rules.txt @@ -37,6 +37,13 @@ $gameHeight = 720 // Common HD Resolutions +[Preset] +name = 1600x900 +$width = 1600 +$height = 900 +$gameWidth = 1280 +$gameHeight = 720 + [Preset] name = 1920x1080 $width = 1920