mirror of
https://github.com/italicsjenga/slang-shaders.git
synced 2025-02-23 18:17:44 +11:00
parent
2d95505245
commit
3f67e1870d
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ void main()
|
||||||
{
|
{
|
||||||
// snap to the center of the underlying texel
|
// snap to the center of the underlying texel
|
||||||
vec2 uv = vTexCoord * params.SourceSize.xy - 0.5;
|
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
|
// go ahead and sample the texture and early return if not interlaced
|
||||||
vec4 current = texture(Source, uv);
|
vec4 current = texture(Source, uv);
|
||||||
|
|
Loading…
Add table
Reference in a new issue