ContextOptions

external interface ContextOptions(source)

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

Link copied to clipboard

If true, use anisotropic filtering during texture sampling Default value - true

Link copied to clipboard
abstract var getWebGLStub: Function<*>?

A function to create a WebGL stub for testing

Link copied to clipboard
abstract var requestWebgl1: Boolean?

If true and the browser supports it, use a WebGL 1 rendering context Default value - false

Link copied to clipboard
abstract var webgl: WebGLOptions?

WebGL options to be passed on to canvas.getContext