Update: CC - Before Render - Moorcow (080g209iov.js) 110 bytes modified
parent
5dc0d9232e
commit
654e379b45
|
@ -23,6 +23,8 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
|
||||||
this.burningTreeParticleEngine = this.entityLoaded.burningTreeParticleEngine;
|
this.burningTreeParticleEngine = this.entityLoaded.burningTreeParticleEngine;
|
||||||
this.explodeParticleEngine = this.entityLoaded.explodeParticleEngine;
|
this.explodeParticleEngine = this.entityLoaded.explodeParticleEngine;
|
||||||
|
|
||||||
|
this.minimumRendererRed = 0;
|
||||||
|
|
||||||
this.toBlack = new THREE.Color(0.05, 0.05, 0.05);
|
this.toBlack = new THREE.Color(0.05, 0.05, 0.05);
|
||||||
this.toRed = new THREE.Color(0.02, 0, 0);
|
this.toRed = new THREE.Color(0.02, 0, 0);
|
||||||
|
|
||||||
|
@ -325,6 +327,8 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
|
||||||
|
|
||||||
this.treesBurning++;
|
this.treesBurning++;
|
||||||
|
|
||||||
|
this.minimumRendererRed += 0.05;
|
||||||
|
|
||||||
if (mesh.position.x < 0) {
|
if (mesh.position.x < 0) {
|
||||||
this.leftLight.intensity += 0.1;
|
this.leftLight.intensity += 0.1;
|
||||||
this.leftLight.color.g -= 0.05;
|
this.leftLight.color.g -= 0.05;
|
||||||
|
@ -392,8 +396,8 @@ if (this.mouseIsDown) {
|
||||||
//this.fog.updateInstance('color');
|
//this.fog.updateInstance('color');
|
||||||
|
|
||||||
this.renderer.clearColor.r += 0.01;
|
this.renderer.clearColor.r += 0.01;
|
||||||
if (this.renderer.clearColor.r > 0.5) {
|
if (this.renderer.clearColor.r > 0.7) {
|
||||||
this.renderer.clearColor.r = 0.5;
|
this.renderer.clearColor.r = 0.7;
|
||||||
}
|
}
|
||||||
this.renderer.updateInstance('clearColor');
|
this.renderer.updateInstance('clearColor');
|
||||||
|
|
||||||
|
@ -478,8 +482,8 @@ if (this.mouseIsDown) {
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
this.renderer.clearColor.r -= 0.01;
|
this.renderer.clearColor.r -= 0.01;
|
||||||
if (this.renderer.clearColor.r < 0.32) {
|
if (this.renderer.clearColor.r < this.minimumRendererRed) {
|
||||||
this.renderer.clearColor.r = 0.32;
|
this.renderer.clearColor.r = this.minimumRendererRed;
|
||||||
}
|
}
|
||||||
this.renderer.updateInstance('clearColor');
|
this.renderer.updateInstance('clearColor');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue