A Material object is used to store appearance data for MeshUrbjects. Each Material has a color for the faces of the mesh (fill) and another color for the edges of the faces (wire) as well as an attribute to determine whether the colors of the Material should be affected by lights in the Scene.
See also: Color, MeshUrbject, Scene, Light
Constructors
Variables
Public Variables
| fill: Color |
The fill color of the Material that will fill in the faces of the Mesh in a MeshUrbject. See also: Color, MeshUrbject, Mesh
|
| wire: Color |
The wire color of the Material that will outline the faces of the Mesh in a MeshUrbject. See also: Color, MeshUrbject, Mesh
|
| lit: boolean |
Determines if the Material is affected by lights in the Scene. See also: Scene, Light
|
Functions
Static Functions
| Material.copy(m: Material): Material |
Returns a copy of the Material or creates a new Material from an object that has all of the public attributes from the Material class. |
| Material.setColor(m: Material, c: Color): Material |
Copies the Material and sets the fill and wire color of the copy to the given color. Returns the new Material. See also: Color
|
| Material.setFill(m: Material, c: Color): Material |
Copies the Material and sets the fill color of the copy to the given color. Returns the new Material. See also: Color
|
| Material.setWire(m: Material, c: Color): Material |
Copies the Material and sets the wire color of the copy to the given color. Returns the new Material. See also: Color
|
Home
Copyright © 2020 Trevor Richard