<mesh>
<boxGeometry args={[1, 1, 1]} />
<meshStandardMaterial attach="material-0" color="red" />
{/* 左边 */}
<meshStandardMaterial attach="material-1" color="gold" />
{/* 上边 */}
<meshStandardMaterial attach="material-2" color="pink" />
{/* 下边 */}
<meshStandardMaterial attach="material-3" color="green" />
{/* 前边 */}
<meshStandardMaterial attach="material-4" color="blue" />
{/* 后边 */}
<meshStandardMaterial attach="material-5" color="purple" />
</mesh>
react three fiber 如何使用多个材质
最新推荐文章于 2024-08-15 09:30:20 发布