diff --git a/src/graphics/render_geometry.cpp b/src/graphics/render_geometry.cpp index a7ab8c67c..8dc71634e 100644 --- a/src/graphics/render_geometry.cpp +++ b/src/graphics/render_geometry.cpp @@ -251,7 +251,7 @@ void IrrDriver::renderSolidFirstPass() TexUnits(TexUnit(MeshShader::InstancedGrassPass1Shader::getInstance()->TU_tex, true)), ListInstancedMatGrass::getInstance()); renderInstancedMeshes1stPass( - TexUnits(TexUnit(MeshShader::InstancedNormalMapShader::getInstance()->TU_glossy, true), TexUnit(MeshShader::InstancedNormalMapShader::getInstance()->TU_normalmap, true)), + TexUnits(TexUnit(MeshShader::InstancedNormalMapShader::getInstance()->TU_glossy, true), TexUnit(MeshShader::InstancedNormalMapShader::getInstance()->TU_normalmap, false)), ListInstancedMatNormalMap::getInstance()); } } diff --git a/src/graphics/shaders.cpp b/src/graphics/shaders.cpp index 22041c420..b95e8c502 100644 --- a/src/graphics/shaders.cpp +++ b/src/graphics/shaders.cpp @@ -709,7 +709,7 @@ namespace MeshShader { Program = LoadProgram( GL_VERTEX_SHADER, file_manager->getAsset("shaders/utils/getworldmatrix.vert").c_str(), - GL_VERTEX_SHADER, file_manager->getAsset("shaders/instanced_grass.vert").c_str(), + GL_VERTEX_SHADER, file_manager->getAsset("shaders/instanced_object_pass.vert").c_str(), GL_FRAGMENT_SHADER, file_manager->getAsset("shaders/utils/encode_normal.frag").c_str(), GL_FRAGMENT_SHADER, file_manager->getAsset("shaders/normalmap.frag").c_str()); AssignUniforms();