diff --git a/72d6a2a3kc.js b/72d6a2a3kc.js index a3f5ad3..a859946 100644 --- a/72d6a2a3kc.js +++ b/72d6a2a3kc.js @@ -170,7 +170,7 @@ this.spawnTime += data.delta; if (this.mouseIsDown) { - this.fog.color += 0.01; + this.fog.color.r += 0.01; if (this.fog.color.r > 1) { this.fog.color.r = 1; } @@ -223,7 +223,7 @@ if (this.mouseIsDown) { } this.renderer.updateInstance('clearColor'); - this.fog.color -= 0.01; + this.fog.color.r -= 0.01; if (this.fog.color.r < 0) { this.fog.color.r = 0; }