setValues

fun setValues(nearPlane: Float, farPlane: Float, camera: PinholeCamera)

Sets all required values to compute the scene camera matrices.

Parameters

nearPlane

near plane. Any vertex nearer to the camera than this value will be ignored and not drawn.

farPlane

far plane. Any vertex further from the camera than this value will be ignored and not drawn.

camera

camera to be set.

Throws

if surface to draw has not been initialized.

CameraException

if there are numerical instabilities in provided camera.