Options
All
  • Public
  • Public/Protected
  • All
Menu
memberof

PIXI

hideconstructor

Hierarchy

  • BatchPluginFactory

Index

Constructors

constructor

Accessors

Static defaultFragmentTemplate

  • get defaultFragmentTemplate(): string
  • The default fragment shader source

    static
    constant

    Returns string

Static defaultVertexSrc

  • get defaultVertexSrc(): string
  • The default vertex shader source

    static
    constant

    Returns string

Methods

Static create

  • Create a new BatchRenderer plugin for Renderer. this convenience can provide an easy way to extend BatchRenderer with all the necessary pieces.

    example

    const fragment = ` varying vec2 vTextureCoord; varying vec4 vColor; varying float vTextureId; uniform sampler2D uSamplers[%count%];

    void main(void){ vec4 color; %forloop% gl_FragColor = vColor * vec4(color.a - color.rgb, color.a); } `; const InvertBatchRenderer = PIXI.BatchPluginFactory.create({ fragment }); PIXI.Renderer.registerPlugin('invert', InvertBatchRenderer); const sprite = new PIXI.Sprite(); sprite.pluginName = 'invert';

    static

    Parameters

    Returns typeof AbstractBatchRenderer

    New batch renderer plugin

Generated using TypeDoc