Skip to content

KBE3D / KBCore / Cesium / ContextOptions

接口: ContextOptions

Options to control the setting up of a WebGL Context. <p> <code>allowTextureFilterAnisotropic</code> 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. </p>

属性

requestWebgl1?

optional requestWebgl1: boolean

If true and the browser supports it, use a WebGL 1 rendering context


allowTextureFilterAnisotropic?

optional allowTextureFilterAnisotropic: boolean

If true, use anisotropic filtering during texture sampling


webgl?

optional webgl: WebGLOptions

WebGL options to be passed on to canvas.getContext


getWebGLStub()?

optional getWebGLStub: (...params: any[]) => any

A function to create a WebGL stub for testing

参数

params

...any[]

返回

any

KBE3D @3.0.0 Copyright © 2024-present KBE3D