godot icon indicating copy to clipboard operation
godot copied to clipboard

Add a shadow opacity property to Light3D

Open Calinou opened this issue 2 years ago • 3 comments

This can be used to make shadows translucent for a specific light. Performance seems to be identical from before, both with shadows enabled and disabled. This is a partial reimplementation of the shadow_color property, which had to be removed for optimization reasons.

The light distance fade system also uses this to smoothly fade the shadow when the light fade transition distance is greater than 0.

Calinou avatar Jun 10 '22 11:06 Calinou

I fixed shadow fade, it now works (tested with both OmniLight3D and SpotLight3D).

Calinou avatar Jun 14 '22 15:06 Calinou

Seems ok save for the comment I made. Needs rebase.

reduz avatar Aug 06 '22 22:08 reduz

Rebased (with suggestion applied) and tested again, it works as expected on all light types.

Calinou avatar Aug 07 '22 09:08 Calinou

Thanks!

akien-mga avatar Aug 07 '22 10:08 akien-mga