2012-11-08 44 views

回答

10

MeshBasicMaterialMeshLambertMaterialMeshPhongMaterialMeshStandardMaterial支持一个alphaMap

或者,您可以将透明度烘焙到颜色纹理的Alpha通道中。

无论哪种情况,您都需要设置material.transparent = true

编辑:如果你正在执行一个切出(alpha是0或1),那么代替设置material.transparent = true,你可以设置material.alphaTest = 0.5

three.js r.87

+0

好人,非常感谢。 – vvMINOvv

+0

@WestLangley这仍然是这样吗?我注意到现在有一​​个alphaMap属性。这是否使这个功能内置? – Michael

+0

@Michael感谢您的评论。答案已更新。 – WestLangley

相关问题