Understanding common material properties
You can quickly see for yourself which properties are shared between all the materials. Three.js provides a material base class, THREE.Material
, that lists all these common properties. We’ve divided these common material properties into the following three categories:
- Basic properties: These are the properties you’ll use most often. With these properties, you can, for instance, control the opacity of the object, whether it is visible, and how it is referenced (by ID or custom name).
- Blending properties: Every object has a set of blending properties. These properties define how the color of each point of the material is combined with the color behind it.
- Advanced properties: Several advanced properties control how the low-level WebGL context renders objects. In most cases, you won’t need to deal with these properties.
Note that, in this chapter, we will skip most of the properties related to textures...