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.