Z.Material

Studio

Z.Material

Inherits from Z.Base

Inherited by: Z.StandardLightingMaterial, Z.ToonMaterial

Description

A Z.Material object wraps another texture (e.g. Z.ImageTexture or Z.VideoTexture) and provides functions for masking it with another texture or altering how it is rendered.

The Z.Object node can have its materials property set to Z.Material objects.

Provided by Z.Material

Constructor

Z.Material( ) Constructs a new Z.Material instance.

Functions

blend( ) Gets the current blend type for this material.
blend(...) Sets the current blend type for this material.
color( ) Gets the color of the material.
color(...) Sets the color of the material.
cullFaces( ) Gets which faces will be culled from rendering.
cullFaces(...) Sets which faces to cull from rendering.
mask( ) Gets the texture used to mask the skin.
mask(...) Sets a texture used to mask the skin.
maskAlphaChannel( ) Gets which of the mask's channels are used as the alpha channel.
maskAlphaChannel(...) Sets which of the mask's channels are used as the alpha channel.
skin( ) Gets the texture used as the skin.
skin(...) Sets a texture used as the skin.

Inherited from Z.Base

Functions

emit(...) Calls the handler functions attached to an event.
hasTag(...) Returns true if this object has the specified tag.
off(...) Removes a handler function from an event.
on(...) Attaches a handler function to an event.
one(...) Attaches a single-use handler function to an event.
pushTag(...) Adds a tag to this object.
removeTag(...) Removes a tag from this object.
tags( ) Gets an array of the tags that this object belongs to.
tags(...) Sets the array of the tags that this object belongs to.
Open in new window