Skip to main content

Interface: IViewerAppOptions

Core-API.IViewerAppOptions

Options for the ViewerApp creation.

Properties

canvas

Optional canvas: HTMLCanvasElement

The canvas element to use for rendering.

Defined in

webgi/src/viewer/ViewerApp.ts:79


container

Optional container: HTMLElement

The container for the canvas. Only one of container and canvas must be specified.

Defined in

webgi/src/viewer/ViewerApp.ts:83


screenShader

Optional screenShader: TViewerScreenShader

The fragment shader snippet to render on screen. not used with TonemapPlugin

Defined in

webgi/src/viewer/ViewerApp.ts:88


isAntialiased

Optional isAntialiased: boolean

Use MSAA. Not supported yet

Defined in

webgi/src/viewer/ViewerApp.ts:92


useRgbm

Optional useRgbm: boolean

Use RGBM HDR Pipeline

Defined in

webgi/src/viewer/ViewerApp.ts:96


useGBufferDepth

Optional useGBufferDepth: boolean

Use rendered gbuffer as depth-prepass.

Defined in

webgi/src/viewer/ViewerApp.ts:100


assetManager

Optional assetManager: boolean | AssetManagerOptions

Options for the asset manager plugin. If set to false, the asset manager plugin will not be added.

Defined in

webgi/src/viewer/ViewerApp.ts:105


dropzone

Optional dropzone: boolean

Toggle for the Dropzone Plugin, will be added if set to true.

Defined in

webgi/src/viewer/ViewerApp.ts:109