bgfx/3rdparty/glsl-optimizer/tests/fragment/unity-Hidden_Camera-DepthTexture-out.txt

12 lines
198 B
Text
Raw Normal View History

2012-04-03 23:30:07 -04:00
uniform sampler2D _MainTex;
void main ()
{
float x;
x = (texture2D (_MainTex, gl_TexCoord[0].xy).w - 0.001);
if ((x < 0.0)) {
discard;
};
gl_FragData[0] = vec4(0.0, 0.0, 0.0, 0.0);
}