mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +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);
|
ParticleRenderInst *ri = static_cast<ParticleRenderInst*>(_ri);
|
||||||
|
|
||||||
|
GFX->setStateBlock(mParticleRenderMgr->_getHighResStateBlock(ri));
|
||||||
|
mParticleRenderMgr->_getShaderConsts().mShaderConsts->setSafe(mParticleRenderMgr->_getShaderConsts().mModelViewProjSC, *ri->modelViewProj);
|
||||||
|
|
||||||
mParticleRenderMgr->renderParticle(ri, state);
|
mParticleRenderMgr->renderParticle(ri, state);
|
||||||
j++;
|
j++;
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
|
|
@ -137,11 +137,13 @@ protected:
|
||||||
GFXStateBlockRef mOffscreenBlocks[ParticleRenderInst::BlendStyle_COUNT];
|
GFXStateBlockRef mOffscreenBlocks[ParticleRenderInst::BlendStyle_COUNT];
|
||||||
GFXStateBlockRef mBackbufferBlocks[ParticleRenderInst::BlendStyle_COUNT];
|
GFXStateBlockRef mBackbufferBlocks[ParticleRenderInst::BlendStyle_COUNT];
|
||||||
GFXStateBlockRef mMixedResBlocks[ParticleRenderInst::BlendStyle_COUNT];
|
GFXStateBlockRef mMixedResBlocks[ParticleRenderInst::BlendStyle_COUNT];
|
||||||
|
|
||||||
|
public:
|
||||||
GFXStateBlockRef _getHighResStateBlock(ParticleRenderInst *ri);
|
GFXStateBlockRef _getHighResStateBlock(ParticleRenderInst *ri);
|
||||||
GFXStateBlockRef _getMixedResStateBlock(ParticleRenderInst *ri);
|
GFXStateBlockRef _getMixedResStateBlock(ParticleRenderInst *ri);
|
||||||
GFXStateBlockRef _getOffscreenStateBlock(ParticleRenderInst *ri);
|
GFXStateBlockRef _getOffscreenStateBlock(ParticleRenderInst *ri);
|
||||||
GFXStateBlockRef _getCompositeStateBlock(ParticleRenderInst *ri);
|
GFXStateBlockRef _getCompositeStateBlock(ParticleRenderInst *ri);
|
||||||
|
ShaderConsts &_getShaderConsts() { return mParticleShaderConsts; };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue