HighMap library (C++)
Loading...
Searching...
No Matches
crater.cpp File Reference

Namespaces

namespace  hmap

Functions

float hmap::helper_crater_radial_function (float r, float inner_depth, float inner_exp, float lip_height, float lip_extent, float lip_exp, int n_terraces, float terrace_extent, float terrace_exp, float terrace_persistence)
float hmap::helper_crater_profile (float r, float dx, float dy, float alpha, float ap, float am, float inner_depth, float inner_exp, float lip_height, float lip_extent, float lip_exp, float central_peak_height, float central_peak_extent, int n_terraces, float terrace_extent, float terrace_exp, float terrace_persistence)
Array hmap::crater (glm::ivec2 shape, float radius, glm::vec2 center={0.5f, 0.5f}, float angle=30.f, float inner_depth=0.1f, float inner_exp=3.f, float lip_height=0.02f, float lip_extent=0.25f, float lip_exp=2.f, float asym_ratio=0.8f, float central_peak_height=0.01f, float central_peak_extent=0.4f, int n_terraces=0, float terrace_extent=0.1f, float terrace_exp=2.f, float terrace_persistence=0.5f, const Array *p_noise_r=nullptr, const UvRect &uv_rect=UvRect::unit(), Array *p_crater_mask=nullptr, Array *p_inner_crater_mask=nullptr)
 Generate a procedural impact crater heightmap.