Class: Shader

PIXI. Shader

Wrapper class, webGL Shader for Pixi.
Adds precision string if vertexSrc or fragmentSrc have no mention of it.

new PIXI.Shader(gl, vertexSrc, fragmentSrc)

Name Type Description
gl WebGLRenderingContext

The current WebGL rendering context

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.

Extends

  • GLShader