mirror of
https://github.com/italicsjenga/slang-shaders.git
synced 2024-11-22 15:51:30 +11:00
switch interlacing's detection to use OriginalSize to improve compatibility with prescaling passes
This commit is contained in:
parent
05bccc5209
commit
9e9804c428
|
@ -52,7 +52,7 @@ void main()
|
|||
float tick = registers.FrameCount;
|
||||
|
||||
// assume anything with a vertical resolution greater than 400 lines is interlaced
|
||||
if (registers.SourceSize.y > 400.0)
|
||||
if (registers.OriginalSize.y > 400.0)
|
||||
{y = registers.SourceSize.y * vTexCoord.y + (tick * registers.enable_480i) + registers.top_field_first;}
|
||||
else
|
||||
{y = 2.000001 * registers.SourceSize.y * vTexCoord.y + registers.top_field_first;}
|
||||
|
|
Loading…
Reference in a new issue