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?
optionalenableMSAA?: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?
optionalpixelRatio?:number
Defined in: libs/scene/src/app/app.ts:77
Device pixel ratio used when creating the device. Defaults to window.devicePixelRatio or 1.