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

Chapter 4. Working with the Three.js Materials

In the previous chapters we've already talked a bit about materials. You've learned that a material, together with a geometry, forms a mesh. The material is like the skin of the object, which defines what the outside of a geometry looks like. For example, a skin defines whether a geometry is metallic-looking, transparent, or shown as a wireframe. This mesh can then be added to the scene to be rendered by the Three.js library. So far we haven't really looked at the materials in much detail. In this chapter, we'll dive into all the materials that the Three.js library has to offer and you'll learn how you can use these materials to create good-looking 3D objects. The materials that we'll explore in this ...

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