Class: BatchShaderGenerator

PIXI.BatchShaderGenerator

Helper that generates batching multi-texture shader. Use it with your new BatchRenderer

new PIXI.BatchShaderGenerator (vertexSrc, fragTemplate)

Name Type Description
vertexSrc string

Vertex shader

fragTemplate string

Fragment shader template

Members

fragTemplate string

Reference to the fragment shader template. Must contain "%count%" and "%forloop%".

vertexSrc string

Reference to the vertex shader source.