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

Namespaces

namespace  hmap
 
namespace  hmap::gpu
 

Functions

Array hmap::island_land_mask (Vec2< int > shape, float radius, uint seed, float displacement=0.2f, NoiseType noise_type=NoiseType::SIMPLEX2S, float kw=4.f, int octaves=8, float weight=0.f, float persistence=0.5f, float lacunarity=2.f, const Vec2< float > &center={0.5f, 0.5f}, const Vec4< float > &bbox={0.f, 1.f, 0.f, 1.f})
 Generates a 2D island mask by perturbing a radial boundary with noise.
 
float hmap::gpu::helper_radial_profile (float r, float slope_start, float slope_end, float apex_elevation, float k_smooth, float radial_gain)
 
float hmap::gpu::helper_apply_leeward (float h, float r, float hs, float slope_max, float k_smooth, float lee_amp, float alpha, float lee_alpha)
 
float hmap::gpu::helper_apply_uplift (float h, float r, float slope_max, float uplift_amp, float k_smooth)
 
Array hmap::gpu::island (const Array &land_mask, const Array *p_noise_r=nullptr, float apex_elevation=1.f, bool filter_distance=true, int filter_ir=32, float slope_min=0.1f, float slope_max=8.f, float slope_start=0.5f, float slope_end=1.f, float slope_noise_intensity=0.5f, float k_smooth=0.05f, float radial_noise_intensity=0.3f, float radial_profile_gain=2.f, float water_decay=0.05f, float water_depth=0.3f, float lee_angle=30.f, float lee_amp=0.f, float uplift_amp=0.f, Array *p_water_depth=nullptr, Array *p_inland_mask=nullptr)
 Generates an island heightmap from a land mask using radial profiles, slope shaping, optional noise, and water attenuation.
 
Array hmap::gpu::island (const Array &land_mask, uint seed, float noise_amp=0.07f, Vec2< float > noise_kw={4.f, 4.f}, int noise_octaves=8, float noise_rugosity=0.7f, float noise_angle=45.f, float noise_k_smoothing=0.05f, float apex_elevation=1.f, bool filter_distance=true, int filter_ir=32, float slope_min=0.1f, float slope_max=8.f, float slope_start=0.5f, float slope_end=1.f, float slope_noise_intensity=0.5f, float k_smooth=0.05f, float radial_noise_intensity=0.3f, float radial_profile_gain=2.f, float water_decay=0.05f, float water_depth=0.3f, float lee_angle=30.f, float lee_amp=0.f, float uplift_amp=0.f, Array *p_water_depth=nullptr, Array *p_inland_mask=nullptr)
 Generates an island heightmap from a land mask using internally generated FBM noise for radial perturbation and slope modulation.