remove clamp fix that didn't work anyway

This commit is contained in:
hizzlekizzle 2016-07-12 19:44:26 -05:00 committed by GitHub
parent 73db8b3fd2
commit b5a1690f9a

View file

@ -276,12 +276,6 @@ 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 > 1.0 && bordertest.x < 0.0 && bordertest.y > 1.0 && bordertest.y < 0.0)
outColor.rgb = vec3(0.0);
else
outColor.rgb = outColor.rgb;
FragColor = vec4(ToSrgb(outColor.rgb), 1.0); FragColor = vec4(ToSrgb(outColor.rgb), 1.0);
} }