# UniformType

engine/Source/Scene/Model/UniformType.js 9
An enum of the basic GLSL uniform types. These can be used with `CustomShader` to declare user-defined uniforms.

##### Properties:

Name | Type | Description
--- | --- | ---
`FLOAT` | string | A single floating point value.
`VEC2` | string | A vector of 2 floating point values.
`VEC3` | string | A vector of 3 floating point values.
`VEC4` | string | A vector of 4 floating point values.
`INT` | string | A single integer value
`INT_VEC2` | string | A vector of 2 integer values.
`INT_VEC3` | string | A vector of 3 integer values.
`INT_VEC4` | string | A vector of 4 integer values.
`BOOL` | string | A single boolean value.
`BOOL_VEC2` | string | A vector of 2 boolean values.
`BOOL_VEC3` | string | A vector of 3 boolean values.
`BOOL_VEC4` | string | A vector of 4 boolean values.
`MAT2` | string | A 2x2 matrix of floating point values.
`MAT3` | string | A 3x3 matrix of floating point values.
`MAT4` | string | A 3x3 matrix of floating point values.
`SAMPLER_2D` | string | A 2D sampled texture.
`SAMPLER_CUBE` | string |

##### 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.

### Members

#### static constant Cesium.UniformType.BOOL : string
engine/Source/Scene/Model/UniformType.js 72

A single boolean value.

Default Value: `bool`

#### static constant Cesium.UniformType.BOOL_VEC2 : string
engine/Source/Scene/Model/UniformType.js 79

A vector of 2 boolean values.

Default Value: `bvec2`

#### static constant Cesium.UniformType.BOOL_VEC3 : string
engine/Source/Scene/Model/UniformType.js 86

A vector of 3 boolean values.

Default Value: `bvec3`

#### static constant Cesium.UniformType.BOOL_VEC4 : string
engine/Source/Scene/Model/UniformType.js 93

A vector of 4 boolean values.

Default Value: `bvec4`

#### static constant Cesium.UniformType.FLOAT : string
engine/Source/Scene/Model/UniformType.js 16

A single floating point value.

Default Value: `float`

#### static constant Cesium.UniformType.INT : string
engine/Source/Scene/Model/UniformType.js 44

A single integer value

Default Value: `int`

#### static constant Cesium.UniformType.INT_VEC2 : string
engine/Source/Scene/Model/UniformType.js 51

A vector of 2 integer values.

Default Value: `ivec2`

#### static constant Cesium.UniformType.INT_VEC3 : string
engine/Source/Scene/Model/UniformType.js 58

A vector of 3 integer values.

Default Value: `ivec3`

#### static constant Cesium.UniformType.INT_VEC4 : string
engine/Source/Scene/Model/UniformType.js 65

A vector of 4 integer values.

Default Value: `ivec4`

#### static constant Cesium.UniformType.MAT2 : string
engine/Source/Scene/Model/UniformType.js 100

A 2x2 matrix of floating point values.

Default Value: `mat2`

#### static constant Cesium.UniformType.MAT3 : string
engine/Source/Scene/Model/UniformType.js 107

A 3x3 matrix of floating point values.

Default Value: `mat3`

#### static constant Cesium.UniformType.MAT4 : string
engine/Source/Scene/Model/UniformType.js 114

A 3x3 matrix of floating point values.

Default Value: `mat4`

#### static constant Cesium.UniformType.SAMPLER_2D : string
engine/Source/Scene/Model/UniformType.js 120

A 2D sampled texture.

Default Value: `sampler2D`

#### static Cesium.UniformType.SAMPLER_CUBE : string
engine/Source/Scene/Model/UniformType.js 121

Default Value: `samplerCube`

#### static constant Cesium.UniformType.VEC2 : string
engine/Source/Scene/Model/UniformType.js 23

A vector of 2 floating point values.

Default Value: `vec2`

#### static constant Cesium.UniformType.VEC3 : string
engine/Source/Scene/Model/UniformType.js 30

A vector of 3 floating point values.

Default Value: `vec3`

#### static constant Cesium.UniformType.VEC4 : string
engine/Source/Scene/Model/UniformType.js 37

A vector of 4 floating point values.

Default Value: `vec4`

Need help? The fastest way to get answers is from the community and team on the Cesium Forum.