From c42508abfde53960e07c9904c3c921a028a12aab Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Tue, 14 Nov 2017 09:02:47 +0100 Subject: [PATCH] Update: CC - Mouse Move - Moorcow (8a0m30eevi.js) 68 bytes modified --- 8a0m30eevi.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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