Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float pixel_scale = 2;
- float image_size = 512;
- vec2 modified_UV = floor(UV*image_size/pixel_scale) * pixel_scale;
- COLOR = tex(TEXTURE, modified_UV/image_size);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement