From d5ef8208fe852b75f24ba1c955b85aa89a28d099 Mon Sep 17 00:00:00 2001 From: getdls Date: Sat, 7 Jul 2018 15:52:09 +0200 Subject: [PATCH] [TMS] Scale 3rd level bloom/blur Scaling artifacts was visible in higher resolutions, lights soruces in the office for example --- Source/TokyoMirage/201bd8dfd2a9e7d3_0000000000000000_vs.txt | 4 ++-- Source/TokyoMirage/23c5bbfda0fc3b0f_0000000000000000_vs.txt | 4 ++-- Source/TokyoMirage/3259d3b3ca333bf3_0000000000000000_vs.txt | 4 ++-- Source/TokyoMirage/39863f29c6d85cb8_0000000000000000_vs.txt | 4 ++-- Source/TokyoMirage/59fca914f0dcb060_0000000000000000_vs.txt | 4 ++-- Source/TokyoMirage/8cdd68cf2a074404_0000000000000000_vs.txt | 4 ++-- Source/TokyoMirage/b181218b85619285_0000000000000000_vs.txt | 4 ++-- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Source/TokyoMirage/201bd8dfd2a9e7d3_0000000000000000_vs.txt b/Source/TokyoMirage/201bd8dfd2a9e7d3_0000000000000000_vs.txt index dfca071a..5bd659bc 100644 --- a/Source/TokyoMirage/201bd8dfd2a9e7d3_0000000000000000_vs.txt +++ b/Source/TokyoMirage/201bd8dfd2a9e7d3_0000000000000000_vs.txt @@ -69,9 +69,9 @@ R2f = vec4(intBitsToFloat(int(attrDecoder.x)), intBitsToFloat(int(attrDecoder.y) // 0 PV0f.x = mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].y) / resYScale, intBitsToFloat(uf_remappedVS[0].w)); PV0f.y = mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].x) / resXScale, intBitsToFloat(uf_remappedVS[0].w)); -R123f.z = (mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].y),intBitsToFloat(uf_remappedVS[0].z)) + R2f.y); +R123f.z = (mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].y)/ resYScale,intBitsToFloat(uf_remappedVS[0].z)) + R2f.y); PV0f.z = R123f.z; -R123f.w = (mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].x),intBitsToFloat(uf_remappedVS[0].z)) + R2f.x); +R123f.w = (mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].x)/ resXScale,intBitsToFloat(uf_remappedVS[0].z)) + R2f.x); PV0f.w = R123f.w; // 1 R6f.x = PV0f.w + PV0f.y; diff --git a/Source/TokyoMirage/23c5bbfda0fc3b0f_0000000000000000_vs.txt b/Source/TokyoMirage/23c5bbfda0fc3b0f_0000000000000000_vs.txt index 23473bfa..52dded07 100644 --- a/Source/TokyoMirage/23c5bbfda0fc3b0f_0000000000000000_vs.txt +++ b/Source/TokyoMirage/23c5bbfda0fc3b0f_0000000000000000_vs.txt @@ -61,9 +61,9 @@ R2f = vec4(intBitsToFloat(int(attrDecoder.x)), intBitsToFloat(int(attrDecoder.y) // 0 PV0f.x = mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].y) / resYScale, intBitsToFloat(uf_remappedVS[0].w)); PV0f.y = mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].x) / resXScale, intBitsToFloat(uf_remappedVS[0].w)); -R123f.z = (mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].y),intBitsToFloat(uf_remappedVS[0].z)) + R2f.y); +R123f.z = (mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].y)/ resYScale,intBitsToFloat(uf_remappedVS[0].z)) + R2f.y); PV0f.z = R123f.z; -R123f.w = (mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].x),intBitsToFloat(uf_remappedVS[0].z)) + R2f.x); +R123f.w = (mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].x)/ resXScale,intBitsToFloat(uf_remappedVS[0].z)) + R2f.x); PV0f.w = R123f.w; // 1 R0f.x = PV0f.w + PV0f.y; diff --git a/Source/TokyoMirage/3259d3b3ca333bf3_0000000000000000_vs.txt b/Source/TokyoMirage/3259d3b3ca333bf3_0000000000000000_vs.txt index 5a96bbcf..8a894c85 100644 --- a/Source/TokyoMirage/3259d3b3ca333bf3_0000000000000000_vs.txt +++ b/Source/TokyoMirage/3259d3b3ca333bf3_0000000000000000_vs.txt @@ -62,9 +62,9 @@ attrDecoder.z = 0; attrDecoder.w = 0; R2f = vec4(intBitsToFloat(int(attrDecoder.x)), intBitsToFloat(int(attrDecoder.y)), intBitsToFloat(floatBitsToInt(0.0)), intBitsToFloat(floatBitsToInt(1.0))); // 0 -R127f.x = (mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].y),intBitsToFloat(uf_remappedVS[0].z)) + R2f.y); +R127f.x = (mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].y)/ resYScale,intBitsToFloat(uf_remappedVS[0].z)) + R2f.y); PV0f.x = R127f.x; -R123f.y = (mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].x),intBitsToFloat(uf_remappedVS[0].z)) + R2f.x); +R123f.y = (mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].x)/ resXScale,intBitsToFloat(uf_remappedVS[0].z)) + R2f.x); PV0f.y = R123f.y; R127f.z = mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].y) / resYScale, intBitsToFloat(uf_remappedVS[0].w)); PV0f.z = R127f.z; diff --git a/Source/TokyoMirage/39863f29c6d85cb8_0000000000000000_vs.txt b/Source/TokyoMirage/39863f29c6d85cb8_0000000000000000_vs.txt index a55338c3..250230f2 100644 --- a/Source/TokyoMirage/39863f29c6d85cb8_0000000000000000_vs.txt +++ b/Source/TokyoMirage/39863f29c6d85cb8_0000000000000000_vs.txt @@ -59,9 +59,9 @@ attrDecoder.z = 0; attrDecoder.w = 0; R2f = vec4(intBitsToFloat(int(attrDecoder.x)), intBitsToFloat(int(attrDecoder.y)), intBitsToFloat(floatBitsToInt(0.0)), intBitsToFloat(floatBitsToInt(1.0))); // 0 -R127f.x = (mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].y),intBitsToFloat(uf_remappedVS[0].z)) + R2f.y); +R127f.x = (mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].y)/ resYScale,intBitsToFloat(uf_remappedVS[0].z)) + R2f.y); PV0f.x = R127f.x; -R123f.y = (mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].x),intBitsToFloat(uf_remappedVS[0].z)) + R2f.x); +R123f.y = (mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].x)/ resXScale,intBitsToFloat(uf_remappedVS[0].z)) + R2f.x); PV0f.y = R123f.y; R127f.z = mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].y) / resYScale, intBitsToFloat(uf_remappedVS[0].w)); PV0f.z = R127f.z; diff --git a/Source/TokyoMirage/59fca914f0dcb060_0000000000000000_vs.txt b/Source/TokyoMirage/59fca914f0dcb060_0000000000000000_vs.txt index 725c0319..0a14e612 100644 --- a/Source/TokyoMirage/59fca914f0dcb060_0000000000000000_vs.txt +++ b/Source/TokyoMirage/59fca914f0dcb060_0000000000000000_vs.txt @@ -73,9 +73,9 @@ R2f = vec4(intBitsToFloat(int(attrDecoder.x)), intBitsToFloat(int(attrDecoder.y) // 0 PV0f.x = mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].y) / resYScale, intBitsToFloat(uf_remappedVS[0].w)); PV0f.y = mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].x) / resXScale, intBitsToFloat(uf_remappedVS[0].w)); -R123f.z = (mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].y),intBitsToFloat(uf_remappedVS[0].z)) + R2f.y); +R123f.z = (mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].y)/ resYScale,intBitsToFloat(uf_remappedVS[0].z)) + R2f.y); PV0f.z = R123f.z; -R123f.w = (mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].x),intBitsToFloat(uf_remappedVS[0].z)) + R2f.x); +R123f.w = (mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].x)/ resXScale,intBitsToFloat(uf_remappedVS[0].z)) + R2f.x); PV0f.w = R123f.w; // 1 R6f.x = PV0f.w + PV0f.y; diff --git a/Source/TokyoMirage/8cdd68cf2a074404_0000000000000000_vs.txt b/Source/TokyoMirage/8cdd68cf2a074404_0000000000000000_vs.txt index 594d274c..986ff3ad 100644 --- a/Source/TokyoMirage/8cdd68cf2a074404_0000000000000000_vs.txt +++ b/Source/TokyoMirage/8cdd68cf2a074404_0000000000000000_vs.txt @@ -66,9 +66,9 @@ attrDecoder.z = 0; attrDecoder.w = 0; R2f = vec4(intBitsToFloat(int(attrDecoder.x)), intBitsToFloat(int(attrDecoder.y)), intBitsToFloat(floatBitsToInt(0.0)), intBitsToFloat(floatBitsToInt(1.0))); // 0 -R127f.x = (mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].y),intBitsToFloat(uf_remappedVS[0].z)) + R2f.y); +R127f.x = (mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].y)/ resYScale,intBitsToFloat(uf_remappedVS[0].z)) + R2f.y); PV0f.x = R127f.x; -R123f.y = (mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].x),intBitsToFloat(uf_remappedVS[0].z)) + R2f.x); +R123f.y = (mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].x)/ resXScale,intBitsToFloat(uf_remappedVS[0].z)) + R2f.x); PV0f.y = R123f.y; R127f.z = mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].y) / resYScale, intBitsToFloat(uf_remappedVS[0].w)); PV0f.z = R127f.z; diff --git a/Source/TokyoMirage/b181218b85619285_0000000000000000_vs.txt b/Source/TokyoMirage/b181218b85619285_0000000000000000_vs.txt index e46185fb..2e089c01 100644 --- a/Source/TokyoMirage/b181218b85619285_0000000000000000_vs.txt +++ b/Source/TokyoMirage/b181218b85619285_0000000000000000_vs.txt @@ -65,9 +65,9 @@ R2f = vec4(intBitsToFloat(int(attrDecoder.x)), intBitsToFloat(int(attrDecoder.y) // 0 PV0f.x = mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].y) / resYScale, intBitsToFloat(uf_remappedVS[0].w)); PV0f.y = mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].x) / resXScale, intBitsToFloat(uf_remappedVS[0].w)); -R123f.z = (mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].y),intBitsToFloat(uf_remappedVS[0].z)) + R2f.y); +R123f.z = (mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].y)/ resYScale,intBitsToFloat(uf_remappedVS[0].z)) + R2f.y); PV0f.z = R123f.z; -R123f.w = (mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].x),intBitsToFloat(uf_remappedVS[0].z)) + R2f.x); +R123f.w = (mul_nonIEEE(intBitsToFloat(uf_remappedVS[0].x)/ resXScale,intBitsToFloat(uf_remappedVS[0].z)) + R2f.x); PV0f.w = R123f.w; // 1 R4f.x = PV0f.w + PV0f.y;