Module MeshMaterial-PIXI
class type _t = { ... }let createMeshMaterialOptions: ?alpha:int => ?tint:int => ?pluginName:string => ?program:PIXI.Program.t => ?uniforms:Js.t({.. }) => unit => Js.t({. alpha: Js.undefined(int), tint: Js.undefined(int), pluginName: Js.undefined(string), program: Js.undefined(PIXI.Program.t), uniforms: Js.undefined(Js.t({.. })), });
type t= Js.t(_t);Slightly opinionated default shader for PixiJS 2D objects.
module Impl: { ... };include PIXI.Shader.Impl;
let create: ?program:Js.t(PIXI.Program._t) => ?uniforms:'a => unit => PIXI.Shader.t;let getProgram: Js.t(PIXI.Shader._t) => Js.t(PIXI.Program._t);let setProgram: Js.t(PIXI.Shader._t) => Js.t(PIXI.Program._t) => unit;let getUniforms: Js.t(PIXI.Shader._t) => 'a;let from: ?vertexSrc:string => ?fragmentSrc:string => ?uniforms:'a => unit => Js.t(PIXI.Shader._t);
include 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.