Skip to content

KBE3D / KBCore / Cesium / WebGLOptions

接口: WebGLOptions

WebGL options to be passed on to HTMLCanvasElement.getContext(). See WebGLContextAttributes

but note the modified defaults for 'alpha', 'stencil', and 'powerPreference'

<p> <code>alpha</code> 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 <code>alpha</code> to true. </p>

属性

alpha?

optional alpha: boolean


depth?

optional depth: boolean


stencil?

optional stencil: boolean


antialias?

optional antialias: boolean


premultipliedAlpha?

optional premultipliedAlpha: boolean


preserveDrawingBuffer?

optional preserveDrawingBuffer: boolean


powerPreference?

optional powerPreference: "default" | "low-power" | "high-performance"


failIfMajorPerformanceCaveat?

optional failIfMajorPerformanceCaveat: boolean

KBE3D @3.0.0 Copyright © 2024-present KBE3D