Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

White lines crossing rendered cube

lines on render cube issue illustrated

I got this while trying to render a cube on Three.js, using THREE.MeshBasicMaterial() and a loaded texture.

Is this normal? How can I fix it?

like image 201
MaiaVictor Avatar asked Feb 14 '12 01:02

MaiaVictor


1 Answers

Set the option overdraw:true.

var material = new THREE.MeshBasicMaterial( { map: texture, overdraw: true } );
like image 87
stury Avatar answered Oct 20 '22 08:10

stury