Previous 15994 Revisions Next

r11684 Saturday 28th May, 2011 at 05:11:45 UTC by MooglyGuy
HLSL scanline alignment, nwn
[hlsl]post.fx

hlsl/post.fx
r11683r11684
154154   clip((BaseCoord.y > (1.0f / HeightRatio + 1.0f / RawHeight + 1.0f / TargetHeight)) ? -1 : 1);
155155
156156   // -- Scanline Simulation --
157   float InnerSine = BaseCoord.y * RawHeight * ScanlineScale + 0.5f;
157   float InnerSine = BaseCoord.y * RawHeight * ScanlineScale + 1.0f / 4.5f;
158158   float3 ScanBrightness = lerp(1.0f, abs(sin(InnerSine * PI + ScanlineOffset * RawHeight)) * ScanlineBrightScale + 1.0f, ScanlineAmount);
159159   //float3 Scanned = BaseTexel.rgb * ScanBrightness;
160160   float3 Scanned = BaseTexel.rgb * ScanBrightness;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team