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

Namespaces

namespace  hmap
 
namespace  hmap::gpu
 

Functions

void hmap::gpu::mudslide (Array &z, const Array &landslide_mask, float depth, int iterations, float depth_map_exponent=0.5f, float viscosity_law_power=1.5f, Array *p_depth_end=nullptr, Array *p_depth_init=nullptr)
 Simulate a mudslide (landslide-driven material redistribution) on a height field.
 
void hmap::gpu::mudslide (Array &z, float talus_limit, float depth, int iterations, float depth_map_exponent=0.5f, float viscosity_law_power=1.5f, Array *p_depth_end=nullptr, Array *p_depth_init=nullptr)
 See hmap::mudslide.