mirror of
https://github.com/italicsjenga/slang-shaders.git
synced 2024-11-23 00:01:31 +11:00
forgot one branch in super-4xbr-3d
This commit is contained in:
parent
6a9f22741c
commit
e071050ed0
|
@ -131,7 +131,9 @@ void main()
|
|||
{
|
||||
//Skip pixels on wrong grid
|
||||
vec2 dir = fract(vTexCoord*params.SourceSize.xy/XBR_RES) - vec2(0.5,0.5);
|
||||
if ((dir.x*dir.y)>0.0) FragColor = texture(Source, vTexCoord);
|
||||
if ((dir.x*dir.y)>0.0){
|
||||
FragColor = texture(Source, vTexCoord);
|
||||
}else{
|
||||
|
||||
vec2 tex = (floor(vTexCoord*params.SourceSize.xy/XBR_RES) + vec2(0.5, 0.5))*XBR_RES/params.SourceSize.xy;
|
||||
|
||||
|
@ -245,3 +247,4 @@ void main()
|
|||
|
||||
FragColor = vec4(color, 1.0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue