setProjection
Set the projection matrix from six frustum planes.
The near and far planes' positions in view space are z = -near and z = -far.
Parameters
PERSPECTIVE or ORTHO
Distance from camera to left plane at near plane
Distance from camera to right plane at near plane
Distance from camera to bottom plane at near plane
Distance from camera to top plane at near plane
Distance from camera to near plane (> 0 for PERSPECTIVE, != far for ORTHO)
Distance from camera to far plane (> near for PERSPECTIVE, != near for ORTHO)
Set the projection matrix from field-of-view and aspect ratio.
Helper method to set a standard perspective or orthographic projection.
Parameters
Full field-of-view in degrees (0 < fov < 180)
Aspect ratio (width / height)
Distance to near plane (> 0)
Distance to far plane (> near)
Axis on which fovInDegrees is measured (VERTICAL or HORIZONTAL)
Set the projection matrix from six frustum planes.
The near and far planes' positions in view space are z = -near and z = -far.
Parameters
PERSPECTIVE or ORTHO
Distance from camera to left plane at near plane
Distance from camera to right plane at near plane
Distance from camera to bottom plane at near plane
Distance from camera to top plane at near plane
Distance from camera to near plane (> 0 for PERSPECTIVE, != far for ORTHO)
Distance from camera to far plane (> near for PERSPECTIVE, != near for ORTHO)
Set the projection matrix from field-of-view and aspect ratio.
Helper method to set a standard perspective or orthographic projection.
Parameters
Full field-of-view in degrees (0 < fov < 180)
Aspect ratio (width / height)
Distance to near plane (> 0)
Distance to far plane (> near)
Axis on which fovInDegrees is measured (VERTICAL or HORIZONTAL)
Set the projection matrix from six frustum planes.
The near and far planes' positions in view space are z = -near and z = -far.
Parameters
PERSPECTIVE or ORTHO
Distance from camera to left plane at near plane
Distance from camera to right plane at near plane
Distance from camera to bottom plane at near plane
Distance from camera to top plane at near plane
Distance from camera to near plane (> 0 for PERSPECTIVE, != far for ORTHO)
Distance from camera to far plane (> near for PERSPECTIVE, != near for ORTHO)
Set the projection matrix from field-of-view and aspect ratio.
Helper method to set a standard perspective or orthographic projection.
Parameters
Full field-of-view in degrees (0 < fov < 180)
Aspect ratio (width / height)
Distance to near plane (> 0)
Distance to far plane (> near)
Axis on which fovInDegrees is measured (VERTICAL or HORIZONTAL)
Set the projection matrix from six frustum planes.
The near and far planes' positions in view space are z = -near and z = -far.
Parameters
PERSPECTIVE or ORTHO
Distance from camera to left plane at near plane
Distance from camera to right plane at near plane
Distance from camera to bottom plane at near plane
Distance from camera to top plane at near plane
Distance from camera to near plane (> 0 for PERSPECTIVE, != far for ORTHO)
Distance from camera to far plane (> near for PERSPECTIVE, != near for ORTHO)
Set the projection matrix from field-of-view and aspect ratio.
Helper method to set a standard perspective or orthographic projection.
Parameters
Full field-of-view in degrees (0 < fov < 180)
Aspect ratio (width / height)
Distance to near plane (> 0)
Distance to far plane (> near)
Axis on which fovInDegrees is measured (VERTICAL or HORIZONTAL)
Set the projection matrix from six frustum planes.
The near and far planes' positions in view space are z = -near and z = -far.
Parameters
PERSPECTIVE or ORTHO
Distance from camera to left plane at near plane
Distance from camera to right plane at near plane
Distance from camera to bottom plane at near plane
Distance from camera to top plane at near plane
Distance from camera to near plane (> 0 for PERSPECTIVE, != far for ORTHO)
Distance from camera to far plane (> near for PERSPECTIVE, != near for ORTHO)
Set the projection matrix from field-of-view and aspect ratio.
Helper method to set a standard perspective or orthographic projection.
Parameters
Full field-of-view in degrees (0 < fov < 180)
Aspect ratio (width / height)
Distance to near plane (> 0)
Distance to far plane (> near)
Axis on which fovInDegrees is measured (VERTICAL or HORIZONTAL)