Really fix detailmap
This commit is contained in:
parent
4e6d29e1ef
commit
1983fb8fc2
@ -805,10 +805,10 @@ void Material::setMaterialProperties(video::SMaterial *m, scene::IMeshBuffer* m
|
|||||||
if (mb && mb->getVertexType() == video::EVT_2TCOORDS)
|
if (mb && mb->getVertexType() == video::EVT_2TCOORDS)
|
||||||
{
|
{
|
||||||
m->setTexture(2, m->getTexture(1));
|
m->setTexture(2, m->getTexture(1));
|
||||||
m->setTexture(1, glossytex);
|
|
||||||
if (!m->getTexture(2))
|
if (!m->getTexture(2))
|
||||||
m->setTexture(2, getUnicolorTexture(SColor(255, 255, 255, 255)));
|
m->setTexture(2, getUnicolorTexture(SColor(255, 255, 255, 255)));
|
||||||
}
|
}
|
||||||
|
m->setTexture(1, glossytex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user