Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifdef GL_ES
- precision mediump float;
- #endif
- uniform float u_AlphaGate;
- varying vec2 v_texCoords;
- uniform sampler2D u_texture;
- void main() {
- vec4 color = texture2D(u_texture, v_texCoords).rgba;
- gl_FragColor = clr.a < 0.4
- ? vec4(0.0, 0.0, 0.0, u_AlphaGate)
- : color;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement