Skip to content

Commit

Permalink
add execution mask to ws and remove print lines
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 committed Feb 29, 2024
1 parent b465929 commit edf1fce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions ogre2/src/Ogre2GpuRays.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*
*/

#include <gz/common/Timer.hh>
#include <gz/math/Vector2.hh>
#include <gz/math/Vector3.hh>

Expand Down Expand Up @@ -1113,7 +1112,8 @@ void Ogre2GpuRays::Setup1stPass()
compoChannels,
this->dataPtr->cubeCam[i],
wsDefName,
false);
false, -1, 0, 0, Ogre::Vector4::ZERO, 0x00,
this->dataPtr->kGpuRaysExecutionMask);

compoChannels.pop_back();

Expand Down Expand Up @@ -1262,8 +1262,6 @@ void Ogre2GpuRays::UpdateRenderTarget2ndPass()
//////////////////////////////////////////////////
void Ogre2GpuRays::Render()
{
common::Timer t;
t.Start();
this->scene->StartRendering(this->dataPtr->ogreCamera);

auto engine = Ogre2RenderEngine::Instance();
Expand All @@ -1283,8 +1281,6 @@ void Ogre2GpuRays::Render()
hlmsCustomizations.minDistanceClip = -1;

this->scene->FlushGpuCommandsAndStartNewFrame(6u, false);
t.Stop();
std::cerr << t.ElapsedTime().count() << std::endl;
}

//////////////////////////////////////////////////
Expand Down
2 changes: 1 addition & 1 deletion ogre2/src/media/materials/scripts/GpuRays.compositor
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ compositor_node GpuRays1stPass
enable_forwardplus no
light_visibility_mask 0x0

execution_mask 0x00
execution_mask 0x0

profiling_id "GpuRays1stPass Particle"
}
Expand Down

0 comments on commit edf1fce

Please sign in to comment.