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

Provides functions for generating shaded relief maps, shadow intensity, and topographic shading. More...

Go to the source code of this file.

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::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.
 
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].
 

Detailed Description

Provides functions for generating shaded relief maps, shadow intensity, and topographic shading.

Author
Otto Link (otto..nosp@m.link.nosp@m..bv@g.nosp@m.mail.nosp@m..com)

This header file defines functions for computing various types of shadow and shading effects from heightmap data. These functions include shaded relief (hillshading), shadow intensity based on grid and heightmap techniques, and topographic shading.