Three.js:平面只有一半的时间可见 [英] Three.js: Plane visible only half the time

查看:157
本文介绍了Three.js:平面只有一半的时间可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Three.js创建了一个旋转的平面。由于某种原因,飞机没有显示一半的时间。我已经创建了一个小提琴这里来显示行为。

I've created a plane, which I rotate, using Three.js. For some reason, the plane doesn't show half the time. I've created a fiddle here showing the behaviour.

推荐答案

请注意,这在Three.js修订版r50中略有改变。渲染飞机的两侧可以通过材料上的属性来实现,即

Note that this has changed slightly in Three.js revision r50. Rendering both sides of a plane can be achieved through the side property on the Material, i.e.

plane.material.side = THREE.DoubleSide;

这里了解更多详情。

这篇关于Three.js:平面只有一半的时间可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆