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 unused shadow_color property from Light3D #49447

Merged
merged 1 commit into from
Mar 8, 2022

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Jun 8, 2021

This shadow color property was no longer effective since the shaders were optimized to improve occupancy. Note that this doesn't affect its Light2D counterpart which still supports per-light shadow colors.

It could technically be supported in the lightmapper (for fully baked lights), but I can't find any references to the per-light shadow color in the GPU lightmapper in master.

Note: Not cherry-pickable to the 3.x branch as per-light shadow color is still functional there.

@Calinou
Copy link
Member Author

Calinou commented Feb 23, 2022

For those wondering, it's possible to emulate colored shadows for any light type by using two light nodes:

Parent node (with shadows, and with the inverted color of the desired shadow color)

2022-02-23_21 38 38

Child node (without shadows, and with the desired shadow color)

2022-02-23_21 38 44

Result

2022-02-23_21 37 01

Testing project: test_light_colored_shadows.zip

@Calinou Calinou force-pushed the remove-shadow-color-property branch from a26e225 to 661b58a Compare February 23, 2022 21:08
This shadow color property was no longer effective since the shaders
were optimized to improve occupancy.
@Calinou Calinou force-pushed the remove-shadow-color-property branch from 661b58a to aea104d Compare March 4, 2022 22:12
@akien-mga akien-mga merged commit 1561737 into godotengine:master Mar 8, 2022
@akien-mga
Copy link
Member

Thanks!

@Calinou Calinou deleted the remove-shadow-color-property branch March 8, 2022 14:43
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.

3 participants