Package-level declarations

Types

Link copied to clipboard
actual class CameraBackground(engine: Engine, session: ArSession)

Draws the session's camera image behind everything else in a Filament scene, filling the viewport. This is what makes rendered content look placed in the real world.

expect class CameraBackground(engine: Engine, session: ArSession)

Draws the session's camera image behind everything else in a Filament scene, filling the viewport. This is what makes rendered content look placed in the real world.

actual class CameraBackground(engine: Engine, session: ArSession)

ARKit delivers the camera image as a pixel buffer with a luma and a chroma plane. Each plane becomes a Metal texture that shares the buffer's memory, imported into Filament for the one frame it is drawn in; the material converts to RGB.

Functions

Link copied to clipboard
actual fun ArSession.createEngine(): Engine

Creates the Filament engine to render this session with. Only an engine created here can draw the camera image through CameraBackground: on Android it uses the OpenGL backend and shares the GL context ARCore writes the image in. On iOS it is a Metal engine with nothing special about it.

expect fun ArSession.createEngine(): Engine

Creates the Filament engine to render this session with. Only an engine created here can draw the camera image through CameraBackground: on Android it uses the OpenGL backend and shares the GL context ARCore writes the image in. On iOS it is a Metal engine with nothing special about it.

actual fun ArSession.createEngine(): Engine

Creates the Filament engine to render this session with. Only an engine created here can draw the camera image through CameraBackground: on Android it uses the OpenGL backend and shares the GL context ARCore writes the image in. On iOS it is a Metal engine with nothing special about it.

Link copied to clipboard
fun Mat4.toFilament(): Mat4

This transform as filament-utils' matrix, for the math Koord's own type leaves out.