Advertisement
Guest User

Untitled

a guest
Oct 20th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. /////////////////////////////////////////////////////////
  2. // Set color effect
  3. varying mediump vec2 vTex;
  4. uniform lowp sampler2D samplerFront;
  5. uniform lowp float red;
  6. uniform lowp float green;
  7. uniform lowp float blue;
  8.  
  9. void main(void)
  10. {
  11. lowp float a = texture2D(samplerFront, vTex).a;
  12.  
  13. gl_FragColor = vec4(red * a, green * a, blue * a, a);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement