openrndr / org.openrndr.math.transforms / frustum

frustum

fun frustum(left: Double, right: Double, bottom: Double, top: Double, zNear: Double, zFar: Double): Matrix44 (source)

Creates frustum matrix with the given bounds

left Left bound of the frustum right Right bound of the frustum bottom Bottom bound of the frustum top Top bound of the frustum zNear Near bound of the frustum zFar Far bound of the frustum