setCustomProjection

actual fun setCustomProjection(matrix: DoubleArray, near: Double, far: Double)

Set a custom projection matrix used for both rendering and culling.

The matrix must define NDC as -1, 1 on all axes (OpenGL convention). For rendering, the far plane is internally set to infinity. For culling, the specified far distance is used.

Parameters

matrix

Custom projection matrix (4×4, row-major or column-major per platform)

near

Distance to near plane in world units

far

Distance to far plane in world units (!= near)


actual fun setCustomProjection(matrix: DoubleArray, matrixForCulling: DoubleArray, near: Double, far: Double)

Set custom projection matrices for rendering and culling separately.

Both matrices must define NDC as -1, 1 on all axes (OpenGL convention). The rendering matrix has its far plane set to infinity internally.

Parameters

matrix

Custom projection matrix for rendering

matrixForCulling

Custom projection matrix for culling (must be finite)

near

Distance to near plane in world units

far

Distance to far plane in world units (!= near)

expect fun setCustomProjection(matrix: DoubleArray, near: Double, far: Double)

Set a custom projection matrix used for both rendering and culling.

The matrix must define NDC as -1, 1 on all axes (OpenGL convention). For rendering, the far plane is internally set to infinity. For culling, the specified far distance is used.

Parameters

matrix

Custom projection matrix (4×4, row-major or column-major per platform)

near

Distance to near plane in world units

far

Distance to far plane in world units (!= near)


expect fun setCustomProjection(matrix: DoubleArray, matrixForCulling: DoubleArray, near: Double, far: Double)

Set custom projection matrices for rendering and culling separately.

Both matrices must define NDC as -1, 1 on all axes (OpenGL convention). The rendering matrix has its far plane set to infinity internally.

Parameters

matrix

Custom projection matrix for rendering

matrixForCulling

Custom projection matrix for culling (must be finite)

near

Distance to near plane in world units

far

Distance to far plane in world units (!= near)

actual fun setCustomProjection(matrix: DoubleArray, near: Double, far: Double)

Set a custom projection matrix used for both rendering and culling.

The matrix must define NDC as -1, 1 on all axes (OpenGL convention). For rendering, the far plane is internally set to infinity. For culling, the specified far distance is used.

Parameters

matrix

Custom projection matrix (4×4, row-major or column-major per platform)

near

Distance to near plane in world units

far

Distance to far plane in world units (!= near)


actual fun setCustomProjection(matrix: DoubleArray, matrixForCulling: DoubleArray, near: Double, far: Double)

Set custom projection matrices for rendering and culling separately.

Both matrices must define NDC as -1, 1 on all axes (OpenGL convention). The rendering matrix has its far plane set to infinity internally.

Parameters

matrix

Custom projection matrix for rendering

matrixForCulling

Custom projection matrix for culling (must be finite)

near

Distance to near plane in world units

far

Distance to far plane in world units (!= near)

actual fun setCustomProjection(matrix: DoubleArray, near: Double, far: Double)

Set a custom projection matrix used for both rendering and culling.

The matrix must define NDC as -1, 1 on all axes (OpenGL convention). For rendering, the far plane is internally set to infinity. For culling, the specified far distance is used.

Parameters

matrix

Custom projection matrix (4×4, row-major or column-major per platform)

near

Distance to near plane in world units

far

Distance to far plane in world units (!= near)


actual fun setCustomProjection(matrix: DoubleArray, matrixForCulling: DoubleArray, near: Double, far: Double)

Set custom projection matrices for rendering and culling separately.

Both matrices must define NDC as -1, 1 on all axes (OpenGL convention). The rendering matrix has its far plane set to infinity internally.

Parameters

matrix

Custom projection matrix for rendering

matrixForCulling

Custom projection matrix for culling (must be finite)

near

Distance to near plane in world units

far

Distance to far plane in world units (!= near)

actual fun setCustomProjection(matrix: DoubleArray, near: Double, far: Double)

Set a custom projection matrix used for both rendering and culling.

The matrix must define NDC as -1, 1 on all axes (OpenGL convention). For rendering, the far plane is internally set to infinity. For culling, the specified far distance is used.

Parameters

matrix

Custom projection matrix (4×4, row-major or column-major per platform)

near

Distance to near plane in world units

far

Distance to far plane in world units (!= near)


actual fun setCustomProjection(matrix: DoubleArray, matrixForCulling: DoubleArray, near: Double, far: Double)

Set custom projection matrices for rendering and culling separately.

Both matrices must define NDC as -1, 1 on all axes (OpenGL convention). The rendering matrix has its far plane set to infinity internally.

Parameters

matrix

Custom projection matrix for rendering

matrixForCulling

Custom projection matrix for culling (must be finite)

near

Distance to near plane in world units

far

Distance to far plane in world units (!= near)