Update: CC - Mouse Move - Moorcow (8a0m30eevi.js) 68 bytes modified

beta.r3js.org
-=yb4f310 2017-11-14 09:02:47 +01:00
parent 27552aa0f4
commit c42508abfd
1 changed files with 4 additions and 3 deletions

View File

@ -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