From 4bfe35cd13b83cdb6ffcd6ad6bc07e4ed9101c04 Mon Sep 17 00:00:00 2001 From: Michele Date: Wed, 1 Jan 2020 11:50:33 -0800 Subject: [PATCH] [Splatoon] Fix lower resolutions --- .../0b9b8f5dfa16ad58_0000000000000000_vs.txt | 4 ++-- .../5c1761d13feccdff_0000000000000000_vs.txt | 4 ++-- .../6f5412f28bd716e8_0000000000000000_vs.txt | 4 ++-- .../a0bda935c83e6f2a_0000000000000000_vs.txt | 4 ++-- .../ae5bf21625f134f3_0000000000000000_vs.txt | 6 +++--- .../fc3e63a2007625f8_0000000000000000_vs.txt | 4 ++-- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Resolutions/Splatoon_Resolution/0b9b8f5dfa16ad58_0000000000000000_vs.txt b/Resolutions/Splatoon_Resolution/0b9b8f5dfa16ad58_0000000000000000_vs.txt index b92d6169..65cd5d33 100644 --- a/Resolutions/Splatoon_Resolution/0b9b8f5dfa16ad58_0000000000000000_vs.txt +++ b/Resolutions/Splatoon_Resolution/0b9b8f5dfa16ad58_0000000000000000_vs.txt @@ -3,8 +3,8 @@ #extension GL_ARB_shading_language_packing : enable // shader 0b9b8f5dfa16ad58 // Used for: Horizontal Menu Blur Pass -const float resXScale = ($width/$gameWidth); -const float resYScale = ($height/$gameHeight); +const float resXScale = float($width)/float($gameWidth); +const float resYScale = float($height)/float($gameHeight); uniform ivec4 uf_remappedVS[5]; uniform vec2 uf_windowSpaceToClipSpaceTransform; diff --git a/Resolutions/Splatoon_Resolution/5c1761d13feccdff_0000000000000000_vs.txt b/Resolutions/Splatoon_Resolution/5c1761d13feccdff_0000000000000000_vs.txt index d3534025..7a0fe7f9 100644 --- a/Resolutions/Splatoon_Resolution/5c1761d13feccdff_0000000000000000_vs.txt +++ b/Resolutions/Splatoon_Resolution/5c1761d13feccdff_0000000000000000_vs.txt @@ -3,8 +3,8 @@ #extension GL_ARB_shading_language_packing : enable // shader 5c1761d13feccdff // Used for: Background DoF -const float resXScale = ($width/$gameWidth); -const float resYScale = ($height/$gameHeight); +const float resXScale = float($width)/float($gameWidth); +const float resYScale = float($height)/float($gameHeight); uniform ivec4 uf_remappedVS[1]; uniform vec2 uf_windowSpaceToClipSpaceTransform; diff --git a/Resolutions/Splatoon_Resolution/6f5412f28bd716e8_0000000000000000_vs.txt b/Resolutions/Splatoon_Resolution/6f5412f28bd716e8_0000000000000000_vs.txt index 65412af6..1ace2470 100644 --- a/Resolutions/Splatoon_Resolution/6f5412f28bd716e8_0000000000000000_vs.txt +++ b/Resolutions/Splatoon_Resolution/6f5412f28bd716e8_0000000000000000_vs.txt @@ -3,8 +3,8 @@ #extension GL_ARB_shading_language_packing : enable // shader 6f5412f28bd716e8 // Used for: Horizontal Bloom Pass -const float resXScale = ($width/$gameWidth); -const float resYScale = ($height/$gameHeight); +const float resXScale = float($width)/float($gameWidth); +const float resYScale = float($height)/float($gameHeight); uniform ivec4 uf_remappedVS[1]; uniform vec2 uf_windowSpaceToClipSpaceTransform; diff --git a/Resolutions/Splatoon_Resolution/a0bda935c83e6f2a_0000000000000000_vs.txt b/Resolutions/Splatoon_Resolution/a0bda935c83e6f2a_0000000000000000_vs.txt index 462de81a..4f66afe8 100644 --- a/Resolutions/Splatoon_Resolution/a0bda935c83e6f2a_0000000000000000_vs.txt +++ b/Resolutions/Splatoon_Resolution/a0bda935c83e6f2a_0000000000000000_vs.txt @@ -3,8 +3,8 @@ #extension GL_ARB_shading_language_packing : enable // shader a0bda935c83e6f2a // Used for: Vertical Bloom Pass -const float resXScale = ($width/$gameWidth); -const float resYScale = ($height/$gameHeight); +const float resXScale = float($width)/float($gameWidth); +const float resYScale = float($height)/float($gameHeight); uniform ivec4 uf_remappedVS[1]; uniform vec2 uf_windowSpaceToClipSpaceTransform; diff --git a/Resolutions/Splatoon_Resolution/ae5bf21625f134f3_0000000000000000_vs.txt b/Resolutions/Splatoon_Resolution/ae5bf21625f134f3_0000000000000000_vs.txt index 42804037..c5533744 100644 --- a/Resolutions/Splatoon_Resolution/ae5bf21625f134f3_0000000000000000_vs.txt +++ b/Resolutions/Splatoon_Resolution/ae5bf21625f134f3_0000000000000000_vs.txt @@ -1,11 +1,11 @@ #version 420 #extension GL_ARB_texture_gather : enable #extension GL_ARB_separate_shader_objects : enable -#extension GL_ARB_shading_language_packing : enable // shader ae5bf21625f134f3 // Used for: Squid Sisters TV -float origRatio = (float(1280)/float(720)); -float newRatio = (float($width)/float($height)); +const float origRatio = float($gameWidth)/float($gameHeight); +const float newRatio = float($width)/float($height); + uniform ivec4 uf_remappedVS[7]; uniform vec2 uf_windowSpaceToClipSpaceTransform; layout(location = 0) in uvec4 attrDataSem0; diff --git a/Resolutions/Splatoon_Resolution/fc3e63a2007625f8_0000000000000000_vs.txt b/Resolutions/Splatoon_Resolution/fc3e63a2007625f8_0000000000000000_vs.txt index e5813743..1ee64c69 100644 --- a/Resolutions/Splatoon_Resolution/fc3e63a2007625f8_0000000000000000_vs.txt +++ b/Resolutions/Splatoon_Resolution/fc3e63a2007625f8_0000000000000000_vs.txt @@ -3,8 +3,8 @@ #extension GL_ARB_shading_language_packing : enable // shader fc3e63a2007625f8 // Used for: Vertical Menu Blur Pass -const float resXScale = ($width/$gameWidth); -const float resYScale = ($height/$gameHeight); +const float resXScale = float($width)/float($gameWidth); +const float resYScale = float($height)/float($gameHeight); uniform ivec4 uf_remappedVS[5]; uniform vec2 uf_windowSpaceToClipSpaceTransform;