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. --- gfx/gl/sceneProvider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gfx/gl/sceneProvider.cpp') diff --git a/gfx/gl/sceneProvider.cpp b/gfx/gl/sceneProvider.cpp index 9152bfa..8ff7d73 100644 --- a/gfx/gl/sceneProvider.cpp +++ b/gfx/gl/sceneProvider.cpp @@ -5,7 +5,7 @@ void SceneProvider::environment(const SceneShader &, const SceneRenderer & renderer) const { renderer.setAmbientLight({0.5F, 0.5F, 0.5F}); - renderer.setDirectionalLight({0.6F, 0.6F, 0.6F}, {1, 0, -1}); + renderer.setDirectionalLight({0.6F, 0.6F, 0.6F}, {1, 0, -1}, *this); } void SceneProvider::shadows(const ShadowMapper &) const -- cgit v1.2.3