开口圆柱体未显示内部材料

时间:2012-11-04 21:35:12

标签: three.js

jsFiddle演示问题:http://jsfiddle.net/calvintennant/nnm64/1/

消息来源建议添加mesh.flipSided = true会将材质渲染到网格内部,其他source提到使用mesh.doubleSided = true来显示内部和外部的圆柱体。正如我的jsFiddle所示,这些似乎不起作用..

我做错了吗?

1 个答案:

答案 0 :(得分:6)

migration页面所述,这在r49和r50之间发生了变化!

object.flipSided现在是material.side = THREE.BackSide object.doubleSided现在是material.side = THREE.DoubleSide

修正了jsfiddle:
http://jsfiddle.net/nnm64/2/