UniformRedirect

class UniformRedirect extends Redirect

This redirect is used to aggregate & upload uniforms required for shading the display-object.


 // The data-type of this uniform is defined in your shader.
 new UniformRedirect({
      source: (dob: PIXI.DisplayObject) => dob.transform.worldTransform,
      uniform: "transform"
 });

Summary


Properties inherited from Redirect

string
glslIdentifer

The shader variable that references the resource, e.g. attribute or uniform name.

string | ((displayObject: PIXI.DisplayObject, renderer: BatchRenderer) => any)
source

The property on the display-object that holds the resource.


Powered by webdoc!