Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- vec4 effect(vec4 color, Image tex, vec2 texture_coords, vec2 screen_coords)
- {
- /**
- texture_coords[0] is the x position of the pixel,
- texture_coords[1] is the y position
- */
- texture_coords[0] += .5; // shift the pixels to the left
- vec4 texturecolor = Texel(tex, texture_coords);
- return texturecolor * color;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement