Update: CC - Before Render - Moorcow (zo950m57cc.js) 48 bytes modified
parent
49f2bc1e8f
commit
5060d0daab
|
@ -711,24 +711,24 @@ if (this.scoreMesh.materials[0].opacity < 0) {
|
||||||
this.scoreMesh.materials[0].updateInstance('opacity');
|
this.scoreMesh.materials[0].updateInstance('opacity');
|
||||||
|
|
||||||
/*
|
/*
|
||||||
this.scene.meshes.map(
|
this.scene.meshes.map(
|
||||||
function(mesh) {
|
function(mesh) {
|
||||||
if (mesh.instance.material instanceof Array) {
|
if (mesh.instance.material instanceof Array) {
|
||||||
mesh.instance.material.map(
|
mesh.instance.material.map(
|
||||||
function(material) {
|
function(material) {
|
||||||
if (material.color) {
|
if (material.emissive) {
|
||||||
material.color.sub(this.toRed);
|
material.emissive.sub(this.toRed);
|
||||||
}
|
}
|
||||||
}.bind(this)
|
}.bind(this)
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
if (mesh.instance.material.color) {
|
if (mesh.instance.material.emissive) {
|
||||||
mesh.instance.material.color.sub(this.toRed);
|
mesh.instance.material.emissive.sub(this.toRed);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}.bind(this)
|
}.bind(this)
|
||||||
);
|
);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (this.mouseIsDown)
|
if (this.mouseIsDown)
|
||||||
{
|
{
|
||||||
|
@ -806,16 +806,9 @@ if (this.mouseIsDown)
|
||||||
mesh.life = 1.2;
|
mesh.life = 1.2;
|
||||||
}
|
}
|
||||||
|
|
||||||
mesh.life -= 0.2;
|
mesh.life -= 0.2 * data.delta;
|
||||||
|
|
||||||
if (mesh.life <= 0) {
|
this.burnTree(mesh);
|
||||||
this.burnTree(mesh);
|
|
||||||
|
|
||||||
if (mesh.instance.material.color) {
|
|
||||||
mesh.instance.material.color.add(this.toRed);
|
|
||||||
mesh.instance.material.color.add(this.toRed);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}.bind(this)
|
}.bind(this)
|
||||||
|
|
Loading…
Reference in New Issue