mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
Added sky lights multiplier track bar
This commit is contained in:
parent
eb18269416
commit
d2c87f4ba5
6 changed files with 21 additions and 6 deletions
|
|
@ -123,6 +123,16 @@ HudRenderer::HudRenderer(Engine* engine, Level* level, const ContentGfxCache* ca
|
|||
sub->add(box);
|
||||
panel->add(sub);
|
||||
}
|
||||
{
|
||||
TrackBar* bar = new TrackBar(0.0f, 1.0f, 1.0f, 0.02f, 2);
|
||||
bar->supplier([=]() {
|
||||
return level->skyLightMutliplier;
|
||||
});
|
||||
bar->consumer([=](double val) {
|
||||
level->skyLightMutliplier = val;
|
||||
});
|
||||
panel->add(bar);
|
||||
}
|
||||
panel->refresh();
|
||||
menu->reset();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue