PIXI.BatchShaderGenerator

class BatchShaderGenerator

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

Constructor


new PIXI.BatchShaderGenerator(vertexSrc: string, fragTemplate: string) → {}
Parameters:
Name Type Description
vertexSrc string

Vertex shader

fragTemplate string

Fragment shader template

Summary


Properties from BatchShaderGenerator

string
fragTemplate

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

string
vertexSrc

Reference to the vertex shader source.

Public Properties


fragTemplate BatchShaderGenerator.ts:15
fragTemplate: string

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

vertexSrc BatchShaderGenerator.ts:12
vertexSrc: string

Reference to the vertex shader source.


Powered by webdoc!