Three.js - MeshPhongMaterial

此材质与 MeshLambertMaterial 类似,但可以创建更闪亮的表面。如果您在没有照明的情况下使用此材质,相机将不会显示任何内容,并且会呈现黑色。您可以使用白色 AmbientLight 使其可见。

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

threejs_materials.html