C99 heightmap utilities.
heman_generate_planet_heightmap
, which samples noise over a 3D domain to generate a lat-long height field for an imaginary planet.double
instead of float
.This is the birth of heman, a tiny C library for doing stuff with height fields, distance fields, and normal maps.