Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let local_matrix_for_vertices =
- Matrix4::from_translation(properties.translation.into()) *
- // Rotation
- rotation_offset_mat *
- rotation_pivot_mat *
- pre_rotation *
- rotation *
- post_rotation *
- rotation_pivot_mat.invert().unwrap() *
- // Scale
- scale_offset_mat *
- scale_pivot_mat *
- scale *
- scale_pivot_mat.invert().unwrap();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement