From d8964c6878c377f68831cdf04539d8b6974e0584 Mon Sep 17 00:00:00 2001 From: getdls Date: Sat, 3 Nov 2018 10:16:09 +0100 Subject: [PATCH] [NG3] Fix truncation in scaling VS Looks like all VS are using int devision they need to be in float for uneven resolutions. --- Source/NinjaGaiden3/7a641a67c4009f7f_0000000000000000_vs.txt | 5 +++-- Source/NinjaGaiden3/fd6c2e800481a180_0000000000000000_vs.txt | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Source/NinjaGaiden3/7a641a67c4009f7f_0000000000000000_vs.txt b/Source/NinjaGaiden3/7a641a67c4009f7f_0000000000000000_vs.txt index 981da8fd..0f638a36 100644 --- a/Source/NinjaGaiden3/7a641a67c4009f7f_0000000000000000_vs.txt +++ b/Source/NinjaGaiden3/7a641a67c4009f7f_0000000000000000_vs.txt @@ -4,8 +4,9 @@ #extension GL_ARB_shading_language_packing : enable // shader 7a641a67c4009f7f //Blur -const float resXScale = ($width/$gameWidth); -const float resYScale = ($height/$gameHeight); + +const float resXScale = intBitsToFloat($width)/intBitsToFloat($gameWidth); +const float resYScale = intBitsToFloat($height)/intBitsToFloat($gameHeight); uniform ivec4 uf_remappedVS[8]; uniform vec2 uf_windowSpaceToClipSpaceTransform; diff --git a/Source/NinjaGaiden3/fd6c2e800481a180_0000000000000000_vs.txt b/Source/NinjaGaiden3/fd6c2e800481a180_0000000000000000_vs.txt index 9a471e23..d8b464fa 100644 --- a/Source/NinjaGaiden3/fd6c2e800481a180_0000000000000000_vs.txt +++ b/Source/NinjaGaiden3/fd6c2e800481a180_0000000000000000_vs.txt @@ -4,8 +4,8 @@ #extension GL_ARB_shading_language_packing : enable // shader fd6c2e800481a180 //Cinematic bloom -const float resXScale = ($width/$gameWidth); -const float resYScale = ($height/$gameHeight); +const float resXScale = intBitsToFloat($width)/intBitsToFloat($gameWidth); +const float resYScale = intBitsToFloat($height)/intBitsToFloat($gameHeight); uniform ivec4 uf_remappedVS[8];