TextureUniform
Name |
Type |
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. |
minificationFilter |
TextureMinificationFilter
|
TextureMinificationFilter.LINEAR
|
optional
The minification filter of the texture sampler. |
magnificationFilter |
TextureMagnificationFilter
|
TextureMagnificationFilter.LINEAR
|
optional
The magnification filter of the texture sampler. |
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.
Need help? The fastest way to get answers is from the community and team on the
Cesium Forum.