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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.