Exemplo n.º 1
0
 private void _setProjectionMatrix()
 {
     if (ProjectionType == ProjectionTypes.Perspective)
     {
         _projectionMatrix = Matrix4f.CreatePerspectiveFieldOfView(_fov, _viewportSize.Width / _viewportSize.Height, _near, _far);
     }
     else
     {
         _projectionMatrix = Matrix4f.CreateOrthographic(_viewportSize.Width, _viewportSize.Height, _near, _far);
     }
 }