Type Definitions
Material
Common interface of the public scene materials: UnlitMaterial, StandardMaterial, PointsMaterial and LineMaterial.
Properties
| clone function | Returns a copy of the material. |
| getColor function | Returns a copy of the base color. |
| setColor function | Sets the base color. |
| getOpacity function | Returns the opacity in [0, 1]. |
| setOpacity function | Sets the opacity in [0, 1]. Requires setTransparent(true) for < 1. |
| getVertexColors function | Returns whether per-vertex colors are used. |
| setVertexColors function | Sets whether per-vertex colors are used. |
| getDepthWrite function | Returns whether the material writes to the depth buffer. |
| setDepthWrite function | Sets whether the material writes to the depth buffer. |
| getDepthTest function | Returns whether the material depth-tests against the depth buffer. |
| setDepthTest function | Sets whether the material depth-tests against the depth buffer. |
| getTransparent function | Returns whether the material renders in the transparent pass. |
| setTransparent function | Sets whether the material renders in the transparent pass with alpha blending. |