diff --git a/js/FixedCamera.js b/js/FixedCamera.js index a4a3047..1f44ff8 100644 --- a/js/FixedCamera.js +++ b/js/FixedCamera.js @@ -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; } });