mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
optimize shadow maps generation a bit
This commit is contained in:
parent
e24d1bdb9c
commit
6debc92ae5
2 changed files with 21 additions and 9 deletions
|
|
@ -400,7 +400,6 @@ void WorldRenderer::generateShadowsMap(
|
|||
shadowCamera.setProjection(glm::ortho(min.x, max.x, min.y, max.y, 0.1f, 1000.0f));
|
||||
|
||||
{
|
||||
frustumCulling->update(shadowCamera.getProjView());
|
||||
auto sctx = pctx.sub();
|
||||
sctx.setDepthTest(true);
|
||||
sctx.setCullFace(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue