THREE.MeshBasicMaterial

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):

Name

Description

color

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

wireframe

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

wireframeLineWidth

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.