FrustumLens

data class FrustumLens(left: Float, right: Float, bottom: Float, top: 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 left, right, bottom and top clipping planes (specified at the near depth).

Constructors

FrustumLens
Link copied to clipboard
fun FrustumLens(left: Float, right: Float = -left, bottom: Float, top: Float = -bottom, near: Float, far: Float)

Properties

bottom
Link copied to clipboard
val bottom: Float
far
Link copied to clipboard
val far: Float
left
Link copied to clipboard
val left: Float
near
Link copied to clipboard
val near: Float
projectionMatrix
Link copied to clipboard
open override val projectionMatrix: Mat4

Projection matrix defined by the lens.

right
Link copied to clipboard
val right: Float
top
Link copied to clipboard
val top: Float