Class UniformAbstract

A global variable in a WebGL shader program.

Hierarchy

Constructors

Properties

activeInfo: WebGLActiveInfo

The active information of this uniform.

context: Context

The rendering context of this variable.

location: WebGLUniformLocation

The location of this uniform.

program: Program

The shader program that this variable belongs to.

sourceLength?: number

The length of the given value. Calculated automatically if not set.

sourceOffset?: number

The offset from the start of the given value to pass to WebGL.

The value of this uniform.

Accessors

  • get size(): number
  • The size of this variable in memory in bytes.

    Returns number

Methods

Generated using TypeDoc