Skip to content

Documentation / scene / AppOptions

Interface: AppOptions

Defined in: libs/scene/src/app/app.ts:60

Options for Application.

Extended by

Properties

canvas

canvas: HTMLCanvasElement

Defined in: libs/scene/src/app/app.ts:64

Target canvas element to attach the rendering device to.


backend

backend: DeviceBackend

Defined in: libs/scene/src/app/app.ts:68

Device backend implementation to use for GPU creation (e.g., WebGL/WebGPU backend).


enableMSAA?

optional enableMSAA?: boolean

Defined in: libs/scene/src/app/app.ts:73

Whether to enable multi-sample anti-aliasing (MSAA) if supported by the backend. Defaults to false.


pixelRatio?

optional pixelRatio?: number

Defined in: libs/scene/src/app/app.ts:77

Device pixel ratio used when creating the device. Defaults to window.devicePixelRatio or 1.

Released under the MIT License.