Type alias: CanvasConfig
Ƭ CanvasConfig: Object
config data for canvas
Type declaration
Name | Type | Description |
---|---|---|
canvas? | HTMLCanvasElement | reference of canvas |
alpha? | boolean | wheter use transparent background To set a transparent background, the SkyRendererSkyRenderer component should be disabled skyRender.enable = false |
zIndex? | number | canvas styler zIndex |
devicePixelRatio? | number | canvas pixel ratio use window.devicePixelRatio is not provided |
backgroundImage? | string | canvas background image a canvas background when skybox is hide/disabled and CanvasConfig.alpha is true |