Me, make a game? Nah, probably not. But I'll enjoy playing around with gameplay and visual art. This will become a dumping ground for the random things I made. Some I'll post the full source for, some not. Unless otherwise mentioned, all assets are licensed CC-BY-SA-NC 4.0
This mornings creation: a rocky planet shader:
With the same shader you can do many varieties of solid-core planets, from earth-like to airless moons. It was designed for a 3d top-down game, so it's best for viewing from the sides at longish distances.
It uses a single texture which is a normal map with the elevation baked into the alpha channel. The other controls are shown below:
The surface roughness is the influence of the normal map. Small numbers = smooth surface lighting
The surface color roughness enhances the contrast of the two surface colors.
The atmosphere amount changes it between being airless and having an atmosphere. In the demo image you can see that a moon with no atmosphere is nearly invisible from the back, but if there is an atmosphere the light "wraps" around.
Possible future advances:
- Ice caps at poles to hide the texture seams
- Model the scattering separate to the transmission so the planet looks better from the front.
Demo project is attached to this post. It may need a development build of Godot.