new PIXI.MeshMaterial (uSampler, options) overrides
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
uSampler |
PIXI.Texture |
Texture that material uses to render. |
||
options |
object |
<optional> |
Additional options |
|
options.alpha |
number |
<optional> |
1 |
Default alpha. |
options.tint |
number |
<optional> |
0xFFFFFF |
Default tint. |
options.pluginName |
string |
<optional> |
'batch' |
Renderer plugin for batching. |
options.program |
PIXI.Program |
<optional> |
0xFFFFFF |
Custom program. |
options.uniforms |
object |
<optional> |
Custom uniforms. |
Extends
Members
This gets automatically set by the object using this.
- Default Value:
- 1
true
if shader can be batch with the renderer's batch system.
- Default Value:
- true
Renderer plugin for batching
- Default Value:
- 'batch'
texture PIXI.Texture
Reference to the texture being rendered.
Multiply tint for the material.
- Default Value:
- 0xFFFFFF
uvMatrix PIXI.TextureMatrix
TextureMatrix instance for this Mesh, used to track Texture changes
Methods
Gets called automatically by the Mesh. Intended to be overridden for custom MeshMaterial objects.
Renders the mesh using the Canvas renderer
Name | Type | Description |
---|---|---|
renderer |
PIXI.CanvasRenderer |
The canvas renderer. |
mesh |
PIXI.Mesh |
Mesh to render. |
Inherited Properties
From class PIXI.Shader
program PIXI.Program inherited
Program that the shader uses
uniforms object inherited
Shader uniform values, shortcut for uniformGroup.uniforms