From 6433b56c3af8721f8301255818a8dd692e75492e Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 4 Dec 2022 17:16:31 +0000 Subject: Generate and use a shadow map Generated when the directional light is specified in the environment call, passed to the directional light shader pass to conditionally illuminate each pixel. --- 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 f6185b4..d6e4094 100644 --- a/test/test-render.cpp +++ b/test/test-render.cpp @@ -119,7 +119,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); + r.setDirectionalLight({}, down, *this); } void lights(const SceneShader & shader) const override -- cgit v1.2.3