# Rotating Directional Light just stretches Light Function from centre

**URL:** <https://forums.unrealengine.com/t/rotating-directional-light-just-stretches-light-function-from-centre/395947>\
**Category:** Rendering\
**Tags:** light-function, unreal-engine, bug-report, directional-light, Lighting, question\
**Created:** [June 9, 2017, 3:36pm UTC](https://forums.unrealengine.com/t/rotating-directional-light-just-stretches-light-function-from-centre/395947 "2017-06-09T15:36:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_705e34d1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_705e34d1](https://forums.unrealengine.com/u/anonymous_user_705e34d1)\
**Post date:** [June 9, 2017, 3:36pm UTC](https://forums.unrealengine.com/t/rotating-directional-light-just-stretches-light-function-from-centre/395947/1 "2017-06-09T15:36:38Z")

</div>

I am trying to set up a rotating sun / directional light with a light function for cloud shadows.

When I rotate the sun actor around the X or Y axis the light function is stretched in the same direction, regardless of which direction I rotate it.

To reproduce:

- Add a Directional Light with a light function (mine just uses a panning noise texture), facing downward.
- Rotate the Light in each direction, around the X (or Y) axis.

This is the result I got:

[Gif 1](http://gph.is/2CDnCmP)

[Gif 2](http://gph.is/2CAFbDW)

edit: Added links to two GIFs to hopefully make the problem clearer,  
and I have tested it in an empty project in 4.18.2 and the problem still exists.

---

<div class="post-metadata">

**Author:** ![redbox](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@redbox](https://forums.unrealengine.com/u/redbox)\
**Post date:** [June 9, 2017, 6:24pm UTC](https://forums.unrealengine.com/t/rotating-directional-light-just-stretches-light-function-from-centre/395947/2 "2017-06-09T18:24:09Z")

</div>

Light function in directional light works like projected texture, and itwill stretch in some angles.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_705e34d1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_705e34d1](https://forums.unrealengine.com/u/anonymous_user_705e34d1)\
**Post date:** [June 9, 2017, 7:09pm UTC](https://forums.unrealengine.com/t/rotating-directional-light-just-stretches-light-function-from-centre/395947/3 "2017-06-09T19:09:41Z")

</div>

That much makes sense, but my issue is that it isn’t stretching correctly.  
If I rotate the directional light to two completed different directions it produces the same result, which doesn’t seem right to me.
