diff --git a/8a0m30eevi.js b/8a0m30eevi.js index 44dfffd..bd44cb4 100644 --- a/8a0m30eevi.js +++ b/8a0m30eevi.js @@ -11,6 +11,7 @@ if (!this.initialized) { this.cursor = this.entityLoaded.cursor; this.thrower = this.entityLoaded.thrower; this.throwerParticleEngine = this.entityLoaded.throwerParticleEngine; + this.toBlack = new THREE.Color(0.01, 0.01, 0.01); this.initialized = true; } @@ -88,15 +89,15 @@ intersects.map( if (mesh.instance.material instanceof Array) { mesh.instance.material.map( function(material) { - material.color.addScalar(-0.01); + material.color.sub(this.toBlack); } ); } else { - mesh.instance.material.color.addScalar(-0.01); + mesh.instance.material.color.sub(this.toBlack); } } } - } + }.bind(this) ); //@ sourceURL=mouseMove.js \ No newline at end of file