Skip to content

Fixed frustum culling for 2D shape light falloff offset#1

Open
bezzgames wants to merge 1 commit into
masterfrom
2d/shape-light-frustum-culling
Open

Fixed frustum culling for 2D shape light falloff offset#1
bezzgames wants to merge 1 commit into
masterfrom
2d/shape-light-frustum-culling

Conversation

@bezzgames

Copy link
Copy Markdown
Owner

Fixed the boundary sphere calculated for the 2d shape lights. This sphere now takes into account the falloff offset that controls the light direction.
This fixes invalid frustum culling when only the falloff is in view.

Purpose of this PR

This pull request will fix issues with 2d shape lights being culled too early.


Release Notes

Fixed frustum culling on 2d shape lights with falloff offsets.

Manual Tests: What did you do?

  • Run graphic tests locally

Overall Product Risks

Technical Risk: Low

Fixed the boundary sphere calculated for the 2d shape lights. This sphere now takes into account the falloff offset that controls the light direction.
This fixes invalid culling when only the falloff is in view.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant