Update: CC - Before Render - Moorcow (autqzs1rvq.js) 201 bytes modified

beta.r3js.org
-=yb4f310 2017-11-20 09:20:18 +01:00
parent 2229f3c9ea
commit 2a4dbb46b8
1 changed files with 10 additions and 2 deletions

View File

@ -73,7 +73,9 @@
this.enemies = [];
this.enemiesSpawned = 0;
this.fog.density = 0.01;
this.fog.updateInstance('density');
this.leftLight.intensity = 0.3;
this.leftLight.updateInstance('intensity');
this.rightLight.intensity = 0.3;
@ -458,7 +460,13 @@
this.minimumRendererRed += 0.01;
if (mesh.position.x < 0) {
this.fog.density -= 0.00025;
if (this.fog.density < 0.0055) {
this.fog.density = 0.0055;
}
this.fog.updateInstance('density');
if (mesh.position.x < 0) {
this.leftLight.intensity += 0.07;
if (this.leftLight.intensity >= 1) {