bgfx/3rdparty/glsl-optimizer/tests/fragment/unity-Nature_Vegetation_Two_Pass_unlit-out.txt
Branimir Karadzic dee3fe5266 Initial commit.
2012-04-03 20:30:07 -07:00

15 lines
279 B
Text

uniform sampler2D _MainTex;
uniform float _Cutoff;
uniform vec4 _Color;
void main ()
{
vec4 tmpvar_1;
tmpvar_1 = (_Color * texture2D (_MainTex, gl_TexCoord[0].xy));
float x;
x = (tmpvar_1.w - _Cutoff);
if ((x < 0.0)) {
discard;
};
gl_FragData[0] = tmpvar_1;
}