summaryrefslogtreecommitdiffstats
path: root/src/datavis3d/utils/shaderhelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/datavis3d/utils/shaderhelper.cpp')
-rw-r--r--src/datavis3d/utils/shaderhelper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/datavis3d/utils/shaderhelper.cpp b/src/datavis3d/utils/shaderhelper.cpp
index 86b3d964..f08daff0 100644
--- a/src/datavis3d/utils/shaderhelper.cpp
+++ b/src/datavis3d/utils/shaderhelper.cpp
@@ -92,7 +92,7 @@ void ShaderHelper::initialize()
m_viewMatrixUniform = m_program->uniformLocation("V");
m_modelMatrixUniform = m_program->uniformLocation("M");
m_invTransModelMatrixUniform = m_program->uniformLocation("itM");
- m_depthBiasMatrixUniform = m_program->uniformLocation("depthBiasMVP");
+ m_depthMatrixUniform = m_program->uniformLocation("depthMVP");
m_lightPositionUniform = m_program->uniformLocation("lightPosition_wrld");
m_lightStrengthUniform = m_program->uniformLocation("lightStrength");
m_ambientStrengthUniform = m_program->uniformLocation("ambientStrength");
@@ -169,7 +169,7 @@ GLuint ShaderHelper::depth()
{
if (!m_initialized)
qFatal("Shader not initialized");
- return m_depthBiasMatrixUniform;
+ return m_depthMatrixUniform;
}
GLuint ShaderHelper::lightP()