From c62f6e91940b30af6f2dcc7accafb828131e2050 Mon Sep 17 00:00:00 2001 From: Ian Chen Date: Tue, 16 Jan 2024 17:45:32 -0800 Subject: [PATCH] Improve Ogre2GpuRays performance (#955) * improve ogre2 gpu rays perf --------- Signed-off-by: Ian Chen --- ogre2/src/media/materials/scripts/GpuRays.compositor | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ogre2/src/media/materials/scripts/GpuRays.compositor b/ogre2/src/media/materials/scripts/GpuRays.compositor index da6305118..c3d2417e0 100644 --- a/ogre2/src/media/materials/scripts/GpuRays.compositor +++ b/ogre2/src/media/materials/scripts/GpuRays.compositor @@ -33,9 +33,12 @@ compositor_node GpuRays1stPass // kLaserRetroMainDepthPassId identifier 9525 - // IGN_VISIBILITY_ALL & ~Ogre2ParticleEmitter::kParticleVisibilityFlags + // GZ_VISIBILITY_ALL & ~Ogre2ParticleEmitter::kParticleVisibilityFlags visibility_mask 0xFEFFFFF + enable_forwardplus no + light_visibility_mask 0x0 + profiling_id "GpuRays1stPass Color" } } @@ -53,6 +56,9 @@ compositor_node GpuRays1stPass // Ogre2ParticleEmitter::kParticleVisibilityFlags visibility_mask 0x00100000 + enable_forwardplus no + light_visibility_mask 0x0 + profiling_id "GpuRays1stPass Particle" } }