22#include "macrologger.h"
55 float talus_ref = 1.f);
68Array
shadow_grid(
const Array &z,
float shadow_talus);
84 float azimuth = 180.f,
115 float talus_ref = 1.f);
Declaration of the Array class for 2D floating-point arrays with various mathematical operations and ...
Definition algebra.hpp:28
Array topographic_shading(const Array &z, float azimuth, float zenith, float talus_ref=1.f)
Compute the topographic shadow intensity in the range [-1, 1].
Definition shadows.cpp:33
Array shadow_grid(const Array &z, float shadow_talus)
Compute the shadow intensity using a grid-based technique.
Definition shadows.cpp:50
float distance(const Point &p1, const Point &p2)
Calculates the distance between two points.
Definition points.cpp:93
Array shadow_heightmap(const Array &z, float azimuth=180.f, float zenith=45.f, float distance=0.2f)
Compute crude shadows from a heightmap.
Definition shadows.cpp:67
Array hillshade(const Array &z, float azimuth, float zenith, float talus_ref=1.f)
Compute the shaded relief map (hillshading) from a heightmap.
Definition shadows.cpp:18