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.