From 273a2bf022e05237582576361cc36ed9609ff142 Mon Sep 17 00:00:00 2001 From: vlj Date: Sun, 28 Sep 2014 02:35:50 +0200 Subject: [PATCH] Set normal map and detail map in material.cpp --- src/graphics/material.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/graphics/material.cpp b/src/graphics/material.cpp index d633a8a3c..878cb1d75 100644 --- a/src/graphics/material.cpp +++ b/src/graphics/material.cpp @@ -784,6 +784,7 @@ void Material::setMaterialProperties(video::SMaterial *m, scene::IMeshBuffer* m // Material and shaders m->MaterialType = irr_driver->getShader(ES_NORMAL_MAP); m->setTexture(1, glossytex); + m_shader_type = SHADERTYPE_NORMAL_MAP; return; } @@ -795,6 +796,7 @@ void Material::setMaterialProperties(video::SMaterial *m, scene::IMeshBuffer* m m->setTexture(2, m->getTexture(1)); if (!m->getTexture(2)) m->setTexture(2, getUnicolorTexture(SColor(255, 255, 255, 255))); + m_shader_type = SHADERTYPE_DETAIL_MAP; } m->setTexture(1, glossytex); }