Interface ShaderInterface

Interface to access data from a WebGl shaderprogram. This should always mirror the (static) interface of Shader. It exposes the static members of Shader in an instance-based way. e.g.:

let shader: ShaderInterface;

can take values of type

typeof Shader | ShaderInteface
interface ShaderInterface {
    attributes: {
        [name: string]: number;
    };
    define: string[];
    program: WebGLProgram;
    uniforms: {
        [name: string]: WebGLUniformLocation;
    };
    getFragmentShaderSource(): string;
    getVertexShaderSource(): string;
}

Properties

attributes: {
    [name: string]: number;
}

Type declaration

  • [name: string]: number
define: string[]
program: WebGLProgram
uniforms: {
    [name: string]: WebGLUniformLocation;
}

Type declaration

  • [name: string]: WebGLUniformLocation

Methods