Update: CC - Before Render - Moorcow (080g209iov.js) 110 bytes modified

beta.r3js.org
-=yb4f310 2017-11-17 15:21:10 +01:00
parent 5dc0d9232e
commit 654e379b45
1 changed files with 8 additions and 4 deletions

View File

@ -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');