ContextOptions

Options to control the setting up of a WebGL Context.

allowTextureFilterAnisotropic defaults to true, which enables anisotropic texture filtering when the WebGL extension is supported. Setting this to false will improve performance, but hurt visual quality, especially for horizon views.

Properties:
Name Type Attributes Default Description
requestWebgl1 boolean <optional>
false If true and the browser supports it, use a WebGL 1 rendering context
allowTextureFilterAnisotropic boolean <optional>
true If true, use anisotropic filtering during texture sampling
webgl WebGLOptions <optional>
WebGL options to be passed on to canvas.getContext
getWebGLStub function <optional>
A function to create a WebGL stub for testing
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.