Three.js - MeshLambertMaterial



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

  • 颜色 − 这是该材质的颜色

  • 发光 − 这是该材质发出的颜色。你可以使用它来创建看起来发光物体。

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
广告
© . All rights reserved.