Planet generator rendering program

This is a program I wrote in Scratch to create renders of procedurally generated planets. The terrain and ocean are spheres, and their surfaces are offset by layers of procedural noise, creating mountains on land and waves in the oceans. To render a 3D image of the planets, ray marching is used, with a constant step size once the ray is close enough to the planet, to prevent it from overshooting. Once an intersection is found, lighting calculations for diffuse shading and Blinn-Phong specular highlights are applied to create the final color.

This project was added as a featured project to the TurboWarp homepage.

A planet generated by the program

Adjust the noise offsets to affect what the planet will look like, then click the empty space to render.

The project draws at gradually increasing resolutions so a quick preview can be seen quickly, but by waiting long enough you can see a high resolution