summaryrefslogtreecommitdiff
path: root/gfx/gl
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/gl')
-rw-r--r--gfx/gl/sceneRenderer.cpp2
-rw-r--r--gfx/gl/shadowMapper.h2
2 files changed, 2 insertions, 2 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);
diff --git a/gfx/gl/shadowMapper.h b/gfx/gl/shadowMapper.h
index dcd0a02..6782d60 100644
--- a/gfx/gl/shadowMapper.h
+++ b/gfx/gl/shadowMapper.h
@@ -8,7 +8,7 @@ class SceneProvider;
class ShadowMapper {
public:
- ShadowMapper(const glm::ivec2 & size = {1024, 1024});
+ ShadowMapper(const glm::ivec2 & size);
glm::mat4x4 update(const SceneProvider &, const glm::vec3 & direction) const;