TextureUniform

new Cesium.TextureUniform(options)

A simple struct that serves as a value of a sampler2D-valued uniform. This is used with CustomShader and TextureManager
参数名称 类型 描述信息
options object An object with the following properties:
参数名称 类型 默认值 描述信息
typedArray Uint8Array 可选 A typed array storing the contents of a texture. Values are stored in row-major order. Since WebGL uses a y-up convention for textures, rows are listed from bottom to top.
width number 可选 The width of the image. Required when options.typedArray is present
height number 可选 The height of the image. Required when options.typedArray is present.
url string | Resource 可选 A URL string or resource pointing to a texture image.
repeat boolean true 可选 When defined, the texture sampler will be set to wrap in both directions
pixelFormat PixelFormat PixelFormat.RGBA 可选 When options.typedArray is defined, this is used to determine the pixel format of the texture
pixelDatatype PixelDatatype PixelDatatype.UNSIGNED_BYTE 可选 When options.typedArray is defined, this is the data type of pixel values in the typed array.
minificationFilter TextureMinificationFilter TextureMinificationFilter.LINEAR 可选 The minification filter of the texture sampler.
magnificationFilter TextureMagnificationFilter TextureMagnificationFilter.LINEAR 可选 The magnification filter of the texture sampler.
maximumAnisotropy number 1.0 可选 The maximum anisotropy of the texture sampler
Experimental

This feature is using part of the 3D Tiles spec that is not final and is subject to change without Cesium's standard deprecation policy.