mirror of
https://github.com/italicsjenga/slang-shaders.git
synced 2025-02-17 07:27:43 +11:00
switch interlacing's detection to use OriginalSize to improve compatibility with prescaling passes
This commit is contained in:
parent
05bccc5209
commit
9e9804c428
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ void main()
|
||||||
float tick = registers.FrameCount;
|
float tick = registers.FrameCount;
|
||||||
|
|
||||||
// assume anything with a vertical resolution greater than 400 lines is interlaced
|
// 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;}
|
{y = registers.SourceSize.y * vTexCoord.y + (tick * registers.enable_480i) + registers.top_field_first;}
|
||||||
else
|
else
|
||||||
{y = 2.000001 * registers.SourceSize.y * vTexCoord.y + registers.top_field_first;}
|
{y = 2.000001 * registers.SourceSize.y * vTexCoord.y + registers.top_field_first;}
|
||||||
|
|
Loading…
Add table
Reference in a new issue