setLensProjection

open fun setLensProjection(focalLength: Double, aspect: Double, near: Double, far: Double)

Sets the projection matrix from the focal length.

Parameters

focalLength

lens's focal length in millimeters. focalLength 0

aspect

aspect ratio width/height. aspect 0

near

distance in world units from the camera to the near plane. The near plane's position in view space is z = -near. Precondition: near 0 for Projection.PERSPECTIVE or near != far for Projection.ORTHO.

far

distance in world units from the camera to the far plane. The far plane's position in view space is z = -far. Precondition: far near for Projection.PERSPECTIVE or far != near for Projection.ORTHO.