From a0257a4e8330da9c00fe009ede978a4a9fb85793 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 30 Dec 2022 14:56:13 +0000 Subject: Add directional light to pointlight test, fix setting of GL_DEPTH_TEST Fixes issue where directional light prevented pointlights from working --- test/test-render.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') 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 -- cgit v1.2.3