ShaderBase

Hierarchy

Constructors

new ShaderBase(context: Context): ShaderBase

Properties

_textureValues: ObjectMap<Texture>

_uniformLocations: ObjectMap<WebGLUniformLocation>

_uniformValues: ObjectMap<UniformValue>

context: Context

program: WebGLProgram

Accessors

get fragmentShader(): string

get vertexShader(): string

Methods

_addShader(type: number, source: string): void

_uniformLocation(name: string): WebGLUniformLocation

dispose(): void

setUniform(name: string, value: UniformValue): void

setUniformInt(name: string, value: number | Vec2): void