docs/android/dokka/filament-android/com.google.android.filament/-camera/set-custom-projection.md
//filament-android/com.google.android.filament/Camera/setCustomProjection
[main]
open fun setCustomProjection(inProjection: Array<Double>, near: Double, far: Double)
Sets a custom projection matrix.
The projection matrix must define an NDC system that must match the OpenGL convention, that is all 3 axis are mapped to [-1, 1].
main
| inProjection | custom projection matrix for rendering and culling |
| near | distance in world units from the camera to the near plane. The near plane's position in view space is z = -near. Precondition: near>0 for PERSPECTIVE or near != far for ORTHO. |
| far | distance in world units from the camera to the far plane. The far plane's position in view space is z = -far. Precondition: far>nearfor PERSPECTIVE or far != nearfor ORTHO. |
[main]
open fun setCustomProjection(inProjection: Array<Double>, inProjectionForCulling: Array<Double>, near: Double, far: Double)
Sets a custom projection matrix.
The projection matrices must define an NDC system that must match the OpenGL convention, that is all 3 axis are mapped to [-1, 1].
main
| inProjection | custom projection matrix for rendering. |
| inProjectionForCulling | custom projection matrix for culling. |
| near | distance in world units from the camera to the near plane. The near plane's position in view space is z = -near. Precondition: near>0 for PERSPECTIVE or near != far for ORTHO. |
| far | distance in world units from the camera to the far plane. The far plane's position in view space is z = -far. Precondition: far>nearfor PERSPECTIVE or far != nearfor ORTHO. |