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) {