public void Apply() { Viewport.Apply(); _projection = Matrix4.CreatePerspectiveFieldOfView(FieldOfViewY, Viewport.AspectRatio, ZNear, ZFar); GL.MatrixMode(MatrixMode.Projection); GL.LoadMatrix(ref _projection); }
public void Apply() { Viewport.Apply(); _projection = Matrix4.CreateOrthographicOffCenter(Left, Right, Bottom, Top, ZNear, ZFar); GL.MatrixMode(MatrixMode.Projection); GL.LoadMatrix(ref _projection); }