diff --git a/080g209iov.js b/080g209iov.js index 3362500..c09bd21 100644 --- a/080g209iov.js +++ b/080g209iov.js @@ -23,6 +23,8 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) { this.burningTreeParticleEngine = this.entityLoaded.burningTreeParticleEngine; this.explodeParticleEngine = this.entityLoaded.explodeParticleEngine; + this.minimumRendererRed = 0; + this.toBlack = new THREE.Color(0.05, 0.05, 0.05); this.toRed = new THREE.Color(0.02, 0, 0); @@ -325,6 +327,8 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) { this.treesBurning++; + this.minimumRendererRed += 0.05; + if (mesh.position.x < 0) { this.leftLight.intensity += 0.1; this.leftLight.color.g -= 0.05; @@ -392,8 +396,8 @@ if (this.mouseIsDown) { //this.fog.updateInstance('color'); this.renderer.clearColor.r += 0.01; - if (this.renderer.clearColor.r > 0.5) { - this.renderer.clearColor.r = 0.5; + if (this.renderer.clearColor.r > 0.7) { + this.renderer.clearColor.r = 0.7; } this.renderer.updateInstance('clearColor'); @@ -478,8 +482,8 @@ if (this.mouseIsDown) { } else { this.renderer.clearColor.r -= 0.01; - if (this.renderer.clearColor.r < 0.32) { - this.renderer.clearColor.r = 0.32; + if (this.renderer.clearColor.r < this.minimumRendererRed) { + this.renderer.clearColor.r = this.minimumRendererRed; } this.renderer.updateInstance('clearColor');