MeshPhysicalMaterial 物理材质
MeshPhysicalMaterial 是 MeshStandardMaterial 的扩展,提供了更多的物理特性,如透明度、折射、光泽层等高级效果。也正因如此,其性能会低于MeshStandardMaterial。
javascript
const material = new THREE.MeshPhysicalMaterial({
color: 0x00ff00,
metalness: 0.0,
roughness: 0.0,
transmission: 1.0, // 透射率
thickness: 1.0, // 厚度
ior: 1.5, // 折射率
clearcoat: 1.0, // 透明涂层
clearcoatRoughness: 0.0, // 涂层粗糙度
});主要特点:
- 支持透明和折射效果
- 清漆涂层效果
- 最高质量的渲染
- 性能消耗最大
适用场景:
- 玻璃、水晶等透明材料
- 汽车漆面效果
- 高端产品展示
- 对视觉质量要求最高的场景
