Transparency
This commit is contained in:
parent
43907a6f15
commit
4a125b95c1
|
@ -134,7 +134,8 @@ FixedCamera.prototype.update = function(mainCamera) {
|
||||||
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;
|
if (new_value < 0.05)
|
||||||
|
elt.material.transparent = elt.visible = false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue