Class: UniformRedirect

.brend~UniformRedirect

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

new UniformRedirect ()

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

glslIdentifer string inherited overrides

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

source string | function inherited overrides

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.