summaryrefslogtreecommitdiff
path: root/gfx/gl/sceneProvider.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-10-06 12:48:40 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2024-10-06 14:03:33 +0100
commit10998a8302b3d7651b4afc046311961eb2dea2c8 (patch)
tree1b58847ae898f9d3c7fa807bfcaa4b4103d6f35f /gfx/gl/sceneProvider.cpp
parentAdd LightDirection class (diff)
downloadilt-10998a8302b3d7651b4afc046311961eb2dea2c8.tar.bz2
ilt-10998a8302b3d7651b4afc046311961eb2dea2c8.tar.xz
ilt-10998a8302b3d7651b4afc046311961eb2dea2c8.zip
Use LightDirection for calculating/passing all light dir components
Diffstat (limited to 'gfx/gl/sceneProvider.cpp')
-rw-r--r--gfx/gl/sceneProvider.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gfx/gl/sceneProvider.cpp b/gfx/gl/sceneProvider.cpp
index 2e8604c..4e271db 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, 1, -1}, *this);
+ renderer.setDirectionalLight({0.6F, 0.6F, 0.6F}, {{-quarter_pi, -quarter_pi}}, *this);
}
void