3d - If two plane orthogonal with each other, the transparency of the first plane is wrong -
in three.js, if 2 plane orthogonal each other, transparent of 1 plane wrong.
var material = new three.meshbasicmaterial({ transparent: true, side: three.doubleside, fog: false, color: 0x00ff00, opacity: 0.3 });
jsfiddle code
if add together 3 plane, result same, there no transparent effect in first plane. jsfiddle code1
problem solved : three.js / webgl - transparent planes hiding other planes behind them
thanks @alex under
jsfiddle code
var material = new three.meshbasicmaterial({ transparent: true, side: three.doubleside, fog: false, color: 0x00ff00, opacity: 0.2, depthwrite: false, depthtest: false });
3d three.js transparent plane
No comments:
Post a Comment