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 |
The shader variable that references the resource, e.g. attribute or uniform name. |
string | ((displayObject: PIXI.DisplayObject, renderer: BatchRenderer) => any) |
The property on the display-object that holds the resource. |