Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Three.js / WebGL - transparent planes hiding other planes behind them

Tags:

When you have two planes in Three.js / WebGL and one or both of them are transparent, sometimes the plane behind will be hidden by the transparent plane above. Why is this?

like image 843
MaiaVictor Avatar asked Jun 22 '12 23:06

MaiaVictor


1 Answers

Let's say that you are using some transparent *.png image. Then this would help:

new THREE.MeshBasicMaterial( { side:THREE.BackSide,map:texture, depthWrite: false, depthTest: false }); 
like image 70
Alex Under Avatar answered Nov 09 '22 23:11

Alex Under