mirror of
https://github.com/cemu-project/cemu_graphic_packs.git
synced 2024-12-23 16:31:50 +01:00
[BotW] minor bugfix for blurs
h horizontal X v vertical Y
This commit is contained in:
parent
5531e638a2
commit
600e35054a
@ -10,7 +10,7 @@ $scaleFactorY = always_decimal_format($fullHeight / 720.0);
|
||||
#extension GL_ARB_shading_language_packing : enable
|
||||
// shader 0b9b8f5dfa16ad58
|
||||
// Fixed radius blur
|
||||
// main menu v
|
||||
// main menu h
|
||||
const float resXScale = <?=$scaleFactorX?>;
|
||||
const float resYScale = <?=$scaleFactorY?>;
|
||||
|
||||
|
@ -129,7 +129,7 @@ PV0i.w = floatBitsToInt(intBitsToFloat(PV0i.w) / 2.0);
|
||||
R125i.z = floatBitsToInt(intBitsToFloat(R1i.w) + -(0.5));
|
||||
PS0i = R125i.z;
|
||||
// 1
|
||||
R123i.x = floatBitsToInt((intBitsToFloat(uf_remappedVS[3].w) * 2.0 / resXScale + intBitsToFloat(PV0i.y)));
|
||||
R123i.x = floatBitsToInt((intBitsToFloat(uf_remappedVS[3].w) * 2.0 / resYScale + intBitsToFloat(PV0i.y)));
|
||||
PV1i.x = R123i.x;
|
||||
R126i.y = floatBitsToInt(-(intBitsToFloat(uf_remappedVS[4].x)));
|
||||
R126i.y = floatBitsToInt(intBitsToFloat(R126i.y) * 2.0);
|
||||
|
@ -73,7 +73,7 @@ PS0f = R2f.x + -(intBitsToFloat(uf_remappedVS[0].x)/resXScale);
|
||||
backupReg0f = R2f.y;
|
||||
backupReg1f = R2f.x;
|
||||
PV1f.x = R2f.y + -(intBitsToFloat(uf_remappedVS[0].y)/resYScale);
|
||||
R2f.y = backupReg0f + intBitsToFloat(uf_remappedVS[0].y)/resXScale;
|
||||
R2f.y = backupReg0f + intBitsToFloat(uf_remappedVS[0].y)/resYScale;
|
||||
R2f.z = PS0f;
|
||||
R2f.x = backupReg1f + intBitsToFloat(uf_remappedVS[0].x)/resXScale;
|
||||
PS1f = R2f.x;
|
||||
|
@ -10,7 +10,7 @@ $scaleFactorY = always_decimal_format($fullHeight / 720.0);
|
||||
#extension GL_ARB_shading_language_packing : enable
|
||||
// shader 81eb264a750163d9
|
||||
// Fixed radius blur
|
||||
// volumetric light blur h
|
||||
// volumetric light blur v
|
||||
const float resXScale = <?=$scaleFactorX?>;
|
||||
const float resYScale = <?=$scaleFactorY?>;
|
||||
|
||||
|
@ -73,9 +73,9 @@ PV0f.w = R0f.w;
|
||||
R0f.y = R2f.y;
|
||||
PS0f = R0f.y;
|
||||
// 1
|
||||
PV1f.x = -(intBitsToFloat(uf_remappedVS[0].w)/resXScale);
|
||||
PV1f.x = -(intBitsToFloat(uf_remappedVS[0].w)/resYScale);
|
||||
PV1f.x /= 2.0;
|
||||
PV1f.y = -(intBitsToFloat(uf_remappedVS[0].z)/resYScale);
|
||||
PV1f.y = -(intBitsToFloat(uf_remappedVS[0].z)/resXScale);
|
||||
PV1f.y /= 2.0;
|
||||
R2f.x = (mul_nonIEEE(PV0f.w,intBitsToFloat(uf_remappedVS[0].x)*resXScale) + 0.5);
|
||||
PS1f = R2f.x;
|
||||
|
@ -85,9 +85,9 @@ PV0f.w = R127f.w;
|
||||
R127f.x = PV1f.x * 1.0;
|
||||
PS0f = R127f.x;
|
||||
// 3
|
||||
R126f.x = (intBitsToFloat(uf_remappedVS[0].y) * 2.0 / resXScale + PV0f.w);
|
||||
R126f.x = (intBitsToFloat(uf_remappedVS[0].y) * 2.0 / resYScale + PV0f.w);
|
||||
R0f.y = PV0f.z + 0.5;
|
||||
R123f.z = (intBitsToFloat(uf_remappedVS[0].x) * 2.0 / resYScale + PV0f.y);
|
||||
R123f.z = (intBitsToFloat(uf_remappedVS[0].x) * 2.0 / resXScale + PV0f.y);
|
||||
PV1f.z = R123f.z;
|
||||
PV1f.w = PV0f.w;
|
||||
R0f.x = PV0f.x + 0.5;
|
||||
|
@ -10,7 +10,7 @@ $scaleFactorY = always_decimal_format($fullHeight / 720.0);
|
||||
#extension GL_ARB_shading_language_packing : enable
|
||||
// shader f69e84515ae56e70
|
||||
// Fixed radius blur
|
||||
// bloom blur h
|
||||
// bloom blur v
|
||||
const float resXScale = <?=$scaleFactorX?>;
|
||||
const float resYScale = <?=$scaleFactorY?>;
|
||||
|
||||
|
@ -10,7 +10,7 @@ $scaleFactorY = always_decimal_format($fullHeight / 720.0);
|
||||
#extension GL_ARB_shading_language_packing : enable
|
||||
// shader fc3e63a2007625f8
|
||||
// Fixed radius blur
|
||||
// main menu h
|
||||
// main menu v
|
||||
const float resXScale = <?=$scaleFactorX?>;
|
||||
const float resYScale = <?=$scaleFactorY?>;
|
||||
|
||||
@ -63,7 +63,7 @@ R126f.z = (0.0 > R1f.x)?1.0:0.0;
|
||||
R126f.z /= 2.0;
|
||||
R127f.w = 1.0;
|
||||
PV0f.w = R127f.w;
|
||||
R126f.x = intBitsToFloat(uf_remappedVS[0].w) / resXScale * intBitsToFloat(0x3fae8a72);
|
||||
R126f.x = intBitsToFloat(uf_remappedVS[0].w) / resYScale * intBitsToFloat(0x3fae8a72);
|
||||
PS0f = R126f.x;
|
||||
// 1
|
||||
R0f.x = dot(vec4(R1f.x,R1f.y,R1f.z,PV0f.w),vec4(intBitsToFloat(uf_remappedVS[1].x),intBitsToFloat(uf_remappedVS[1].y),intBitsToFloat(uf_remappedVS[1].z),intBitsToFloat(uf_remappedVS[1].w)));
|
||||
|
Loading…
Reference in New Issue
Block a user