summaryrefslogtreecommitdiff
path: root/gfx
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-12-28 15:20:19 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-12-28 15:20:19 +0000
commit3d6a5df643cd2dfebc1491756b093247913126b1 (patch)
treeb7aff02ed40a0c84e373e5d2dec4b74716a9cea2 /gfx
parentSetup GL context before doing any shadow render work (diff)
downloadilt-3d6a5df643cd2dfebc1491756b093247913126b1.tar.bz2
ilt-3d6a5df643cd2dfebc1491756b093247913126b1.tar.xz
ilt-3d6a5df643cd2dfebc1491756b093247913126b1.zip
Change default light direction
Just so it shows up more clearly in tests
Diffstat (limited to 'gfx')
-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 8ff7d73..0163b36 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}, *this);
+ renderer.setDirectionalLight({0.6F, 0.6F, 0.6F}, {-1, 1, -1}, *this);
}
void
SceneProvider::shadows(const ShadowMapper &) const