Chasing the moon, flying over the surface with high speed.

I love the ray marching method for creating incredible graphics. No mesh or texture is used, the whole program is made in the fragment shader. Click on the image to run the simulation.

Fly over the surface of the moon.

Run Full Screen

Ray marching has some incredible properties. For web based application, the pros and cons are:


  • Very small file size, fast loading. The whole program is just one file under 4kB.
  • Native, compiled machine code running on the GPU.
  • Program in GLSL, a subset of C.


  • You cannot use libraries.
  • No mesh import possibilities.
  • 3D engine and light.

[The article will be expanded later…]