summaryrefslogtreecommitdiff
path: root/gfx/gl/sceneProvider.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-11-27 13:09:34 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-11-27 13:09:34 +0000
commitf43b88dfe55d107541562da04117e2929a89d3f2 (patch)
tree4d1ff7181d21a72f11aa90d5a4225bbce0561bb7 /gfx/gl/sceneProvider.cpp
parent SceneRenderer is a graphics component, not a UI one (diff)
downloadilt-f43b88dfe55d107541562da04117e2929a89d3f2.tar.bz2
ilt-f43b88dfe55d107541562da04117e2929a89d3f2.tar.xz
ilt-f43b88dfe55d107541562da04117e2929a89d3f2.zip
Split SceneProvider out
Diffstat (limited to 'gfx/gl/sceneProvider.cpp')
-rw-r--r--gfx/gl/sceneProvider.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/gfx/gl/sceneProvider.cpp b/gfx/gl/sceneProvider.cpp
new file mode 100644
index 0000000..d73ac3c
--- /dev/null
+++ b/gfx/gl/sceneProvider.cpp
@@ -0,0 +1,9 @@
+#include "sceneProvider.h"
+#include "sceneRenderer.h"
+
+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});
+}