Skip to content

Commit

Permalink
Backport ogre2 lidar performance improvement (#956)
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 authored Jan 17, 2024
1 parent 77e1d12 commit 34fdfb7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ogre2/src/Ogre2GpuRays.cc
Original file line number Diff line number Diff line change
Expand Up @@ -968,6 +968,8 @@ void Ogre2GpuRays::Setup1stPass()
passScene->setVisibilityMask(
this->VisibilityMask() &
~Ogre2ParticleEmitter::kParticleVisibilityFlags);
passScene->mEnableForwardPlus = false;
passScene->setLightVisibilityMask(0x0);
}

Ogre::CompositorTargetDef *particleTargetDef =
Expand All @@ -983,6 +985,8 @@ void Ogre2GpuRays::Setup1stPass()
// set camera custom visibility mask when rendering particles
passScene->mVisibilityMask =
Ogre2ParticleEmitter::kParticleVisibilityFlags;
passScene->mEnableForwardPlus = false;
passScene->setLightVisibilityMask(0x0);
}

// rt_input target - converts depth to range
Expand Down

0 comments on commit 34fdfb7

Please sign in to comment.