Merge pull request #470 from TarasPodoroga/development

RenderMeshExample won't render transparent materials properly
This commit is contained in:
SilentMike 2013-10-09 13:22:30 -07:00
commit d6146e968a

View file

@ -284,6 +284,13 @@ void RenderMeshExample::prepRenderImage( SceneRenderState *state )
// Set our RenderInst as a standard mesh render
ri->type = RenderPassManager::RIT_Mesh;
//If our material has transparency set on this will redirect it to proper render bin
if ( matInst->getMaterial()->isTranslucent() )
{
ri->type = RenderPassManager::RIT_Translucent;
ri->translucentSort = true;
}
// Calculate our sorting point
if ( state )
{