Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. vec4 col = v_vColour * texture2d( gmBaseTexture, v_vTexCoord);
  2.  
  3. float c = (col.r + col.g + col.b) / 3.0;
  4.  
  5. vgl_FlagColour = vec4(c, c, c, col.a);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement