mirror of
https://github.com/italicsjenga/slang-shaders.git
synced 2024-11-23 00:01:31 +11:00
Merge pull request #227 from stuken/crt_geom_deluxe_interlacing_fix
Display 480p content at full res with interlacing off
This commit is contained in:
commit
819892ed0b
|
@ -111,7 +111,7 @@ void main()
|
||||||
|
|
||||||
TextureSize = global.SourceSize.xy;
|
TextureSize = global.SourceSize.xy;
|
||||||
|
|
||||||
ilfac = vec2(1.0, clamp(floor(global.SourceSize.y/200.0), 1.0, 2.0));
|
ilfac = vec2(1.0, clamp(floor(global.SourceSize.y/(interlace_detect == 1.0 ? 200.0 : 1000.0)), 1.0, 2.0));
|
||||||
|
|
||||||
// The size of one texel, in texture-coordinates.
|
// The size of one texel, in texture-coordinates.
|
||||||
v_one = ilfac / TextureSize.xy;
|
v_one = ilfac / TextureSize.xy;
|
||||||
|
|
Loading…
Reference in a new issue