X Tutup
Skip to content

Use correct AABB for SpotLight3Ds when spot_angle > 90#110884

Merged
Repiteo merged 1 commit intogodotengine:masterfrom
Kaleb-Reid:fix-spotlight-aabb
Oct 6, 2025
Merged

Use correct AABB for SpotLight3Ds when spot_angle > 90#110884
Repiteo merged 1 commit intogodotengine:masterfrom
Kaleb-Reid:fix-spotlight-aabb

Conversation

@Kaleb-Reid
Copy link
Contributor

I guess in 4bd01a9 the AABB shown in the editor was updated for SpotLight3Ds to support large angles but the AABB actually used for culling was not.

Fixes #110367

@Kaleb-Reid Kaleb-Reid requested a review from a team as a code owner September 25, 2025 05:45
@AThousandShips AThousandShips added bug topic:rendering topic:3d cherrypick:4.4 Considered for cherry-picking into a future 4.4.x release cherrypick:4.5 Considered for cherry-picking into a future 4.5.x release labels Sep 25, 2025
@AThousandShips AThousandShips added this to the 4.6 milestone Sep 25, 2025
Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

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

Tested locally on all rendering methods, it works as expected. Code looks good to me.

@Kaleb-Reid
Copy link
Contributor Author

@Calinou I made the suggested changes.

Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

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

Looks great now 🙂

@clayjohn clayjohn removed the cherrypick:4.4 Considered for cherry-picking into a future 4.4.x release label Oct 4, 2025
Copy link
Member

@clayjohn clayjohn left a comment

Choose a reason for hiding this comment

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

Looks great!

@akien-mga akien-mga changed the title Use correct AABB for SpotLight3Ds when spot_angle > 90 Use correct AABB for SpotLight3Ds when spot_angle > 90 Oct 6, 2025
@Repiteo Repiteo merged commit fdc235f into godotengine:master Oct 6, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Oct 6, 2025

Thanks!

@Kaleb-Reid Kaleb-Reid deleted the fix-spotlight-aabb branch October 6, 2025 20:21
@akien-mga
Copy link
Member

Cherry-picked for 4.5.2.

@akien-mga akien-mga removed the cherrypick:4.5 Considered for cherry-picking into a future 4.5.x release label Jan 8, 2026
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.

SpotLight3D culling happens too early for with angles above 90 degrees

6 participants

X Tutup