/// <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)); }
/// <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)); }