diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-11-27 13:09:34 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-11-27 13:09:34 +0000 |
commit | f43b88dfe55d107541562da04117e2929a89d3f2 (patch) | |
tree | 4d1ff7181d21a72f11aa90d5a4225bbce0561bb7 /gfx/gl/sceneRenderer.cpp | |
parent | SceneRenderer is a graphics component, not a UI one (diff) | |
download | ilt-f43b88dfe55d107541562da04117e2929a89d3f2.tar.bz2 ilt-f43b88dfe55d107541562da04117e2929a89d3f2.tar.xz ilt-f43b88dfe55d107541562da04117e2929a89d3f2.zip |
Split SceneProvider out
Diffstat (limited to 'gfx/gl/sceneRenderer.cpp')
-rw-r--r-- | gfx/gl/sceneRenderer.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/gfx/gl/sceneRenderer.cpp b/gfx/gl/sceneRenderer.cpp index a97387e..a06a163 100644 --- a/gfx/gl/sceneRenderer.cpp +++ b/gfx/gl/sceneRenderer.cpp @@ -131,10 +131,3 @@ SceneRenderer::DirectionalLightProgram::setDirectionalLight(const glm::vec3 & c, const auto nd = glm::normalize(d); glUniform3fv(directionLoc, 1, glm::value_ptr(nd)); } - -void -SceneRenderer::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}); -} |