Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2020-01-23 16:25:34 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-01-23 17:41:41 +0300
commit6dcbc3cd5aa468f346260fc89ffd58c9445391b7 (patch)
tree43c937f4dbc71fc47c7710b29f66b469e482278a
parentfb0136f908652a0fef93c6007f127fd322282c88 (diff)
Fix T73335 Overlay: Light Distance line does not represent custom distance
This is a fix to the issue that light distance line end does not represent anything now that shadow bounds are computed automatically.
-rw-r--r--source/blender/draw/engines/overlay/overlay_extra.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/draw/engines/overlay/overlay_extra.c b/source/blender/draw/engines/overlay/overlay_extra.c
index c5dc6860ac2..fc52efb0174 100644
--- a/source/blender/draw/engines/overlay/overlay_extra.c
+++ b/source/blender/draw/engines/overlay/overlay_extra.c
@@ -623,8 +623,9 @@ void OVERLAY_light_cache_populate(OVERLAY_Data *vedata, Object *ob)
copy_m4_m4(instdata.mat, ob->obmat);
/* FIXME / TODO: clipend has no meaning nowadays.
* In EEVEE, Only clipsta is used shadowmaping.
- * Clip end is computed automatically based on light power. */
- instdata.clip_end = la->clipend;
+ * Clip end is computed automatically based on light power.
+ * For now, always use the custom distance as clipend. */
+ instdata.clip_end = la->att_dist;
instdata.clip_sta = la->clipsta;
DRW_buffer_add_entry(cb->groundline, instdata.pos);