Update: CC - Before Render - Moorcow (72d6a2a3kc.js) 4 bytes modified
parent
19190c6351
commit
55e52a2d03
|
@ -170,7 +170,7 @@ this.spawnTime += data.delta;
|
||||||
|
|
||||||
if (this.mouseIsDown) {
|
if (this.mouseIsDown) {
|
||||||
|
|
||||||
this.fog.color += 0.01;
|
this.fog.color.r += 0.01;
|
||||||
if (this.fog.color.r > 1) {
|
if (this.fog.color.r > 1) {
|
||||||
this.fog.color.r = 1;
|
this.fog.color.r = 1;
|
||||||
}
|
}
|
||||||
|
@ -223,7 +223,7 @@ if (this.mouseIsDown) {
|
||||||
}
|
}
|
||||||
this.renderer.updateInstance('clearColor');
|
this.renderer.updateInstance('clearColor');
|
||||||
|
|
||||||
this.fog.color -= 0.01;
|
this.fog.color.r -= 0.01;
|
||||||
if (this.fog.color.r < 0) {
|
if (this.fog.color.r < 0) {
|
||||||
this.fog.color.r = 0;
|
this.fog.color.r = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue