Class: module.exports

module.exports

module.exports

module.exports

new PIXI.glCore.shader.module.exports(gl, vertexSrc, fragmentSrc, attributeLocations){WebGLProgram}

Name Type Description
gl WebGLRenderingContext

The current WebGL context {WebGLProgram}

vertexSrc string | Array.<string>

The vertex shader source as an array of strings.

fragmentSrc string | Array.<string>

The fragment shader source as an array of strings.

attributeLocations Object

An attribute location map that lets you manually set the attribute locations

Returns:
Type Description
WebGLProgram the shader program

module.exports

module.exports

new PIXI.glCore.shader.module.exports(gl, program){Object}

Extracts the attributes

Name Type Description
gl WebGLRenderingContext

The current WebGL rendering context

program WebGLProgram

The shader program to get the attributes from

Returns:
Type Description
Object attributes

module.exports

new PIXI.glCore.shader.module.exports(gl, program){Object}

Extracts the uniforms

Name Type Description
gl WebGLRenderingContext

The current WebGL rendering context

program WebGLProgram

The shader program to get the uniforms from

Returns:
Type Description
Object uniforms