Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
uColor: new Float32Array([1, 1, 1, 1]),
};
// Set defaults
options = Object.assign({
tint: 0xFFFFFF,
alpha: 1,
pluginName: 'batch',
}, options);
if (options.uniforms)
{
Object.assign(uniforms, options.uniforms);
}
super(options.program || Program.from(vertex, fragment), uniforms);
/**
* Only do update if tint or alpha changes.
* @member {boolean}
* @private
* @default false
*/
this._colorDirty = false;
/**
* TextureMatrix instance for this Mesh, used to track Texture changes
*
* @member {PIXI.TextureMatrix}
* @readonly
*/
this.uvMatrix = new TextureMatrix(uSampler);
constructor()
{
const program = Program.from(vertex, fragment);
super(program, {});
}
}