Skip to content

Add warning about Frustum when using SpotLight#24324

Open
Pnoenix wants to merge 3 commits into
bevyengine:mainfrom
Pnoenix:main
Open

Add warning about Frustum when using SpotLight#24324
Pnoenix wants to merge 3 commits into
bevyengine:mainfrom
Pnoenix:main

Conversation

@Pnoenix
Copy link
Copy Markdown
Contributor

@Pnoenix Pnoenix commented May 17, 2026

Objective

When using the SpotLight component on an entity that already has the Camera component, the Frustum component of the camera will be overriden with the one create from the spotlight. This leads to incorrect frustum culling, if both components are on the same entity. There is no mention of this in the docs. This pr adds that.

I am not sure what the convention is when doing warnings in the docs. I just did **bold**, but I can change that.

Solution

Change docs

@kfc35 kfc35 added the C-Docs An addition or correction to our documentation label May 17, 2026
Comment thread crates/bevy_light/src/spot_light.rs Outdated
@kfc35 kfc35 added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label May 17, 2026
Co-authored-by: Kevin Chen <chen.kevin.f@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-Docs An addition or correction to our documentation S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants