Fix for rendering particles to the glow buffer

This commit is contained in:
LukasPJ 2015-05-21 20:32:16 +02:00 committed by Daniel Buckmaster
parent d9436e65c5
commit c5dd7230ad
2 changed files with 7 additions and 1 deletions

View file

@ -202,6 +202,10 @@ void RenderGlowMgr::render( SceneRenderState *state )
}
ParticleRenderInst *ri = static_cast<ParticleRenderInst*>(_ri);
GFX->setStateBlock(mParticleRenderMgr->_getHighResStateBlock(ri));
mParticleRenderMgr->_getShaderConsts().mShaderConsts->setSafe(mParticleRenderMgr->_getShaderConsts().mModelViewProjSC, *ri->modelViewProj);
mParticleRenderMgr->renderParticle(ri, state);
j++;
continue;