hlsl/post.fx
| r11683 | r11684 | |
| 154 | 154 | clip((BaseCoord.y > (1.0f / HeightRatio + 1.0f / RawHeight + 1.0f / TargetHeight)) ? -1 : 1); |
| 155 | 155 | |
| 156 | 156 | // -- Scanline Simulation -- |
| 157 | | float InnerSine = BaseCoord.y * RawHeight * ScanlineScale + 0.5f; |
| 157 | float InnerSine = BaseCoord.y * RawHeight * ScanlineScale + 1.0f / 4.5f; |
| 158 | 158 | float3 ScanBrightness = lerp(1.0f, abs(sin(InnerSine * PI + ScanlineOffset * RawHeight)) * ScanlineBrightScale + 1.0f, ScanlineAmount); |
| 159 | 159 | //float3 Scanned = BaseTexel.rgb * ScanBrightness; |
| 160 | 160 | float3 Scanned = BaseTexel.rgb * ScanBrightness; |