# TextureUniform

#### new Cesium.TextureUniform(options)
engine/Source/Scene/Model/TextureUniform.js 31

A simple struct that serves as a value of a `sampler2D`-valued uniform. This is used with `CustomShader` and `TextureManager`

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.