summaryrefslogtreecommitdiff
path: root/gfx/gl/shadowMapper.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-12-30 14:56:13 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-12-30 14:56:13 +0000
commita0257a4e8330da9c00fe009ede978a4a9fb85793 (patch)
treef97737de597f45fab2371a8b65fe01be3ef23d3b /gfx/gl/shadowMapper.cpp
parentMove test render helpers into a new test library (diff)
downloadilt-a0257a4e8330da9c00fe009ede978a4a9fb85793.tar.bz2
ilt-a0257a4e8330da9c00fe009ede978a4a9fb85793.tar.xz
ilt-a0257a4e8330da9c00fe009ede978a4a9fb85793.zip
Add directional light to pointlight test, fix setting of GL_DEPTH_TEST
Fixes issue where directional light prevented pointlights from working
Diffstat (limited to 'gfx/gl/shadowMapper.cpp')
-rw-r--r--gfx/gl/shadowMapper.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/gfx/gl/shadowMapper.cpp b/gfx/gl/shadowMapper.cpp
index f1beb82..5715c0e 100644
--- a/gfx/gl/shadowMapper.cpp
+++ b/gfx/gl/shadowMapper.cpp
@@ -61,7 +61,6 @@ ShadowMapper::update(const SceneProvider & scene, const glm::vec3 & dir, const C
glBindFramebuffer(GL_FRAMEBUFFER, depthMapFBO);
glViewport(0, 0, size.x, size.y);
glClear(GL_DEPTH_BUFFER_BIT);
- glEnable(GL_DEPTH_TEST);
glCullFace(GL_FRONT);
auto bandViewExtents = shadowBands * [&camera](auto distance) {