From 2a4dbb46b8e1d2ecddb71918a9197c0bc5d81881 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Mon, 20 Nov 2017 09:20:18 +0100 Subject: [PATCH] Update: CC - Before Render - Moorcow (autqzs1rvq.js) 201 bytes modified --- autqzs1rvq.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/autqzs1rvq.js b/autqzs1rvq.js index c218d5f..ffa46ed 100644 --- a/autqzs1rvq.js +++ b/autqzs1rvq.js @@ -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) {