From 9bda3305d514ac6360e48a1a9d2bd58efbc0dd1e Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Sat, 18 Nov 2017 10:21:41 +0100 Subject: [PATCH] Update: CC - Before Render - Moorcow (080g209iov.js) 190 bytes modified --- 080g209iov.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/080g209iov.js b/080g209iov.js index af7cc14..c506b35 100644 --- a/080g209iov.js +++ b/080g209iov.js @@ -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');