Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Three.js: Plane visible only half the time

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.

like image 320
Randomblue Avatar asked Jun 04 '12 23:06

Randomblue


1 Answers

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; 

Look here for more details.

like image 188
Chris Avatar answered Sep 24 '22 00:09

Chris