Advertisement
HoratioZEDU

Untitled

Dec 30th, 2017
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. float pixel_scale = 2;
  2. float image_size = 512;
  3. vec2 modified_UV = floor(UV*image_size/pixel_scale) * pixel_scale;
  4. COLOR = tex(TEXTURE, modified_UV/image_size);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement