The rendering context.
The vertex shader source as an array of strings.
The fragment shader source as an array of strings.
A key value pair showing which location
each attribute should sit eg { position: 0, uvs: 1 }
.
The attribute locations of this program
The underlying GL program.
The uniform locations of this program
The rendering context.
The vertex shader source as an array of strings.
The fragment shader source as an array of strings.
A key value pair showing which location
each attribute should sit eg { position: 0, uvs: 1 }
.
Compiles source into a program.
The rendering context.
The type, can be either gl.VERTEX_SHADER or gl.FRAGMENT_SHADER.
The fragment shader source as an array of strings.
Generated using TypeDoc
Helper class to manage GL shader programs.