SIGN IN SIGN UP
bevyengine / bevy UNCLAIMED

A refreshingly simple data-driven game engine built in Rust

0 0 59 Rust

Add warning about `Frustum` when using `SpotLight` (#24324)

# 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

---------

Co-authored-by: Kevin Chen <chen.kevin.f@gmail.com>
P
Pnoenix committed
b52a509cb214ce1350548ae8ee1aeadc1ac7d2c6
Parent: d629b1a
Committed by GitHub <noreply@github.com> on 5/21/2026, 10:06:10 AM