SceneConfig

constructor(renderOptions: RenderOptions = RenderOptions.Default, lightDirection: Vector = DEFAULT_LIGHT_DIRECTION.normalize(), defaultColor: IsoColor = IsoColor(33.0, 150.0, 243.0), colorPalette: ColorPalette = ColorPalette(), strokeStyle: StrokeStyle = StrokeStyle.FillAndStroke(), gestures: GestureConfig = GestureConfig.Disabled, useNativeCanvas: Boolean = false, cameraState: CameraState? = null)

Parameters

renderOptions

Controls rendering behaviour such as sorting and face culling.

lightDirection

Normalized direction vector for the scene's light source, used to compute per-face shading.

defaultColor

Fallback IsoColor applied to shapes that do not specify their own color.

colorPalette

A ColorPalette providing named semantic colors (primary, secondary, etc.) that shapes can reference for consistent theming.

strokeStyle

Determines how shape outlines are drawn. Defaults to StrokeStyle.FillAndStroke.

gestures

A GestureConfig controlling tap and drag interaction with the scene. Defaults to GestureConfig.Disabled.

useNativeCanvas

When true, renders directly to the platform's native canvas instead of the Compose draw scope. May improve performance on some devices.

cameraState

Optional CameraState for pan/zoom control. When null, the scene uses a fixed viewport. Equality is checked by reference identity.