# Sun Shader

**URL:** <https://forums.unrealengine.com/t/sun-shader/8912>\
**Category:** FX\
**Tags:** unreal-engine\
**Created:** [August 6, 2014, 11:12am UTC](https://forums.unrealengine.com/t/sun-shader/8912 "2014-08-06T11:12:43Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![cooreets](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@cooreets](https://forums.unrealengine.com/u/cooreets)\
**Post date:** [August 6, 2014, 11:12am UTC](https://forums.unrealengine.com/t/sun-shader/8912/1 "2014-08-06T11:12:43Z")

</div>

Hello!

I’ve created this sun in Maya:

 ![0dc4228d951d4a26034df1ad0722f3b8760b9aae.jpeg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/0/d/0dc4228d951d4a26034df1ad0722f3b8760b9aae.jpeg)

[![]( " - YouTube") ](https://www.youtube.com/watch?v=PYXT9iLBGlU)

How can I create a shader in UE4 that would look similar to this?

I am a total noob at this, so any help would be appreciated!

Thanks!

---

<div class="post-metadata">

**Author:** ![Jacky](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jacky/32/918690_2.png) [@Jacky](https://forums.unrealengine.com/u/Jacky)\
**Post date:** [August 6, 2014, 1:52pm UTC](https://forums.unrealengine.com/t/sun-shader/8912/2 "2014-08-06T13:52:32Z")

</div>

There are more than one ways really. For the surface you need black&white alpha masks(or built-in procedural noise in the material editor) that resemble the sun surface and then combine and pan those and set the color either with constant vectors or a black body node. For flamey looking outer surface you can either use planes scattered all over the sun and use another texture for those, or you can make particle systems. You can even have sun flares with GPU particles controlled with vector fields like so:

![7386239d02062ce31b4ab0385dc4d09d14b3c358.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

Search the forums for sun and solar system and you’ll find more examples and materials.

---

<div class="post-metadata">

**Author:** ![cooreets](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@cooreets](https://forums.unrealengine.com/u/cooreets)\
**Post date:** [August 6, 2014, 6:41pm UTC](https://forums.unrealengine.com/t/sun-shader/8912/3 "2014-08-06T18:41:15Z")

</div>

I’d like to do a flamey surface with particles instead of scattered planes, but I just have no idea how to do it. I’ve tried modifying a particle emmiter, but I just don’t understand anything there ☹ Like I said, I’m a noob.

---

<div class="post-metadata">

**Author:** ![Jacky](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jacky/32/918690_2.png) [@Jacky](https://forums.unrealengine.com/u/Jacky)\
**Post date:** [August 6, 2014, 6:50pm UTC](https://forums.unrealengine.com/t/sun-shader/8912/4 "2014-08-06T18:50:12Z")

</div>

Being noob is fine! Watch this video to learn how to create a fire particle effect from scratch:

https://www.youtube.com/embed/GCfmwSonCBw?feature=oembed&wmode=opaque&list=UUA-sP_G8gDY0V9YOOpK7V1g

He uses UDK, but the majority of the stuff you’ll see there apply to UE4 as well.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6a0cf002](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6a0cf002](https://forums.unrealengine.com/u/anonymous_user_6a0cf002)\
**Post date:** [August 7, 2014, 5:52pm UTC](https://forums.unrealengine.com/t/sun-shader/8912/5 "2014-08-07T17:52:11Z")

</div>

We tried around a bit with several approaches and that’s the wip result for now:

[![]( " - YouTube") ](https://www.youtube.com/watch?v=2P3UHGylFTM)

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [August 7, 2014, 9:31pm UTC](https://forums.unrealengine.com/t/sun-shader/8912/6 "2014-08-07T21:31:46Z")

</div>

I’m linking in your AnswerHub post here as well:**[https://answers.unrealengine.com/questions/79827/sun-shader.html](https://answers.unrealengine.com/questions/79827/sun-shader.html)**

---

<div class="post-metadata">

**Author:** ![Jambax](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jambax/32/904177_2.png) [@Jambax](https://forums.unrealengine.com/u/Jambax)\
**Post date:** [August 8, 2014, 2:48pm UTC](https://forums.unrealengine.com/t/sun-shader/8912/7 "2014-08-08T14:48:39Z")

</div>

I’m going to be taking on something similar over the next few weeks, I’ll get back to you with any cool tips and tricks I find 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6a0cf002](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6a0cf002](https://forums.unrealengine.com/u/anonymous_user_6a0cf002)\
**Post date:** [August 10, 2014, 1:57pm UTC](https://forums.unrealengine.com/t/sun-shader/8912/8 "2014-08-10T13:57:15Z")

</div>

Hey , looking forward to see your results. Cooreets and I continued with it a bit and it’s slowly getting somewhere. 🙂

Using a depth opacity node now and way better flame-flipbook texture.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_cc85008c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_cc85008c](https://forums.unrealengine.com/u/anonymous_user_cc85008c)\
**Post date:** [July 10, 2020, 1:10pm UTC](https://forums.unrealengine.com/t/sun-shader/8912/9 "2020-07-10T13:10:35Z")

</div>

@Jacky Is this sun made in ue4?

---

<div class="post-metadata">

**Author:** ![Jacky](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jacky/32/918690_2.png) [@Jacky](https://forums.unrealengine.com/u/Jacky)\
**Post date:** [July 12, 2020, 3:09pm UTC](https://forums.unrealengine.com/t/sun-shader/8912/10 "2020-07-12T15:09:26Z")

</div>

@Uzad_abdlm It was. Though i’m sure a much better version of it can be made now with the help of Niagara.
