PerspectiveLens

data class PerspectiveLens(fovY: Angle, aspect: Float, near: Float, far: Float) : Lens

A lens for a perspective projection defined by a given frustum.

The frustum is defined by its near and far depth clipping planes, and its field of view angle in the Y direction and aspect ratio between X and Y field of view.

Constructors

PerspectiveLens
Link copied to clipboard
common
fun PerspectiveLens(fovY: Angle, aspect: Float, near: Float, far: Float)

Properties

aspect
Link copied to clipboard
common
val aspect: Float
far
Link copied to clipboard
common
val far: Float
fovY
Link copied to clipboard
common
val fovY: Angle
near
Link copied to clipboard
common
val near: Float
projectionMatrix
Link copied to clipboard
common
open override val projectionMatrix: Mat4
Projection matrix defined by the lens.