Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. vec4 effect(vec4 color, Image tex, vec2 texture_coords, vec2 screen_coords)
  2. {
  3. /**
  4. texture_coords[0] is the x position of the pixel,
  5. texture_coords[1] is the y position
  6. */
  7. texture_coords[0] += .5; // shift the pixels to the left
  8. vec4 texturecolor = Texel(tex, texture_coords);
  9. return texturecolor * color;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement