Update: CC - Before Render - Moorcow (72d6a2a3kc.js) 17 bytes modified

beta.r3js.org
-=yb4f310 2017-11-14 09:34:33 +01:00
parent cfcc7fa35f
commit 3abe39613b
1 changed files with 19 additions and 19 deletions

View File

@ -168,6 +168,24 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
this.totalTime += 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) {
this.fog.color.r += 0.01;
@ -219,25 +237,7 @@ if (this.mouseIsDown) {
);
} 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;
if (this.renderer.clearColor.r < 0) {
this.renderer.clearColor.r = 0;