mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-21 21:35:38 +00:00
Shaders: Fix upscaling moire in CRT-Lottes
This commit is contained in:
parent
facce0d8cb
commit
e6a11abedc
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue