Refactor fog handling and add reflection update timestamp

This commit is contained in:
2026-04-07 07:13:33 +02:00
parent 052b0a3bcb
commit bfb3eebd2c
2 changed files with 3 additions and 7 deletions

View File

@@ -786,18 +786,12 @@ export class RuntimeHost {
: null;
if (fogState === null) {
if (this.scene.fog !== null) {
this.scene.fog = null;
}
this.underwaterSceneFog.density = 0;
return;
}
this.underwaterSceneFog.color.set(fogState.colorHex);
this.underwaterSceneFog.density = fogState.density;
if (this.scene.fog !== this.underwaterSceneFog) {
this.scene.fog = this.underwaterSceneFog;
}
}
private getWaterReflectionMode() {