|
@@ -54,6 +54,7 @@ RenderGlowMgr::GlowMaterialHook::GlowMaterialHook( BaseMatInstance *matInst )
|
|
{
|
|
{
|
|
mGlowMatInst = (MatInstance*)matInst->getMaterial()->createMatInstance();
|
|
mGlowMatInst = (MatInstance*)matInst->getMaterial()->createMatInstance();
|
|
mGlowMatInst->getFeaturesDelegate().bind( &GlowMaterialHook::_overrideFeatures );
|
|
mGlowMatInst->getFeaturesDelegate().bind( &GlowMaterialHook::_overrideFeatures );
|
|
|
|
+ mGlowMatInst->setUserObject(matInst->getUserObject());
|
|
mGlowMatInst->init( matInst->getRequestedFeatures(),
|
|
mGlowMatInst->init( matInst->getRequestedFeatures(),
|
|
matInst->getVertexFormat() );
|
|
matInst->getVertexFormat() );
|
|
}
|
|
}
|