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

Namespaces

namespace  hmap
 

Functions

Array hmap::hillshade (const Array &z, float azimuth, float zenith, float talus_ref=1.f)
 Compute the shaded relief map (hillshading) from a heightmap.
 
Array hmap::topographic_shading (const Array &z, float azimuth, float zenith, float talus_ref=1.f)
 Compute the topographic shadow intensity in the range [-1, 1].
 
Array hmap::shadow_grid (const Array &z, float shadow_talus)
 Compute the shadow intensity using a grid-based technique.
 
Array hmap::shadow_heightmap (const Array &z, float azimuth=180.f, float zenith=45.f, float distance=0.2f)
 Compute crude shadows from a heightmap.