# HDR in Skylight - Directional shadows

**URL:** <https://forums.unrealengine.com/t/hdr-in-skylight-directional-shadows/64489>\
**Category:** Architectural and Design Visualization\
**Tags:** unreal-engine\
**Created:** [May 22, 2016, 9:15pm UTC](https://forums.unrealengine.com/t/hdr-in-skylight-directional-shadows/64489 "2016-05-22T21:15:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_0051caf4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0051caf4](https://forums.unrealengine.com/u/anonymous_user_0051caf4)\
**Post date:** [May 22, 2016, 9:15pm UTC](https://forums.unrealengine.com/t/hdr-in-skylight-directional-shadows/64489/1 "2016-05-22T21:15:48Z")

</div>

Hey,  
So I have been putting an HDR of a field with strong sunlight into a skylight and baking lighting with it.

I get approximate matching colours from the HDR, but it produces no directional shadows from the sun area of the HDR. Is there a way to override a setting on the skylight to produce directional shadows at all?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6096f04f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6096f04f](https://forums.unrealengine.com/u/anonymous_user_6096f04f)\
**Post date:** [May 23, 2016, 1:47pm UTC](https://forums.unrealengine.com/t/hdr-in-skylight-directional-shadows/64489/2 "2016-05-23T13:47:24Z")

</div>

Somewhere in the forum is a tutorial on using HDRI correctly. Did you try search?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0051caf4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0051caf4](https://forums.unrealengine.com/u/anonymous_user_0051caf4)\
**Post date:** [May 24, 2016, 2:39am UTC](https://forums.unrealengine.com/t/hdr-in-skylight-directional-shadows/64489/3 "2016-05-24T02:39:32Z")

</div>

Yeah I have seen a few tutorials. None of them light using the range of the HDR. The Skydome generates a very limited dynamic range and I’m guessing, VERY low res approximation. It doesn’t produce directional shadows at all, even if an HDR is created with just one hotspot on it, in an attempt to reproduce a spotlight effect, it doesn’t shade properly.

Here is a tutorial for using HDRI’s in the skylight. You can see from the results the issue. The sunlight in the HDRI doesn’t contribute at all. Realistically, the result of this tutorial would exactly the same by just using environment colour tinted slightly blue.

> **[HDRI Lighting in Unreal Engine](http://rag3dviz.com/tutorial/hdri-lighting-in-unreal-engine/)**
>
> I will be taking 3ds Max and Vray lighting workflow as a reference to recreate the same in Unreal Engine 4. Main focus will be on Unreal Engine, just giving reference to 3ds max and Vray settings. …

I’m convinced now that the skylight alone can’t be used to light a scene in UE4. It has been optimised to add the general colour of the HDR. BTW this probably means that HDR’s can be tiny resolution and still look identical. w

The next step seems to be:  
\> Put the HDR on a sphere, that emits light into the scene via it’s emission OR  
\> Light the same HDR with a wide spotlight facing upwards

So far neither of these approaches contributes to lightmass.
