mirror of
https://github.com/holub/mame
synced 2025-10-05 00:38:58 +03:00
Restored abs() around scanline sin() to increase scanline furrow sharpness and decrease scanline furrow width, no whatsnew
This commit is contained in:
parent
c8ef077d5b
commit
3f4046b146
@ -155,7 +155,7 @@ float4 ps_main(PS_INPUT Input) : COLOR
|
|||||||
|
|
||||||
// -- Scanline Simulation --
|
// -- Scanline Simulation --
|
||||||
float InnerSine = BaseCoord.y * RawHeight * ScanlineScale + 0.5f;
|
float InnerSine = BaseCoord.y * RawHeight * ScanlineScale + 0.5f;
|
||||||
float3 ScanBrightness = lerp(1.0f, sin(InnerSine * PI * 2.0f + ScanlineOffset * RawHeight) * ScanlineBrightScale + 1.0f, ScanlineAmount);
|
float3 ScanBrightness = lerp(1.0f, abs(sin(InnerSine * PI + ScanlineOffset * RawHeight)) * ScanlineBrightScale + 1.0f, ScanlineAmount);
|
||||||
float3 Scanned = BaseTexel.rgb * ScanBrightness;
|
float3 Scanned = BaseTexel.rgb * ScanBrightness;
|
||||||
|
|
||||||
float2 ShadowDims = float2(ShadowWidth, ShadowHeight);
|
float2 ShadowDims = float2(ShadowWidth, ShadowHeight);
|
||||||
|
Loading…
Reference in New Issue
Block a user