diff --git a/72d6a2a3kc.js b/72d6a2a3kc.js index 7297161..d054d22 100644 --- a/72d6a2a3kc.js +++ b/72d6a2a3kc.js @@ -15,6 +15,7 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) { this.raycaster = this.entityLoaded.raycaster; this.scene = this.entityLoaded.scene; this.toBlack = new THREE.Color(0.07, 0.07, 0.07); + this.toRed = new THREE.Color(0.07, 0, 0); this.bull.instance.visible = false; this.star.instance.visible = false; @@ -192,10 +193,16 @@ if (this.mouseIsDown) { mesh.instance.material.map( function(material) { material.color.sub(this.toBlack); + if (material.color.r <= 0) { + material.emissive.add(this.toRed); + } } ); } else { mesh.instance.material.color.sub(this.toBlack); + if (mesh.instance.material.color.r <= 0) { + mesh.instance.material.emissive.add(this.toRed); + } } }