From d0148106a5b2a1565ad927872a1b7a8c4a17fbfe Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Sat, 11 Nov 2017 15:13:33 +0100 Subject: [PATCH] Update: CC - Mouse Move - Moorcow (ud33b2z225.js) 271 bytes modified --- ud33b2z225.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/ud33b2z225.js b/ud33b2z225.js index a3c0c67..76c63f4 100644 --- a/ud33b2z225.js +++ b/ud33b2z225.js @@ -30,6 +30,21 @@ this.thrower.instance.lookAt( ) ); +this.scene.meshes.map( + function(mesh) { + + if (mesh.instance.material instanceof Array) { + mesh.instance.material.map( + function(material) { + material.color.setHex(0xffffff); + } + ); + } else { + mesh.instance.material.color.setHex(0xffffff); + } + } +); + var intersects = this.raycaster.getIntersectedObjects(this.scene.meshes); intersects.map( function(intersect) {