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

Remove positional light mask from directional lights in Canvas Item shaders. #100305

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

clayjohn
Copy link
Member

Fixes: #100304

The person of the shadow mask is to mask out positional lights, in #98835 I wrongly used the same mask for directional lights even though it doesn't make sense to do so as the mask is calculated for each item-light pair. The result is that every DirectionalLight shadow gets culled

DirectionalLight2Ds can't mask out Canvasitems anyway, so no check is needed at all.

@clayjohn clayjohn added this to the 4.4 milestone Dec 12, 2024
@clayjohn clayjohn requested a review from a team as a code owner December 12, 2024 08:24
@akien-mga akien-mga merged commit 562dd1a into godotengine:master Dec 12, 2024
20 checks passed
@akien-mga
Copy link
Member

Thanks!

@clayjohn clayjohn deleted the directional-light-2d-mask branch December 12, 2024 15:09
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.

DirectionalLight2D shadows not appearing
2 participants