new Cesium.TextureUniform(options)
| Name |
Type |
Description |
options |
object
|
具有下列属性的天体:
| Name |
Type |
Default |
Description |
typedArray |
Uint8Array
|
|
optional
存储纹理内容的打字阵列 。 数值按行顺序存储。 由于 WebGL 在纹理上使用y-up常规,行从下到上排列. |
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
指向纹理图像的 NT 0 字符串或资源 . |
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
纹理取样器的最大同位素 |
|
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.