Skip to content

Types

ActiveUniform ​

Defined in: getActiveUniforms.js:2

One of a program's uniforms.

Properties ​

PropertyTypeDescription
locationWebGLUniformLocationIts location.
sizenumberIts length if it's an array, otherwise 1.
typenumberIts type, e.g. gl.FLOAT_VEC3 or gl.SAMPLER_2D.
unit?numberFor a sampler in a renderer: the first texture unit it reads.