Corrected transparency bug

This commit is contained in:
Thomas FORGIONE 2015-04-23 10:43:58 +02:00
parent d2ab6b0f63
commit 43907a6f15
1 changed files with 2 additions and 0 deletions

View File

@ -133,6 +133,8 @@ FixedCamera.prototype.update = function(mainCamera) {
if (elt instanceof THREE.Mesh) {
elt.material.transparent = new_value < 0.9;
elt.material.opacity = new_value;
elt.material.transparent = elt.visible = new_value > 0.05;
}
});