summaryrefslogtreecommitdiff
path: root/test/test-render.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 /test/test-render.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 'test/test-render.cpp')
-rw-r--r--test/test-render.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-render.cpp b/test/test-render.cpp
index 8f8fd06..76b8e6a 100644
--- a/test/test-render.cpp
+++ b/test/test-render.cpp
@@ -86,7 +86,7 @@ BOOST_AUTO_TEST_CASE(pointlight)
environment(const SceneShader &, const SceneRenderer & r) const override
{
r.setAmbientLight({0.2F, 0.2F, 0.2F});
- r.setDirectionalLight({}, down, *this);
+ r.setDirectionalLight({0.2F, 0.2F, 0.2F}, west + down, *this);
}
void
lights(const SceneShader & shader) const override