Update: CC - Mouse Move - Moorcow (8a0m30eevi.js) 68 bytes modified
parent
27552aa0f4
commit
c42508abfd
|
@ -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
|
Loading…
Reference in New Issue