Materials
Materials are instances of THREE.Material
that define how objects appear. There are several common material subclasses:
Constructor |
Explanation |
---|---|
|
It is not affected by lighting (a characteristic called unlit), so this is usually used to display a solid color or a wireframe. Two adjacent, same-colored, unlit surfaces are difficult to tell apart. |
|
The red/green/blue values of the colors displayed by this material are based on the magnitude of the x/y/z values of the faces' normal vectors. (A normal vector is perpendicular to a surface.) This material is unlit and useful for quickly distinguishing the shape of an object. |
|
It is an unlit material that shows shades of gray, with brightness depending on the distance from the camera. It is useful when designing scenes before applying more realistic textures. |
|
Faces are affected by lighting, but are not shiny. Specifically, lighting is calculated per-vertex... |