Three.js - MeshLambertMaterial



You can use this material to create dull-looking, non-shiny surfaces. It is a very easy-to-use material that responds to the lighting sources in the scene. It has two main properties −

  • color − This is the color of the material

  • emissive − This is the color that the material emits. You can use this to create objects that look like they glow.

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