# New feature to help with light leaks with dynamic lights : contact shadows

**URL:** <https://forums.unrealengine.com/t/new-feature-to-help-with-light-leaks-with-dynamic-lights-contact-shadows/78105>\
**Category:** Architectural and Design Visualization\
**Tags:** unreal-engine\
**Created:** [November 11, 2016, 5:00am UTC](https://forums.unrealengine.com/t/new-feature-to-help-with-light-leaks-with-dynamic-lights-contact-shadows/78105 "2016-11-11T05:00:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![heartlessphil](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@heartlessphil](https://forums.unrealengine.com/u/heartlessphil)\
**Post date:** [November 11, 2016, 5:00am UTC](https://forums.unrealengine.com/t/new-feature-to-help-with-light-leaks-with-dynamic-lights-contact-shadows/78105/1 "2016-11-11T05:00:43Z")

</div>

It’s very interesting, it helps preventing light leaks when you use dynamic lights or shadows that don’t start close enough to the source object. It was very annoying in the past. Particularly nice for exterior scenes when you don’t always need/want to bake anything. It’s enabled by default, just need to increase the length.

Here’s a quick example.

Contact shadows length 0  
 ![862af284c4716f46bfb13bc3e364bc51e6758e11.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

Contact shadows length .05  
 ![488384c30f52f87c89011559993b86715c76338a.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5ed114a5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5ed114a5](https://forums.unrealengine.com/u/anonymous_user_5ed114a5)\
**Post date:** [November 11, 2016, 8:30am UTC](https://forums.unrealengine.com/t/new-feature-to-help-with-light-leaks-with-dynamic-lights-contact-shadows/78105/2 "2016-11-11T08:30:47Z")

</div>

> [@;621906](#):
>
> It’s very interesting, it helps preventing light leaks when you use dynamic lights or shadows that don’t start close enough to the source object. It was very annoying in the past. Particularly nice for exterior scenes when you don’t always need/want to bake anything. It’s enabled by default, just need to increase the length.

wowww!

it is only for dynamic lights?

---

<div class="post-metadata">

**Author:** ![heartlessphil](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@heartlessphil](https://forums.unrealengine.com/u/heartlessphil)\
**Post date:** [November 11, 2016, 8:42am UTC](https://forums.unrealengine.com/t/new-feature-to-help-with-light-leaks-with-dynamic-lights-contact-shadows/78105/3 "2016-11-11T08:42:22Z")

</div>

Well, it wouldn’t be useful on a baked scene, since you’d get better contact shadows anyway. It’s good for objects that are lit by movable lights. It seems like it’s a screenspace effect.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5ed114a5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5ed114a5](https://forums.unrealengine.com/u/anonymous_user_5ed114a5)\
**Post date:** [November 11, 2016, 8:52am UTC](https://forums.unrealengine.com/t/new-feature-to-help-with-light-leaks-with-dynamic-lights-contact-shadows/78105/4 "2016-11-11T08:52:30Z")

</div>

oh ok! if it would be useful for baked scene, it is definately a milestone for archviz. you know we’re doing lots of things (increasing lightmaps, decreasing static lighting level scale…) for eleminating light leaks and it costs very expensive.

---

<div class="post-metadata">

**Author:** ![ZacD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZacD](https://forums.unrealengine.com/u/ZacD)\
**Post date:** [November 13, 2016, 2:12pm UTC](https://forums.unrealengine.com/t/new-feature-to-help-with-light-leaks-with-dynamic-lights-contact-shadows/78105/5 "2016-11-13T14:12:42Z")

</div>

It does work on baked lighting from what I noticed. It may help cover up light leaks and increase shadow detail when using lower resolution light maps. But I’d have to do more testing to see if it’s actually completely arch viz viable and works in most situations though, and if you could actually get away with a 128 bake looking similar to a 1024 bake, for example. Probably should keep the value low, like around .1.

---

<div class="post-metadata">

**Author:** ![heartlessphil](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@heartlessphil](https://forums.unrealengine.com/u/heartlessphil)\
**Post date:** [November 13, 2016, 3:41pm UTC](https://forums.unrealengine.com/t/new-feature-to-help-with-light-leaks-with-dynamic-lights-contact-shadows/78105/6 "2016-11-13T15:41:38Z")

</div>

I don’t think so, since it’s a screenspace effect, it can be kinda noisy. I had to increase my screenpercentage to 200 make it look good.

---

<div class="post-metadata">

**Author:** ![ZacD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZacD](https://forums.unrealengine.com/u/ZacD)\
**Post date:** [November 14, 2016, 1:03pm UTC](https://forums.unrealengine.com/t/new-feature-to-help-with-light-leaks-with-dynamic-lights-contact-shadows/78105/7 "2016-11-14T13:03:20Z")

</div>

I wanted to add, it works with stationary lights, but not static lights. If anyone wanted to experiment further with it.
