Example
// The data-type of this uniform is defined in your shader.
new PIXI.brend.UniformRedirect({
source: (dob: PIXI.DisplayObject) => dob.transform.worldTransform,
uniform: "transform"
});
Extends
Members
-
The shader variable that references the resource, e.g. attribute or uniform name.
-
The property on the display-object that holds the resource.
Instead of a property, you can provide a callback that generates the resource on invokation.