Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- uv_in -= pivot;
- float rotation_radians = radians(rotation_degrees);
- float c = cos(rotation_radians);
- float s = sin(rotation_radians);
- uv_out.x = uv_in.x * c + uv_in.y * s;
- uv_out.y = uv_in.y * c - uv_in.x * s;
- uv_out += pivot;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement