Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. let local_matrix_for_vertices =
  2. Matrix4::from_translation(properties.translation.into()) *
  3.  
  4. // Rotation
  5. rotation_offset_mat *
  6. rotation_pivot_mat *
  7. pre_rotation *
  8. rotation *
  9. post_rotation *
  10. rotation_pivot_mat.invert().unwrap() *
  11.  
  12. // Scale
  13. scale_offset_mat *
  14. scale_pivot_mat *
  15. scale *
  16. scale_pivot_mat.invert().unwrap();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement