Update: CC - Before Render - Moorcow (72d6a2a3kc.js) 17 bytes modified
parent
cfcc7fa35f
commit
3abe39613b
|
@ -168,6 +168,24 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
|
||||||
this.totalTime += data.delta;
|
this.totalTime += data.delta;
|
||||||
this.spawnTime += data.delta;
|
this.spawnTime += data.delta;
|
||||||
|
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
if (mesh.instance.material.emissive) {
|
||||||
|
mesh.instance.material.emissive.sub(this.toRed);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}.bind(this)
|
||||||
|
);
|
||||||
|
|
||||||
if (this.mouseIsDown) {
|
if (this.mouseIsDown) {
|
||||||
|
|
||||||
this.fog.color.r += 0.01;
|
this.fog.color.r += 0.01;
|
||||||
|
@ -220,24 +238,6 @@ if (this.mouseIsDown) {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
if (mesh.instance.material.emissive) {
|
|
||||||
mesh.instance.material.emissive.sub(this.toRed);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}.bind(this)
|
|
||||||
);
|
|
||||||
|
|
||||||
this.renderer.clearColor.r -= 0.01;
|
this.renderer.clearColor.r -= 0.01;
|
||||||
if (this.renderer.clearColor.r < 0) {
|
if (this.renderer.clearColor.r < 0) {
|
||||||
this.renderer.clearColor.r = 0;
|
this.renderer.clearColor.r = 0;
|
||||||
|
|
Loading…
Reference in New Issue