MeshBasicMaterial is a very simple material that doesn't take into account the lights that are available in the scene. Meshes with this material will be rendered as simple, flat polygons, and you also have the option to show the geometry's wireframe. Besides the common properties we saw in the earlier section on this material, we can set the following properties (once again, we ignore the properties which are used for textures, since we'll discuss those in the chapter on textures):




This property allows you to set the color of the material.


This allows you to render the material as a wireframe. This is great for debugging purposes.


If you enable ...

Get Learn Three.js - Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.