Self-transparency is particularly difficult in WebGL and three.js. You just have to really understand the issues, and then adapt your code to achieve the effect you want.
You can achieve the look of a double-sided, transparent sphere in three.js, with a trick: You need to render two transparent spheres -- one with material.side = THREE.BackSide
, and one with material.side = THREE.FrontSide
.
Using such methods is generally required if you want self-transparency without artifacts -- especially if you allow the camera or object to move.
Here is a fiddle: http://jsfiddle.net/x5bm0qLf/
EDIT: Updated fiddle to three.js r.105
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…