Three.js - MeshLambertMaterial

您可以使用此材质创建暗淡、无光泽的表面。它是一种非常易于使用的材质,可响应场景中的光源。它有两个主要属性 −

  • color − 这是材质的颜色

  • emissive(发光) − 这是材质发出的颜色。您可以使用它来创建看起来像发光的物体。

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

threejs_materials.html