mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
refactor: move Weather instance to WorldInfo
This commit is contained in:
parent
0ea842580c
commit
9c4db8fa10
9 changed files with 116 additions and 61 deletions
|
|
@ -209,11 +209,10 @@ void LevelScreen::update(float delta) {
|
|||
playerController->postUpdate(delta, !inputLocked, hud->isPause());
|
||||
|
||||
hud->update(hudVisible);
|
||||
|
||||
const auto& weather = level->getWorld()->getInfo().weather;
|
||||
decorator->update(
|
||||
hud->isPause() ? 0.0f : delta,
|
||||
*camera,
|
||||
worldRenderer->weather.a,
|
||||
worldRenderer->weather.b
|
||||
hud->isPause() ? 0.0f : delta, *camera, weather.a, weather.b
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue