In this section we'll look at the more advanced materials that the Three.js library has to offer. We'll first look at the
MeshPhongMaterial and then the
MeshLambertMaterial. These two materials, react to light sources and can be used to create shiny and dull-looking materials respectively. In this section we'll also look at one of the most versatile but most difficult-to-use materials:
ShaderMaterial. With the
ShaderMaterial, you can create your own shader programs that will define how the material and object should be shown. For the last subject in this section on advanced materials, we'll look at how you can create a mesh that has multiple materials assigned to it instead of just one.