diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-12-30 14:56:13 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-12-30 14:56:13 +0000 |
commit | a0257a4e8330da9c00fe009ede978a4a9fb85793 (patch) | |
tree | f97737de597f45fab2371a8b65fe01be3ef23d3b /test | |
parent | Move test render helpers into a new test library (diff) | |
download | ilt-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')
-rw-r--r-- | test/test-render.cpp | 2 |
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 |