new PIXI.glCore.Shader(gl, vertexSrc, fragmentSrc, precision, attributeLocations)
| Name | Type | Description |
|---|---|---|
gl |
WebGLRenderingContext | |
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. |
precision |
string |
The float precision of the shader. Options are 'lowp', 'mediump' or 'highp'. |
attributeLocations |
object |
A key value pair showing which location eact attribute should sit eg {position:0, uvs:1} |
Members
-
glWebGLRenderingContext
-
The current WebGL rendering context
-
uniformsObject
-
The uniforms of the shader as an object containing the following properties { gl, data }
Methods
-
Uses this shader
-
Destroys this shader TODO