mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
Advancec Frustum Culling & fixes
This commit is contained in:
parent
883dcbf168
commit
06f073422b
1 changed files with 1 additions and 1 deletions
|
|
@ -116,7 +116,7 @@ void WorldRenderer::draw(Camera* camera, bool occlusion, float fogFactor, float
|
|||
(b->x + 0.5f - px)*(b->x + 0.5f - px) + (b->z + 0.5f - pz)*(b->z + 0.5f - pz));
|
||||
});
|
||||
|
||||
frustumCulling->update(camera->getProjection() * camera->getView());
|
||||
if (occlusion) frustumCulling->update(camera->getProjView());
|
||||
chunks->visible = 0;
|
||||
for (size_t i = 0; i < indices.size(); i++){
|
||||
chunks->visible += drawChunk(indices[i], camera, shader, occlusion);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue