Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entities without Aabb component do not cast shadow #8442

Closed
nicopap opened this issue Apr 19, 2023 · 1 comment · Fixed by #8444
Closed

Entities without Aabb component do not cast shadow #8442

nicopap opened this issue Apr 19, 2023 · 1 comment · Fixed by #8444
Labels
A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior

Comments

@nicopap
Copy link
Contributor

nicopap commented Apr 19, 2023

Bevy version

0.10.1, 0174d63

  • What I did: Add the NoFrustrumCulling component to the cube entity in the lighting.rs example
  • What happen: The cube doesn't cast a shadow anymore.
  • Why: Because NoFrustrumCulling prevents the addition of the Aabb component, and apparently this causes the lighting system to ignore the cube as a shadow caster.
@nicopap nicopap added C-Bug An unexpected or incorrect behavior A-Rendering Drawing game state to the screen labels Apr 19, 2023
@IceSentry
Copy link
Contributor

NoFrustrumCulling prevents the addition of the Aabb component

That's an interesting find, I wonder why this happens. Does NoFrustumCulling remove the Aabb?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants