Update: CC - Before Render - Moorcow (72d6a2a3kc.js) 241 bytes modified
parent
4280ff3af5
commit
eb6c9ac944
|
@ -15,6 +15,7 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
|
||||||
this.raycaster = this.entityLoaded.raycaster;
|
this.raycaster = this.entityLoaded.raycaster;
|
||||||
this.scene = this.entityLoaded.scene;
|
this.scene = this.entityLoaded.scene;
|
||||||
this.toBlack = new THREE.Color(0.07, 0.07, 0.07);
|
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.bull.instance.visible = false;
|
||||||
this.star.instance.visible = false;
|
this.star.instance.visible = false;
|
||||||
|
@ -192,10 +193,16 @@ if (this.mouseIsDown) {
|
||||||
mesh.instance.material.map(
|
mesh.instance.material.map(
|
||||||
function(material) {
|
function(material) {
|
||||||
material.color.sub(this.toBlack);
|
material.color.sub(this.toBlack);
|
||||||
|
if (material.color.r <= 0) {
|
||||||
|
material.emissive.add(this.toRed);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
mesh.instance.material.color.sub(this.toBlack);
|
mesh.instance.material.color.sub(this.toBlack);
|
||||||
|
if (mesh.instance.material.color.r <= 0) {
|
||||||
|
mesh.instance.material.emissive.add(this.toRed);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue