# How to render cubemap as post process material?

**URL:** <https://forums.unrealengine.com/t/how-to-render-cubemap-as-post-process-material/484040>\
**Category:** Rendering\
**Tags:** cubemap, Post-Processing, unreal-engine, day-night-cycle, question\
**Created:** [May 28, 2021, 8:12am UTC](https://forums.unrealengine.com/t/how-to-render-cubemap-as-post-process-material/484040 "2021-05-28T08:12:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![freaknbigpanda](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@freaknbigpanda](https://forums.unrealengine.com/u/freaknbigpanda)\
**Post date:** [May 28, 2021, 8:12am UTC](https://forums.unrealengine.com/t/how-to-render-cubemap-as-post-process-material/484040/1 "2021-05-28T08:12:42Z")

</div>

Hi, I am trying to render stars as a post process blendable material as described here:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/e/9/ce9057c546e883c18946d86a1ba9c445cc91bbcb.jpeg "Exploring the depths of the new Sky & Atmosphere system | Unreal Engine") ](https://www.youtube.com/watch?v=SeNM9zBPLCA)

Unfortunately there were not enough frames in the video to see what nodes he used but I came up with this:

 ![340065-post-process-stars.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/f/a/4faba38eb7301e26e72ea30db44b030c3a20064f.png)

I didn’t need all that stuff he talked about in the video to adjust the material when in outer space since my game doesn’t have the ability to move from the ground to outer-space. I just want to show stars when the sun drops below the horizon.

Unfortunately this setup produces some bad ‘flickering’ artifacts around the edges of the objects in the foreground an the background. I can’t really describe it any better than that but it is very noticeable in game. Also I noticed that if I use the epic quad default engine cubemap it doesn’t render correctly at all for example:

[[Album] imgur.com ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/e/e/dee3a5d1888a2b6dbdb06e404fdd200336cbd344.jpeg "imgur.com") ](https://imgur.com/a/5i7jfIu)

**tldr: What is wrong with my post process material graph? How do I property render and blend cubemaps as a post process material?**

---

<div class="post-metadata">

**Author:** ![imp.dgart](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@imp.dgart](https://forums.unrealengine.com/u/imp.dgart)\
**Post date:** [June 3, 2021, 6:43am UTC](https://forums.unrealengine.com/t/how-to-render-cubemap-as-post-process-material/484040/2 "2021-06-03T06:43:05Z")

</div>

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/8/7/387928a7dad35d09b83579ef4d56ef89908c2e7f.png)

By the way, full material showed in this video: [From Ants To Outer Space | Inside Unreal - YouTube](https://www.youtube.com/watch?v=xz-XBPjd2OY)

---

<div class="post-metadata">

**Author:** ![i\_Byte](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@i\_Byte](https://forums.unrealengine.com/u/i_Byte)\
**Post date:** [April 18, 2022, 6:02pm UTC](https://forums.unrealengine.com/t/how-to-render-cubemap-as-post-process-material/484040/3 "2022-04-18T18:02:39Z")

</div>

Cool.  
But the stars are visible on the horizon during the day. How to get rid of it?

 ![Post_p_stars](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/d/9/fd99aa5268b1ebfccb332245f21f56391e101c20.jpeg)
