mirror of
https://github.com/cemu-project/cemu_graphic_packs.git
synced 2024-12-23 08:21:51 +01:00
[TMS] Scale 3rd level bloom/blur
Scaling artifacts was visible in higher resolutions, lights soruces in the office for example
This commit is contained in:
parent
cfa4eeaaae
commit
d5ef8208fe
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user