summaryrefslogtreecommitdiff
path: root/gfx/gl/sceneProvider.cpp
diff options
context:
space:
mode:
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});
+}