Transparency

This commit is contained in:
Thomas FORGIONE 2015-04-23 10:48:40 +02:00
parent 43907a6f15
commit 4a125b95c1
1 changed files with 2 additions and 1 deletions

View File

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