Transparency

This commit is contained in:
Thomas FORGIONE 2015-04-23 10:50:18 +02:00
parent 4a125b95c1
commit 1667488f93
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ FixedCamera.prototype.update = function(mainCamera) {
elt.material.transparent = new_value < 0.9;
elt.material.opacity = new_value;
if (new_value < 0.05)
if (new_value < 0.1)
elt.material.transparent = elt.visible = false;
}
});