Corrected transparency bug
This commit is contained in:
parent
d2ab6b0f63
commit
43907a6f15
|
@ -133,6 +133,8 @@ FixedCamera.prototype.update = function(mainCamera) {
|
||||||
if (elt instanceof THREE.Mesh) {
|
if (elt instanceof THREE.Mesh) {
|
||||||
elt.material.transparent = new_value < 0.9;
|
elt.material.transparent = new_value < 0.9;
|
||||||
elt.material.opacity = new_value;
|
elt.material.opacity = new_value;
|
||||||
|
|
||||||
|
elt.material.transparent = elt.visible = new_value > 0.05;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue