This commit is contained in:
Areloch 2017-10-26 17:06:27 -05:00
parent 9a5700addc
commit 39f86d8c30
13 changed files with 191 additions and 85 deletions

View file

@ -249,6 +249,13 @@ void RenderTranslucentMgr::render( SceneRenderState *state )
mat->setNodeTransforms(passRI->mNodeTransforms, passRI->mNodeTransformCount);
}
//-JR
//push along any overriden fields that are instance-specific as well
if (passRI->mCustomShaderData.size() > 0)
{
mat->setCustomShaderData(passRI->mCustomShaderData);
}
// If we're instanced then don't render yet.
if ( mat->isInstanced() )
{