mirror of
https://github.com/italicsjenga/slang-shaders.git
synced 2024-11-26 09:21:30 +11:00
bring back the hacky clamp fix
This commit is contained in:
parent
97106f2185
commit
3d9d246dc4
|
@ -276,6 +276,12 @@ vec3 outColor = Tri(pos);
|
||||||
#endif
|
#endif
|
||||||
if(shadowMask > 0.0)
|
if(shadowMask > 0.0)
|
||||||
outColor.rgb*=Mask(vTexCoord.xy / global.OutputSize.zw * 1.000001);
|
outColor.rgb*=Mask(vTexCoord.xy / global.OutputSize.zw * 1.000001);
|
||||||
|
//hacky clamp fix
|
||||||
|
vec2 bordertest = (pos);
|
||||||
|
if ( bordertest.x > 0.0001 && bordertest.x < 0.9999 && bordertest.y > 0.0001 && bordertest.y < 0.9999)
|
||||||
|
outColor.rgb = outColor.rgb;
|
||||||
|
else
|
||||||
|
outColor.rgb = vec3(0.0);
|
||||||
|
|
||||||
FragColor = vec4(ToSrgb(outColor.rgb), 1.0);
|
FragColor = vec4(ToSrgb(outColor.rgb), 1.0);
|
||||||
}
|
}
|
Loading…
Reference in a new issue