1080 scaling fixes

This commit is contained in:
getdls 2018-11-03 14:55:57 +01:00
parent b68512267b
commit d8cea413b7
5 changed files with 10 additions and 10 deletions

View File

@ -4,8 +4,8 @@
#extension GL_ARB_shading_language_packing : enable
// shader 5c1761d13feccdff
//Bloom fix heat haze
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[1];
uniform vec2 uf_windowSpaceToClipSpaceTransform;

View File

@ -3,8 +3,8 @@
#extension GL_ARB_shading_language_packing : enable
// shader 6f5412f28bd716e8
// Used for: Horizontal 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[1];
uniform vec2 uf_windowSpaceToClipSpaceTransform;

View File

@ -3,8 +3,8 @@
#extension GL_ARB_shading_language_packing : enable
// shader a0bda935c83e6f2a
// Used for: Vertical 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[1];
uniform vec2 uf_windowSpaceToClipSpaceTransform;

View File

@ -3,8 +3,8 @@
#extension GL_ARB_shading_language_packing : enable
// shader 315d61ad21f97614
// Used for: Vertical blur pass end screen background
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[5];
uniform vec2 uf_windowSpaceToClipSpaceTransform;

View File

@ -3,8 +3,8 @@
#extension GL_ARB_shading_language_packing : enable
// shader 4b92e636153d6b54
// Used for: Horizontal blur pass end screen background
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[5];
uniform vec2 uf_windowSpaceToClipSpaceTransform;