Created
January 27, 2015 22:43
-
-
Save JavadocMD/27d8ac0857868f6abc03 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef GL_ES | |
precision mediump float; | |
#endif | |
uniform sampler2D u_texture; | |
uniform sampler2D u_mask; | |
varying vec4 v_color; | |
varying vec2 v_texCoord0; | |
void main() | |
{ | |
vec4 texColor = texture2D(u_texture, v_texCoord0); | |
vec4 mask = texture2D(u_mask, v_texCoord0); | |
texColor.a *= mask.a; | |
gl_FragColor = v_color * texColor; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment