new PIXI.glCore.shader.compileProgram(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 |