Three.js - MeshPhongMaterial



此材质类似于 MeshLambertMaterial 但可以创建更多闪亮的表面。如果你在没有灯光的情况下使用此材质,摄影机将一无所示,且为黑色。你可以使用白色环境光使其可见。

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