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.scene.meshes.map(
|
||||
function(mesh) {
|
||||
if (mesh.instance.material instanceof Array) {
|
||||
mesh.instance.material.map(
|
||||
function(material) {
|
||||
if (material.color) {
|
||||
material.color.sub(this.toRed);
|
||||
}
|
||||
}.bind(this)
|
||||
);
|
||||
} else {
|
||||
if (mesh.instance.material.color) {
|
||||
mesh.instance.material.color.sub(this.toRed);
|
||||
}
|
||||
}
|
||||
}.bind(this)
|
||||
);
|
||||
*/
|
||||
this.scene.meshes.map(
|
||||
function(mesh) {
|
||||
if (mesh.instance.material instanceof Array) {
|
||||
mesh.instance.material.map(
|
||||
function(material) {
|
||||
if (material.emissive) {
|
||||
material.emissive.sub(this.toRed);
|
||||
}
|
||||
}.bind(this)
|
||||
);
|
||||
} else {
|
||||
if (mesh.instance.material.emissive) {
|
||||
mesh.instance.material.emissive.sub(this.toRed);
|
||||
}
|
||||
}
|
||||
}.bind(this)
|
||||
);
|
||||
*/
|
||||
|
||||
if (this.mouseIsDown)
|
||||
{
|
||||
|
@ -806,16 +806,9 @@ if (this.mouseIsDown)
|
|||
mesh.life = 1.2;
|
||||
}
|
||||
|
||||
mesh.life -= 0.2;
|
||||
mesh.life -= 0.2 * data.delta;
|
||||
|
||||
if (mesh.life <= 0) {
|
||||
this.burnTree(mesh);
|
||||
|
||||
if (mesh.instance.material.color) {
|
||||
mesh.instance.material.color.add(this.toRed);
|
||||
mesh.instance.material.color.add(this.toRed);
|
||||
}
|
||||
}
|
||||
this.burnTree(mesh);
|
||||
}
|
||||
}
|
||||
}.bind(this)
|
||||
|
|
Loading…
Reference in New Issue