Module MeshMaterial-PIXI.Impl

let _create: uSampler:PIXI.Texture.t => ?⁠options:'a => unit => t;
let create: uSampler:PIXI.Texture.t => ?⁠options:Js.t({. alpha: Js.undefined(int), pluginName: Js.undefined(string), program: Js.undefined(PIXI.Program.t), tint: Js.undefined(int), uniforms: Js.undefined(Js.t({.. })), }) => unit => t;
let getAlpha: Js.t(_t) => float;

This gets automatically set by the object using this.

let setAlpha: Js.t(_t) => float => unit;

This gets automatically set by the object using this.

let getBatchable: Js.t(_t) => bool;

true if shader can be batch with the renderer's batch system.

let setBatchable: Js.t(_t) => bool => unit;

true if shader can be batch with the renderer's batch system.

let getPluginName: Js.t(_t) => string;

Renderer plugin for batching

let setPluginName: Js.t(_t) => string => unit;

Renderer plugin for batching

let getTexture: Js.t(_t) => string;

Reference to the texture being rendered.

let setTexture: Js.t(_t) => string => unit;

Reference to the texture being rendered.

let getTint: Js.t(_t) => int;

Multiply tint for the material.

let setTint: Js.t(_t) => int => unit;

Multiply tint for the material.

let getUVMatrix: Js.t(_t) => PIXI.TextureMatrix.t;

TextureMatrix instance for this Mesh, used to track Texture changes

let update: t => unit;

Gets called automatically by the Mesh. Intended to be overridden for custom MeshMaterial objects.