Class BatchShaderGenerator
Constructors
constructor
- new BatchShaderGenerator(
vertexSrc: string,
fragTemplate: string,
): BatchShaderGenerator Parameters
- vertexSrc: string
- fragTemplate: string
Properties
defaultGroupCache
fragTemplate
fragTemplate: string
programCache
programCache: { [key: number]: Program } vertexSrc
vertexSrc: string
Methods
generateSampleSrc
- generateSampleSrc(maxTextures: number): string
Returns string
generateShader
- generateShader(maxTextures: number): Shader
Helper that generates batching multi-texture shader. Use it with your new BatchRenderer
Memberof
PIXI