Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

THREE.JS: Seeing geometry when inside mesh

When entering the geometry, for example a sphere mesh, it acts as if the geometry doesn't exist. The color and texture are visible on the outside. But once I zoom into the mesh, the properties are gone.

How can I make the color and texture of a sphere mesh be visible inside the mesh?

like image 248
MCSharp Avatar asked Nov 06 '13 23:11

MCSharp


1 Answers

mesh.material.side = THREE.DoubleSide;

Or

mesh.material.side = THREE.BackSide;

three.js r.62

like image 113
WestLangley Avatar answered Nov 04 '22 04:11

WestLangley