O'Reilly logo

Learning Three.js: The JavaScript 3D Library for WebGL by Jos Dirksen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Learning about the advanced materials

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.

The MeshLambertMaterial ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required