summaryrefslogtreecommitdiffstats
path: root/src/utils/shaderhelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/shaderhelper.cpp')
-rw-r--r--src/utils/shaderhelper.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/utils/shaderhelper.cpp b/src/utils/shaderhelper.cpp
index 82405cba..a66b6a00 100644
--- a/src/utils/shaderhelper.cpp
+++ b/src/utils/shaderhelper.cpp
@@ -101,6 +101,7 @@ void ShaderHelper::initialize()
m_lightPositionUniform = m_program->uniformLocation("lightPosition_wrld");
m_lightStrengthUniform = m_program->uniformLocation("lightStrength");
m_ambientStrengthUniform = m_program->uniformLocation("ambientStrength");
+ m_shadowQualityUniform = m_program->uniformLocation("shadowQuality");
m_colorUniform = m_program->uniformLocation("color_mdl");
m_textureUniform = m_program->uniformLocation("textureSampler");
m_shadowUniform = m_program->uniformLocation("shadowMap");
@@ -199,6 +200,13 @@ GLuint ShaderHelper::ambientS()
return m_ambientStrengthUniform;
}
+GLuint ShaderHelper::shadowQ()
+{
+ if (!m_initialized)
+ qFatal("Shader not initialized");
+ return m_shadowQualityUniform;
+}
+
GLuint ShaderHelper::color()
{
if (!m_initialized)