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