Beispiel #1
0
		public void Apply()
		{
			Viewport.Apply();
			_projection = Matrix4.CreatePerspectiveFieldOfView(FieldOfViewY, Viewport.AspectRatio, ZNear, ZFar);
			GL.MatrixMode(MatrixMode.Projection);
			GL.LoadMatrix(ref _projection);
		}
Beispiel #2
0
        public void Apply()
        {
            Viewport.Apply();

            _projection = Matrix4.CreateOrthographicOffCenter(Left, Right, Bottom, Top, ZNear, ZFar);
            GL.MatrixMode(MatrixMode.Projection);
            GL.LoadMatrix(ref _projection);
        }