# \[UE5\] Getting pixeled rays/shadow in SkyAtmosphere when inside the Atmosphere

**URL:** <https://forums.unrealengine.com/t/ue5-getting-pixeled-rays-shadow-in-skyatmosphere-when-inside-the-atmosphere/590734>\
**Category:** Rendering\
**Tags:** Atmosphere, unreal-engine, UE5-0, Rendering, question\
**Created:** [June 26, 2022, 12:28pm UTC](https://forums.unrealengine.com/t/ue5-getting-pixeled-rays-shadow-in-skyatmosphere-when-inside-the-atmosphere/590734 "2022-06-26T12:28:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![digitalritualstudio](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/digitalritualstudio/32/721618_2.png) [@digitalritualstudio](https://forums.unrealengine.com/u/digitalritualstudio)\
**Post date:** [June 26, 2022, 12:28pm UTC](https://forums.unrealengine.com/t/ue5-getting-pixeled-rays-shadow-in-skyatmosphere-when-inside-the-atmosphere/590734/1 "2022-06-26T12:28:33Z")

</div>

I’m trying to create a Planet Atmosphere but I’ve got the issue when I look at the sky atmosphere from outside the atmosphere everything looks fine:

 ![far](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/6/6/766cd7c377028aa9f3f08a71f6c180a7d1c11a63.jpeg)

but as soon as I move inside the sky atmosphere I get these ugly square pixeled rays/shadows:

 ![near](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/c/e/9cef2991a10e6ad438609804f48d325a7f55afb7.jpeg)

How can I set the SkyAtmosphere to get rid of these squares and have smooth lines instead?

---

<div class="post-metadata">

**Author:** ![Arkiras](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arkiras/32/1008648_2.png) [@Arkiras](https://forums.unrealengine.com/u/Arkiras)\
**Post date:** [June 26, 2022, 3:44pm UTC](https://forums.unrealengine.com/t/ue5-getting-pixeled-rays-shadow-in-skyatmosphere-when-inside-the-atmosphere/590734/2 "2022-06-26T15:44:42Z")

</div>

`r.SkyAtmosphere.AerialPerspectiveLUT.FastApplyOnOpaque 0`  
`r.SkyAtmosphere.FastSkyLUT 0`

Alternatively you can increase the r.SkyAtmosphere.FastSkyLUT.SampleCount min/max to higher values to smooth out the result. Might be more performant? You’d have to profile it.

---

<div class="post-metadata">

**Author:** ![digitalritualstudio](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/digitalritualstudio/32/721618_2.png) [@digitalritualstudio](https://forums.unrealengine.com/u/digitalritualstudio)\
**Post date:** [June 26, 2022, 10:21pm UTC](https://forums.unrealengine.com/t/ue5-getting-pixeled-rays-shadow-in-skyatmosphere-when-inside-the-atmosphere/590734/3 "2022-06-26T22:21:04Z")

</div>

> [@Arkiras](#):
>
> `r.SkyAtmosphere.AerialPerspectiveLUT.FastApplyOnOpaque 0`  
> `r.SkyAtmosphere.FastSkyLUT 0`

Wow thank you very much this indeed solved my issue! As for what I see it still runs very smoothly but I’d have to profile it out just like you said.

Much appreciated! 💯
