Z.ToonMaterial
Inherits from Z.Material
Description
A stylised cel-shaded material that makes surfaces appear flatter by using fewer shading colors, with a visibly distinct gradient defined by the numShades property.
Provided by Z.ToonMaterial
Constructor
Functions
ambientColor( ) |
Gets the value of the color burn on the dark areas on the object surface's specified by the ambientMap. |
ambientColor(...) |
Sets the value of the color burn on the dark areas on the object surface's specified by the ambientMap. |
ambientMap( ) |
Gets the texture map that defines how the object's surface reacts to indirect light sources. |
ambientMap(...) |
Sets the texture map that defines how the object's surface reacts to indirect light sources. |
diffuseColor( ) |
Gets the value of the color burn on the object's surface. |
diffuseColor(...) |
Sets the value of the color burn on the object's surface. |
diffuseMap( ) |
Gets the texture map that defines the object's surface color data. |
diffuseMap(...) |
Sets the texture map that defines the object's surface color data. |
emissiveMap( ) |
Gets the texture map that defines areas of the object's surface that appear self-illuminated. |
emissiveMap(...) |
Sets the texture map that defines areas of the object's surface that appear self-illuminated. |
gammaCorrection( ) |
Gets whether gamma correction has been enabled. |
gammaCorrection(...) |
Sets whether to enable gamma correction. |
gamma( ) |
Gets the gamma level. |
gamma(...) |
Sets the gamma level. |
glossinessMap( ) |
Gets the texture map that defines how rough or smooth the object's surface is. |
glossinessMap(...) |
Sets the texture map that defines how rough or smooth the object's surface is. |
numPixelLights( ) |
Gets the number of pixel lights in the scene that the object will react to. |
numPixelLights(...) |
Sets the number of pixel lights in the scene that the object will react to. |
numShades( ) |
Gets the number of steps in the cel-shading gradient on the object's surface. |
numShades(...) |
Sets the number of steps in the cel-shading gradient on the object's surface. |
opacity( ) |
Gets the transparency of the object's surface. |
opacityMap( ) |
Gets the texture map that defines the transparency of the object's surface. |
opacityMap(...) |
Sets the texture map that defines the transparency of the object's surface. |
opacity(...) |
Sets the transparency of the object's surface. |
outlineColor( ) |
Gets the color of the outline on the object's surface. |
outlineColor(...) |
Sets the color of the outline on the object's surface. |
outline( ) |
Gets whether an outline on the object's surface has been enabled. |
outline(...) |
Sets whether to enable an outline on the object's surface. |
outlineWidth( ) |
Sets the width of the outline on the object's surface. |
outlineWidth(...) |
Sets the width of the outline on the object's surface. |
rimLightColor( ) |
Gets the color value of the rim light. |
rimLightColor(...) |
Sets the color value of the rim light. |
rimLightCutoff( ) |
Gets the surface area of the rim light. |
rimLightCutoff(...) |
Sets the surface area of the rim light. |
shininess( ) |
Gets the intensity of the gloss on the object's surface. |
shininess(...) |
Sets the intensity of the gloss on the object's surface. |
specularColor( ) |
Gets the color of the specular highlights on the object's surface. |
specularColor(...) |
Sets the color of the specular highlights on the object's surface. |
specularMap( ) |
Gets the texture map that defines the color of the specular highlights on the object's surface. |
specularMap(...) |
Sets the texture map that defines the color of the specular highlights on the object's surface. |
useRimLight( ) |
Gets whether the appearance of an outline on the object's surface, as if created by a light, has been enabled. |
useRimLight(...) |
Sets whether to enable the appearance of an outline on the object's surface, as if created by a light. |
Inherited from Z.Material
Constructor
Functions
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. |