예제 #1
0
 /// <summary>
 /// Creates an Orthographic Projection matrix and sets the Camera Projection to it
 /// </summary>
 /// <param name="parameters">Orthographic projection parameters</param>
 /// <returns></returns>
 public mat4 SetOrthographic(CameraParameters parameters)
 {
     return(SetOrthographic(parameters.Height, parameters.AspectRatio,
                            parameters.NearPlane, parameters.FarPlane));
 }
예제 #2
0
 /// <summary>
 /// Creates a Perspective Projection matrix and sets the Camera Projection to it
 /// </summary>
 /// <param name="parameters">Perspective projection parameters</param>
 /// <returns></returns>
 public mat4 SetPerspective(CameraParameters parameters)
 {
     return(SetPerspective(parameters.FovY, parameters.AspectRatio, parameters.NearPlane, parameters.FarPlane));
 }