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 the 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 object is combined with its background.
Advanced properties: There are a number of advanced properties that control how the low-level WebGL context renders objects. In most cases, you won't need to mess with these properties.
Note that in this chapter, we skip any properties related to textures and maps. Most materials allow you to use images as textures (for instance, a wood...