Advertisement
Serafim

Untitled

Jul 27th, 2015
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #ifdef GL_ES
  2. precision mediump float;
  3. #endif
  4.  
  5. uniform float u_AlphaGate;
  6. varying vec2 v_texCoords;
  7. uniform sampler2D u_texture;
  8.  
  9. void main() {
  10. vec4 color = texture2D(u_texture, v_texCoords).rgba;
  11.  
  12. gl_FragColor = clr.a < 0.4
  13. ? vec4(0.0, 0.0, 0.0, u_AlphaGate)
  14. : color;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement