bg

Planet Shader

Dev Log #22

I've put a lot of work into a new planet shader. My goal was to dynamically show where the sun is relative to each world on their sky sprites. For moons I only needed to represent the phase of the moon. This was pretty quick to knock out with a little help from ChatGPT.

Debugging the planet shader

With that out of the way I scripted up everything needed to update the shader and was ready to take things even further. So I took a crack at a planetary shader. This work went brilliantly and I'm really happy with the results. Here I shrink the world sprite to give me room to render an atmosphere, that has a ton of properties for thickness and colors. I added a cloud layer that is illuminated seperatly and includes colors from the sunrise and sunset. I also take a pass at smoothing the edges to remove a subtle aliasing effect of jaggies around the edge.

Earth Sky Sprite with New Shader

I love how this looks!

Earth Sky Sprite with New Shader

Next Star Over logo

© All Rights Reserved Next Star Over 2024