mirror of
https://github.com/italicsjenga/slang-shaders.git
synced 2024-11-22 15:51:30 +11:00
parent
2d95505245
commit
3f67e1870d
|
@ -55,7 +55,7 @@ void main()
|
|||
{
|
||||
// snap to the center of the underlying texel
|
||||
vec2 uv = vTexCoord * params.SourceSize.xy - 0.5;
|
||||
uv = (floor(uv) + 0.5) * params.SourceSize.zw;
|
||||
uv = (floor(uv) + 0.5001) * params.SourceSize.zw;
|
||||
|
||||
// go ahead and sample the texture and early return if not interlaced
|
||||
vec4 current = texture(Source, uv);
|
||||
|
|
Loading…
Reference in a new issue