...

/

Updating All the Materials in the Scene

Updating All the Materials in the Scene

Learn how to use different materials for creating mesh in Three.js.

Material properties in THREE.Scene

A THREE.Scene has two properties that affect the material of the meshes in the scene. The first one is the overrideMaterial property. First, let’s demonstrate how this works. When we open the basic-scene.js example in the below playground, we can click on the “Toggle Override Material” button. This will change the material of all the meshes in the scene to a ...