nw::gfx::Camera::SetPerspective Member Function
void SetPerspective(
f32 fovy,
f32 aspectRatio,
f32 nearClip,
f32 farClip
);
| Name | Description | |
|---|---|---|
| in | fovy | The view angle (in radians) in the vertical direction. |
| in | aspectRatio | Aspect ratio (width/height) of the field of view. |
| in | nearClip | Distance to the near clipping plane. |
| in | farClip | Distance to the far clipping plane. |
Sets the projection updater parameters for the configured Perspective.
This is a utility function designed to make it easy to set the parameters. Note that the program will halt if the configured projection app data was not for Perspective.
CONFIDENTIAL