mirror of
https://github.com/italicsjenga/slang-shaders.git
synced 2024-11-26 09:21:30 +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;
|
||||
|
||||
|
@ -244,4 +246,5 @@ void main()
|
|||
color = block_3d ? color : E;
|
||||
|
||||
FragColor = vec4(color, 1.0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue