getProjectionMatrix

fun getProjectionMatrix(eyeId: Int = 0, out: DoubleArray? = null): DoubleArray

Get the projection matrix used for rendering (far plane set to infinity).

This may differ from the matrix set via setProjection/setLensProjection because the rendering far plane is always infinity for depth precision.

Return

The projection matrix (4×4)

Parameters

eyeId

Eye index (must be < stereoscopicEyeCount)

out

Optional DoubleArray for result; created if null