Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /////////////////////////////////////////////////////////
- // Set color effect
- varying mediump vec2 vTex;
- uniform lowp sampler2D samplerFront;
- uniform lowp float red;
- uniform lowp float green;
- uniform lowp float blue;
- void main(void)
- {
- lowp float a = texture2D(samplerFront, vTex).a;
- gl_FragColor = vec4(red * a, green * a, blue * a, a);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement