Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //calculate the texture scale
- float2 UVScale = 1 / float2(1,2);
- output.UV = input.UV + input.UVOffset;
- output.UV *= UVScale;
- //the UV coordinates stay the same
- //output.UV = input.UV * input.UVOffset;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement