Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Prepare ViewProjection matrices
- // Create the view matrix from our camera position, look target and up direction direct X uses left hand co-ordinate system
- m_viewMatrix = Matrix.LookAtLH(Vector3.Zero, Vector3.UnitZ, Vector3.UnitY);
- m_projectionMatrix = Matrix.OrthoOffCenterLH(0, (float)m_displaySize.Width, (float)m_displaySize.Height, 0, 0f, 100.0f);
- m_viewProjectionMatrix = m_viewMatrix * m_projectionMatrix;
- m_perObject.ViewProjection = m_viewProjectionMatrix;
- // perform the Transpose of the matrices
- m_perObject.Transpose();
Add Comment
Please, Sign In to add comment