---
title: "Uniform | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Interface Uniform<T>

#### Deprecated[](#deprecated)

Will be removed from public API in MapTiler SDK v4

interface Uniform<[T](#t)\> {  
    [current](#current): [T](#t);  
    [gl](#gl): [WebGLRenderingContext](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.WebGLRenderingContext/) | [WebGL2RenderingContext](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.WebGL2RenderingContext/);  
    [location](#location): [WebGLUniformLocation](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.WebGLUniformLocation/);  
    [set](#set-1)(v: [T](#t)): void;  
}

#### Type Parameters

-   T

##### Index

### Properties[](#properties)

[current](#current) [gl](#gl) [location](#location)

### Methods[](#methods)

[set](#set)

## Properties[](#properties-1)

### current[](#current)

current: [T](#t)

### gl[](#gl)

gl: [WebGLRenderingContext](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.WebGLRenderingContext/) | [WebGL2RenderingContext](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.WebGL2RenderingContext/)

### location[](#location)

location: [WebGLUniformLocation](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.WebGLUniformLocation/)

## Methods[](#methods-1)

### set[](#set)

-   set(v: [T](#t)): void[](#set-1)
    
    #### Parameters
    
    -   v: [T](#t)
    
    #### Returns void
