From e6a11abedc52c0f5a8d5289b9c46f323046828fc Mon Sep 17 00:00:00 2001 From: Stenzek Date: Tue, 11 Jun 2024 23:31:07 +1000 Subject: [PATCH] Shaders: Fix upscaling moire in CRT-Lottes --- data/resources/shaders/crt-lottes.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/resources/shaders/crt-lottes.glsl b/data/resources/shaders/crt-lottes.glsl index 653ee1865..2385c68e2 100644 --- a/data/resources/shaders/crt-lottes.glsl +++ b/data/resources/shaders/crt-lottes.glsl @@ -173,7 +173,7 @@ float3 Fetch(float2 pos,float2 off){ // Distance in emulated pixels to nearest texel. float2 Dist(float2 pos) { - pos = pos*GetOriginalSize().xy; + pos = pos * (GetNativeSize() * GetWindowToViewportRatio()); return -((pos - floor(pos)) - float2(0.5, 0.5)); }