Skip to content

Update Tr2LightManager.cpp - #113

Open
CCPNobody wants to merge 1 commit into
mainfrom
PLAT-11658
Open

CCPNobody wants to merge 1 commit into
mainfrom
PLAT-11658

Conversation

@CCPNobody

Copy link
Copy Markdown
Member

Summary

Fixing an issue where volumetric lights can pop out of reflections if the lights are not visible from the camera frustum

AI assistance

None

Fixing an issue where volumetric lights can pop out of reflections if the lights are not visible from the camera frustum
Copilot AI balanced review requested due to automatic review settings October 1, 2026 09:34

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Unbounded off-screen volumetric-light processing could significantly degrade performance in large scenes.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Updates light culling so volumetric lights remain available for reflection rendering.

Changes:

  • Exempts volumetric lights from camera-frustum culling.
File Description
trinity/​Tr2LightManager.cpp Adjusts volumetric-light visibility handling.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

return;
}
if( !m_frustum.IsSphereVisible( reinterpret_cast<Vector4*>( &data.position ) ) )
if( ( data.flags & FLAG_IS_VOLUMETRIC ) == 0 && !m_frustum.IsSphereVisible( reinterpret_cast<Vector4*>( &data.position ) ) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants