diff options
author | ImJezze <jezze@gmx.net> | 2015-05-30 15:38:19 +0200 |
---|---|---|
committer | ImJezze <jezze@gmx.net> | 2015-05-30 15:38:19 +0200 |
commit | be2590932b0ca0760691609e1e80118c4b8be678 (patch) | |
tree | 558ad9652d07e25295597c00228fc2cb6e0ab791 /hlsl/post.fx | |
parent | d1d9dfc2d4be85cee8c8c990950d72ee6df78e5e (diff) |
Fixed misaligned scanlines with odd resolutions
- fixed misaligned scanline with odd resolutions caused by centered
coordinates
Diffstat (limited to 'hlsl/post.fx')
-rw-r--r-- | hlsl/post.fx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hlsl/post.fx b/hlsl/post.fx index 78e4b648ddf..63e3aa9f5ce 100644 --- a/hlsl/post.fx +++ b/hlsl/post.fx @@ -368,7 +368,7 @@ float4 ps_main(PS_INPUT Input) : COLOR // todo: there is an offset which can be noticed at lower prescale in high-resolution float2 ScanlinePrescaleOffset = 0.0f; - float InnerSine = BaseCoordCentered.y * ScanlineScale * SourceDims.y; + float InnerSine = BaseCoord.y * ScanlineScale * SourceDims.y; float ScanJitter = ScanlineOffset * SourceDims.y; float ScanBrightMod = sin(InnerSine * PI + ScanJitter + ScanlinePrescaleOffset); float3 ScanColor = lerp(1.0f, (pow(ScanBrightMod * ScanBrightMod, ScanlineHeight) * ScanlineBrightScale + 1.0f + ScanlineBrightOffset) * 0.5f, ScanlineAlpha); |