Advertisement
Guest User

Untitled

a guest
Dec 11th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. vec4 sepia(vec4 color)
  2. {
  3. float r = color.r;
  4. float g = color.g;
  5. float b = color.b;
  6.  
  7. color.r = r*0.393 + g*0.769 + b*0.189;
  8. color.g = r*0.349 + g*0.686 + b*0.168;
  9. color.b = r*0.272 + g*0.534 + b*0.131;
  10. return color;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement