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

前端 未结 6 503
梦毁少年i
梦毁少年i 2020-11-27 17:18

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?<

6条回答
  •  执笔经年
    2020-11-27 18:09

    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 });
    

提交回复
热议问题