Projection
Camera projection. Pass an instance as the Camera.projection argument.
Perspective — FOV-based (most common; suitable for 3-D scenes).
Orthographic — parallel projection (useful for UI, 2-D, CAD).
Lens — physical lens simulation (focal-length / sensor size).
Inheritors
Types
Link copied to clipboard
data class Orthographic(val left: Double = -1.0, val right: Double = 1.0, val bottom: Double = -1.0, val top: Double = 1.0, val near: Double = 0.0, val far: Double = 1.0) : Projection
Link copied to clipboard
data class Perspective(val fovDegrees: Double = 45.0, val near: Double = 0.1, val far: Double = 100.0, val fovDirection: Camera.Fov = FilamentCamera.Fov.VERTICAL) : Projection