mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
update particles garbage collection scheme
This commit is contained in:
parent
cee214754b
commit
1974298c82
5 changed files with 50 additions and 21 deletions
|
|
@ -203,7 +203,8 @@ void WorldRenderer::renderLevel(
|
|||
auto assets = engine->getAssets();
|
||||
|
||||
bool culling = engine->getSettings().graphics.frustumCulling.get();
|
||||
float fogFactor = 15.0f / ((float)settings.chunks.loadDistance.get() - 2);
|
||||
float fogFactor =
|
||||
15.0f / static_cast<float>(settings.chunks.loadDistance.get() - 2);
|
||||
|
||||
auto entityShader = assets->get<Shader>("entity");
|
||||
setupWorldShader(entityShader, camera, settings, fogFactor);
|
||||
|
|
@ -216,7 +217,7 @@ void WorldRenderer::renderLevel(
|
|||
delta,
|
||||
pause
|
||||
);
|
||||
particles->render(*assets, camera, delta * !pause);
|
||||
particles->render(camera, delta * !pause);
|
||||
modelBatch->render();
|
||||
|
||||
auto shader = assets->get<Shader>("main");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue