WebGLOptions

external interface WebGLOptions(source)

WebGL options to be passed on to HTMLCanvasElement.getContext(). See WebGLContextAttributes but note the modified defaults for 'alpha', 'stencil', and 'powerPreference'

alpha defaults to false, which can improve performance compared to the standard WebGL default of true. If an application needs to composite Cesium above other HTML elements using alpha-blending, set alpha to true.

Properties

Link copied to clipboard
abstract external val alpha: Boolean?
Link copied to clipboard
abstract external val antialias: Boolean?
Link copied to clipboard
abstract external val depth: Boolean?
Link copied to clipboard
abstract external val failIfMajorPerformanceCaveat: Boolean?
Link copied to clipboard
abstract external val powerPreference: WebGLPowerPreference?
Link copied to clipboard
abstract external val premultipliedAlpha: Boolean?
Link copied to clipboard
abstract external val preserveDrawingBuffer: Boolean?
Link copied to clipboard
abstract external val stencil: Boolean?