optimize: lil less darkness change

This commit is contained in:
cha0s 2019-04-21 19:27:06 -05:00
parent f2cc319d7a
commit 504600b09c

View File

@ -141,7 +141,7 @@ export class App extends decorate(class {}) {
if (this.worldTime.hour >= 18 && this.worldTime.hour < 21) {
darkness = 0.8 * ((3 - (21 - this.worldTime.hour)) / 3);
}
this.darkness = Math.floor(darkness * 1000) / 1000;
this.darkness = Math.floor(darkness * 500) / 500;
}
connect() {