Three.js - MeshStandardMaterial



它類似於 MeshLambertMaterial 或 MeshPhongMaterial,但提供更精細真實的效果。它具有兩個屬性:粗糙度和金屬度,而非光澤度。

const geometry = new THREE.BoxGeometry(2, 2, 2)
const material = new THREE.MeshStandardMaterial({ color, roughness, metalness })
const cube = new THREE.Mesh(geometry, material)
threejs_materials.htm
廣告
© . All rights reserved.