mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
Backlight setting
This commit is contained in:
parent
f45fcffaf8
commit
568c612970
9 changed files with 44 additions and 9 deletions
|
|
@ -35,7 +35,7 @@ using std::shared_ptr;
|
|||
WorldRenderer::WorldRenderer(Engine* engine, Level* level, const ContentGfxCache* cache)
|
||||
: engine(engine), level(level) {
|
||||
lineBatch = new LineBatch(4096);
|
||||
renderer = new ChunksRenderer(level, cache);
|
||||
renderer = new ChunksRenderer(level, cache, engine->getSettings());
|
||||
frustumCulling = new Frustum();
|
||||
level->events->listen(EVT_CHUNK_HIDDEN, [this](lvl_event_type type, Chunk* chunk) {
|
||||
renderer->unload(chunk);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue