fixes scale on derivative maps
[blender.git] / source / gameengine / Ketsji / BL_BlenderShader.cpp
index 6680e9556b9d70de2b6a291458ff57c3a4555bcc..52c9846772d2c7fa021aeee727641d3f69d9cceb 100644 (file)
@@ -8,6 +8,7 @@
 
 #include "BKE_global.h"
 #include "BKE_main.h"
+#include "BKE_DerivedMesh.h"
 
 #include "BL_BlenderShader.h"
 #include "BL_Material.h"
@@ -146,7 +147,7 @@ void BL_BlenderShader::Update(const RAS_MeshSlot & ms, RAS_IRasterizer* rasty )
        else
                obcol[0]= obcol[1]= obcol[2]= obcol[3]= 1.0f;
 
-       GPU_material_bind_uniforms(gpumat, obmat, viewmat, viewinvmat, obcol);
+       GPU_material_bind_uniforms(gpumat, obmat, viewmat, viewinvmat, obcol, ms.m_pDerivedMesh->auto_bump_scale);
 
        mAlphaBlend = GPU_material_alpha_blend(gpumat, obcol);
 }