TextureUniform

new Cesium.TextureUniform(options, textureMinificationFilter, textureMagnificationFilter)

A simple struct that serves as a value of a sampler2D-valued uniform. This is used with CustomShader and TextureManager
Name Type Default Description
options Object An object with the following properties:
Name Type Default Description
typedArray Uint8Array optional 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 optional The width of the image. Required when options.typedArray is present
height Number optional The height of the image. Required when options.typedArray is present.
url String | Resource optional A URL string or resource pointing to a texture image.
repeat Boolean true optional When defined, the texture sampler will be set to wrap in both directions
pixelFormat PixelFormat PixelFormat.RGBA optional When options.typedArray is defined, this is used to determine the pixel format of the texture
pixelDatatype PixelDatatype PixelDatatype.UNSIGNED_BYTE optional When options.typedArray is defined, this is the data type of pixel values in the typed array.
textureMinificationFilter TextureMinificationFilter TextureMinificationFilter.LINEAR optional The minification filter of the texture sampler.
textureMagnificationFilter TextureMagnificationFilter TextureMagnificationFilter.LINEAR optional The magnification filter of the texture sampler.
options.maximumAnisotropy Number 1.0 optional 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.