mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Re-submission of the Volumetric Fog PR, with cleanup.
This commit is contained in:
parent
272e3138a0
commit
a90eb9762b
62 changed files with 2541 additions and 6 deletions
|
|
@ -51,6 +51,7 @@ RenderTranslucentMgr::RenderTranslucentMgr()
|
|||
{
|
||||
notifyType( RenderPassManager::RIT_ObjectTranslucent );
|
||||
notifyType( RenderPassManager::RIT_Particle );
|
||||
notifyType( RenderPassManager::RIT_VolumetricFog);
|
||||
}
|
||||
|
||||
RenderTranslucentMgr::~RenderTranslucentMgr()
|
||||
|
|
@ -187,6 +188,15 @@ void RenderTranslucentMgr::render( SceneRenderState *state )
|
|||
j++;
|
||||
continue;
|
||||
}
|
||||
else if (baseRI->type == RenderPassManager::RIT_VolumetricFog)
|
||||
{
|
||||
ObjectRenderInst* objRI = static_cast<ObjectRenderInst*>(baseRI);
|
||||
objRI->renderDelegate(objRI, state, NULL);
|
||||
lastVB = NULL;
|
||||
lastPB = NULL;
|
||||
j++;
|
||||
continue;
|
||||
}
|
||||
else if ( baseRI->type == RenderPassManager::RIT_Particle )
|
||||
{
|
||||
ParticleRenderInst *ri = static_cast<ParticleRenderInst*>(baseRI);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue