terrain

Real-time terrain generation using marching cubes
git clone git://git.christianermann.dev/terrain
Log | Files | Refs | README | LICENSE

sdf.h (224B)


      1 #ifndef SDF_H
      2 #define SDF_H
      3 
      4 #include "types.h"
      5 #include "vec.h"
      6 
      7 typedef f32 (*SDF)(const Vec3 p);
      8 
      9 f32 perlinSDF(const Vec3 p);
     10 f32 caveSDF(const Vec3 p);
     11 f32 terrainSDF(const Vec3 p);
     12 f32 sphereSDF(const Vec3 p);
     13 
     14 #endif