Text billboard uses unlit material.
This commit is contained in:
parent
c0d57100a7
commit
8dcf9f6a21
@ -92,7 +92,7 @@ scene::IMesh* STKTextBillboard::getTextMesh(core::stringw text, gui::ScalableFon
|
||||
{
|
||||
buffer = new scene::SMeshBuffer();
|
||||
buffer->getMaterial().setTexture(0, m_chars[i].m_texture);
|
||||
buffer->getMaterial().MaterialType = video::EMT_TRANSPARENT_ALPHA_CHANNEL_REF;
|
||||
buffer->getMaterial().MaterialType = irr_driver->getShader(ES_OBJECT_UNLIT);
|
||||
buffers[m_chars[i].m_texture] = buffer;
|
||||
}
|
||||
else
|
||||
@ -147,7 +147,7 @@ scene::IMesh* STKTextBillboard::getTextMesh(core::stringw text, gui::ScalableFon
|
||||
map_itr->second->drop();
|
||||
}
|
||||
|
||||
getMaterial(0).MaterialType = video::EMT_TRANSPARENT_ALPHA_CHANNEL_REF;
|
||||
getMaterial(0).MaterialType = irr_driver->getShader(ES_OBJECT_UNLIT);
|
||||
|
||||
return Mesh;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user