# Cubemap as sky

**URL:** <https://forums.unrealengine.com/t/cubemap-as-sky/294085>\
**Category:** Rendering\
**Tags:** skybox, rotating, unreal-engine, question\
**Created:** [September 19, 2014, 10:31am UTC](https://forums.unrealengine.com/t/cubemap-as-sky/294085 "2014-09-19T10:31:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Barzum](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Barzum](https://forums.unrealengine.com/u/Barzum)\
**Post date:** [September 19, 2014, 10:31am UTC](https://forums.unrealengine.com/t/cubemap-as-sky/294085/1 "2014-09-19T10:31:00Z")

</div>

Hello  
I have setup scene with custom skybox,  
I`ve apllied my cube map to EditorSkySphere everything works fine but I have a problem with rotation  
How I can rotate cube map inside material, or how I can rotate sky shape(EditorSkySphere)  
I am want to re-position my sun

---

<div class="post-metadata">

**Author:** ![PowerDesign](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PowerDesign](https://forums.unrealengine.com/u/PowerDesign)\
**Post date:** [March 6, 2015, 10:48am UTC](https://forums.unrealengine.com/t/cubemap-as-sky/294085/2 "2015-03-06T10:48:10Z")

</div>

Do you use a Reflection Vector to sample the cubemap?

---

<div class="post-metadata">

**Author:** ![PowerDesign](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PowerDesign](https://forums.unrealengine.com/u/PowerDesign)\
**Post date:** [March 6, 2015, 11:43am UTC](https://forums.unrealengine.com/t/cubemap-as-sky/294085/3 "2015-03-06T11:43:03Z")

</div>

I cannot use the built-in RotateAboutAxis, but have to implement the rotation matrices:

![](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/f/ff1b87f84a7a397e657f7d772581288989ba6def.png)
