mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-01 11:56:58 -05:00
17 lines
326 B
Text
17 lines
326 B
Text
uniform vec4 _Color;
|
|
uniform float _Cutoff;
|
|
uniform sampler2D _MainTex;
|
|
void main ()
|
|
{
|
|
vec4 tmpvar_1;
|
|
tmpvar_1 = (_Color * texture2D (_MainTex, gl_TexCoord[0].xy));
|
|
float x_2;
|
|
x_2 = (tmpvar_1.w - _Cutoff);
|
|
if ((x_2 < 0.0)) {
|
|
discard;
|
|
};
|
|
gl_FragData[0] = tmpvar_1;
|
|
}
|
|
|
|
|
|
// inputs: 1, stats: 3 alu 2 tex 1 flow
|