Guest User

Untitled

a guest
May 6th, 2016
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. // Prepare ViewProjection matrices
  2.  
  3. // Create the view matrix from our camera position, look target and up direction direct X uses left hand co-ordinate system
  4. m_viewMatrix = Matrix.LookAtLH(Vector3.Zero, Vector3.UnitZ, Vector3.UnitY);
  5. m_projectionMatrix = Matrix.OrthoOffCenterLH(0, (float)m_displaySize.Width, (float)m_displaySize.Height, 0, 0f, 100.0f);
  6.  
  7. m_viewProjectionMatrix = m_viewMatrix * m_projectionMatrix;
  8. m_perObject.ViewProjection = m_viewProjectionMatrix;
  9.  
  10. // perform the Transpose of the matrices
  11. m_perObject.Transpose();
Add Comment
Please, Sign In to add comment