Interface: ViewSystemOptions

ViewSystemOptions

Options passed to the ViewSystem

Properties:
Name Type Attributes Default Description
antialias boolean <optional>
false

Whether to enable anti-aliasing. This may affect performance.

autoDensity boolean <optional>
false

Resizes renderer view in CSS pixels to allow for resolutions other than 1. This is only supported for HTMLCanvasElement and will be ignored if the canvas is an OffscreenCanvas.

backgroundAlpha number <optional>

The alpha of the background.

canvas ICanvas <optional>

The canvas to use as a view, optional.

depth boolean <optional>

Whether to ensure the main view has can make use of the depth buffer. Always true for WebGL renderer.

height number <optional>
600

The height of the screen.

multiView boolean <optional>

TODO: multiView

resolution number <optional>

The resolution / device pixel ratio of the renderer.

width number <optional>
800

The width of the screen.

backgroundAlpha number 1

Transparency of the background color, value from 0 (fully transparent) to 1 (fully opaque).

view ICanvas

Members

antialias boolean

Whether to enable anti-aliasing. This may affect performance.

Default Value:
  • false

autoDensity boolean

Resizes renderer view in CSS pixels to allow for resolutions other than 1. This is only supported for HTMLCanvasElement and will be ignored if the canvas is an OffscreenCanvas.

Default Value:
  • false

backgroundAlpha number

The alpha of the background.

canvas ICanvas

The canvas to use as a view, optional.

depth boolean

Whether to ensure the main view has can make use of the depth buffer. Always true for WebGL renderer.

height number

The height of the screen.

Default Value:
  • 600

multiView boolean

TODO: multiView

resolution number

The resolution / device pixel ratio of the renderer.

width number

The width of the screen.

Default Value:
  • 800

backgroundAlpha number

Transparency of the background color, value from 0 (fully transparent) to 1 (fully opaque).

Default Value:
  • 1

view ICanvas Deprecated