diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2022-02-24 22:55:14 +0100 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2022-02-25 15:17:35 +0100 |
commit | b1a295b739eb056557e9f2fe47ac80be6cc6d79d (patch) | |
tree | bc99029840febd9b84addbf366f8cfd66af314ba /scene/2d/back_buffer_copy.cpp | |
parent | 4dc8214831d1617e7f5f06e8294fb37ea23dae59 (diff) |
Implement distance fade properties in OmniLight3D and SpotLight3D
This can be used to fade lights and their shadows in the distance,
similar to Decal nodes. This can bring significant performance
improvements, especially for lights with shadows enabled and when
using higher-than-default shadow quality settings.
While lights can be smoothly faded out over distance, shadows are
currently "all or nothing" since per-light shadow color is no longer
customizable in the Vulkan renderer. This may result in noticeable
pop-in when leaving the shadow cutoff distance, but depending on the
scene, it may not always be that noticeable.
Diffstat (limited to 'scene/2d/back_buffer_copy.cpp')
0 files changed, 0 insertions, 0 deletions