Realistic Sun with noise and rays

Playing with shaders again, I pushed my idea using ChatGPT. This is what I came up to.

15 Likes

If change height of screen then stretch. Also cant aplly settings.

I forgot to update the camera matrix on resize :slight_smile:

Dont forget this

2 Likes

Yes forgot about that part.

I added the sun in my landing page is loading random scenes if you don’t see it, refresh the page until it appears.

https://fwdapps.net/

4 Likes

looks great! Would love to have a look at the shader. Any chance of sharing it?

Yes here is the source code https://fwdapps.net/sun.zip

2 Likes

The most realistic sun I’ve seen so far—one that’s closest to Unity’s effects! Thank you!

1 Like

Glad I can share something nice!

Hi,
I really admire the sun shader you created — it looks incredible.
I’m currently building a personal website to archive my own sci-fi worldbuilding project (space-themed), and your sun would fit perfectly with the concept.

At this stage, the website is a non-commercial personal project.
Would it be alright if I use your shader on my site with proper credit to you?

If the project ever becomes commercial in the future, I will make sure to contact you again for permission.

Thank you very much!

1 Like

Yes, feel free to use it as you want!

2 Likes