mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-13 01:10:45 +00:00
Fix for rendering particles to the glow buffer
This commit is contained in:
parent
d9436e65c5
commit
c5dd7230ad
2 changed files with 7 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -137,11 +137,13 @@ protected:
|
|||
GFXStateBlockRef mOffscreenBlocks[ParticleRenderInst::BlendStyle_COUNT];
|
||||
GFXStateBlockRef mBackbufferBlocks[ParticleRenderInst::BlendStyle_COUNT];
|
||||
GFXStateBlockRef mMixedResBlocks[ParticleRenderInst::BlendStyle_COUNT];
|
||||
|
||||
|
||||
public:
|
||||
GFXStateBlockRef _getHighResStateBlock(ParticleRenderInst *ri);
|
||||
GFXStateBlockRef _getMixedResStateBlock(ParticleRenderInst *ri);
|
||||
GFXStateBlockRef _getOffscreenStateBlock(ParticleRenderInst *ri);
|
||||
GFXStateBlockRef _getCompositeStateBlock(ParticleRenderInst *ri);
|
||||
ShaderConsts &_getShaderConsts() { return mParticleShaderConsts; };
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue