summaryrefslogtreecommitdiff
path: root/gfx/gl/sceneRenderer.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-12-04 19:26:07 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-12-04 19:26:07 +0000
commit7136942f9d097a80fecbf0d937a59f95ef34c7d4 (patch)
tree3b4a680d70a5b35dd9df7bf404fce8661bd01191 /gfx/gl/sceneRenderer.cpp
parentWe need to transform the model normals the same as we do the vertices (diff)
downloadilt-7136942f9d097a80fecbf0d937a59f95ef34c7d4.tar.bz2
ilt-7136942f9d097a80fecbf0d937a59f95ef34c7d4.tar.xz
ilt-7136942f9d097a80fecbf0d937a59f95ef34c7d4.zip
Explicit ShadowMapper size only, no default
Diffstat (limited to 'gfx/gl/sceneRenderer.cpp')
-rw-r--r--gfx/gl/sceneRenderer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gfx/gl/sceneRenderer.cpp b/gfx/gl/sceneRenderer.cpp
index 49c73a2..56e8f73 100644
--- a/gfx/gl/sceneRenderer.cpp
+++ b/gfx/gl/sceneRenderer.cpp
@@ -14,7 +14,7 @@ static constexpr std::array<glm::vec4, 4> displayVAOdata {{
}};
SceneRenderer::SceneRenderer(glm::ivec2 s, GLuint o) :
camera {{-1250.0F, -1250.0F, 35.0F}, quarter_pi, ratio(s), 0.1F, 10000.0F}, size {s}, output {o},
- lighting {lightingShader_vs, lightingShader_fs}
+ lighting {lightingShader_vs, lightingShader_fs}, shadowMapper {{4096, 4096}}
{
shader.setViewPort({0, 0, size.x, size.y});
glBindVertexArray(displayVAO);