Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.21 KB | None | 0 0
  1. //calculate the texture scale
  2.   float2 UVScale = 1 / float2(1,2);
  3.   output.UV = input.UV + input.UVOffset;
  4.   output.UV *= UVScale;
  5.   //the UV coordinates stay the same
  6.   //output.UV = input.UV * input.UVOffset;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement