Three.js - MeshStandardMaterial



It is similar but gives a more accurate and realistic looking result than the MeshLambertMaterial or MeshPhongMaterial. Instead of shininess, it has two properties: roughness and metalness.

const geometry = new THREE.BoxGeometry(2, 2, 2)
const material = new THREE.MeshStandardMaterial({ color, roughness, metalness })
const cube = new THREE.Mesh(geometry, material)
threejs_materials.htm
Advertisements