diff --git a/src/BreathOfTheWild/Graphics/7cd338ce4c6ea935_0000000000000079_bak_ps.txt b/src/BreathOfTheWild/Graphics/7cd338ce4c6ea935_0000000000000079_ps.txt similarity index 89% rename from src/BreathOfTheWild/Graphics/7cd338ce4c6ea935_0000000000000079_bak_ps.txt rename to src/BreathOfTheWild/Graphics/7cd338ce4c6ea935_0000000000000079_ps.txt index aca9095b..18d5a917 100644 --- a/src/BreathOfTheWild/Graphics/7cd338ce4c6ea935_0000000000000079_bak_ps.txt +++ b/src/BreathOfTheWild/Graphics/7cd338ce4c6ea935_0000000000000079_ps.txt @@ -57,7 +57,13 @@ bool predResult = true; vec3 cubeMapSTM; int cubeMapFaceId; R0f = passParameterSem0; -R0f.xyzw = (texture(textureUnitPS0, (R0f.xy*vec2(reverseAspectRatio, 1.0))+vec2(-aspectRatio, 0.0)).xyzw); + +#if $ultrawideHUD == 1 +float uv_x = 0.5 + (R0f.x - 0.5) / aspectRatio; +R0f.xyzw = (texture(textureUnitPS0, vec2(uv_x, R0f.y)).xyzw); +#else +R0f.xyzw = (texture(textureUnitPS0, vec2(R0f.xy)).xyzw); +#endif // 0 backupReg0f = R0f.x; tempResultf = max(0.0, backupReg0f); @@ -90,8 +96,8 @@ R0f.z = PS1f; // export #if $ultrawideHUD == 1 -bool isOutsideEdges = (passParameterSem0.x > (aspectRatio/2.0f)*1.0f) && (passParameterSem0.x < ((aspectRatio/2.0f)*3.0f)); -passPixelColor0 = vec4(isOutsideEdges ? R0f.x : 0.0, isOutsideEdges ? R0f.y : 0.0, isOutsideEdges ? R0f.z : 0.0, isOutsideEdges ? R0f.w : 0.0); +bool isBorder = uv_x < 0 || uv_x > 1.0; +passPixelColor0 = isBorder ? vec4(0.0) : R0f.xyzw; #else passPixelColor0 = vec4(R0f.x, R0f.y, R0f.z, R0f.w); #endif diff --git a/src/BreathOfTheWild/Mods/DrawDistance/patch_DrawDistance.asm b/src/BreathOfTheWild/Mods/DrawDistance/patch_DrawDistance.asm index a205915a..12f26e5b 100644 --- a/src/BreathOfTheWild/Mods/DrawDistance/patch_DrawDistance.asm +++ b/src/BreathOfTheWild/Mods/DrawDistance/patch_DrawDistance.asm @@ -46,5 +46,5 @@ blr ; Tree billboard draw distance ; either one of these actually do stuff -0x102E94D8 = .float $tree +;0x102E94D8 = .float $tree ; messes with the grass LODs? Might be expandable. 0x102BC438 = .float $tree \ No newline at end of file