PerspectiveLens

data class PerspectiveLens(    val fovY: Angle,     val aspect: Float,     val near: Float,     val 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

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

Properties

Link copied to clipboard
val aspect: Float
Link copied to clipboard
val far: Float
Link copied to clipboard
val fovY: Angle
Link copied to clipboard
val near: Float
Link copied to clipboard
open override val projectionMatrix: Mat4

Projection matrix defined by the lens.