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:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
alpha |
boolean |
<optional> |
false | |
depth |
boolean |
<optional> |
true | |
stencil |
boolean |
<optional> |
false | |
antialias |
boolean |
<optional> |
true | |
premultipliedAlpha |
boolean |
<optional> |
true | |
preserveDrawingBuffer |
boolean |
<optional> |
false | |
powerPreference |
"default" | "low-power" | "high-performance" |
<optional> |
"high-performance" | |
failIfMajorPerformanceCaveat |
boolean |
<optional> |
false |
