You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
185 B

4 years ago
  1. varying vec2 V_Texcoord;
  2. uniform sampler2D U_MainTexture;
  3. void main()
  4. {
  5. vec4 color = texture2D(U_MainTexture, V_Texcoord);
  6. if(color.r > 2.0){
  7. discard;
  8. }
  9. gl_FragColor = color;
  10. }