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

beta.r3js.org
-=yb4f310 2017-11-18 10:21:41 +01:00
parent 701eeda958
commit 9bda3305d5
1 changed files with 10 additions and 0 deletions

View File

@ -377,12 +377,22 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
if (mesh.position.x < 0) {
this.leftLight.intensity += 0.1;
if (this.leftLight.intensity >= 1.5) {
this.leftLight.intensity = 1.5;
}
this.leftLight.color.g -= 0.05;
this.leftLight.color.b -= 0.05;
this.leftLight.updateInstance('intensity');
this.leftLight.updateInstance('color');
} else {
this.rightLight.intensity += 0.1;
if (this.rightLight.intensity >= 1.5) {
this.rightLight.intensity = 1.5;
}
this.rightLight.color.b -= 0.05;
this.rightLight.updateInstance('intensity');
this.rightLight.updateInstance('color');