Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Three.js PlaneGeometry is giving me on sided texture

As shown in this fiddle when rotated, a sprite disapear at some angles, and just one side is rendered. How come? What is the solution to render both sides? Do I have to manipulate the angle?

Thank you

like image 387
BaptisteB Avatar asked Dec 27 '22 20:12

BaptisteB


1 Answers

Faces are one-sided by default.

To render both sides, set mesh.material.side = THREE.DoubleSide;

three.js r.58

like image 76
WestLangley Avatar answered Dec 30 '22 11:12

WestLangley