Home▸GIS & Geoinformatics▸Digital Elevation Model Hillshade: Horn Slope, Aspect and Sun Angle (2D)

Digital Elevation Model Hillshade: Horn Slope, Aspect and Sun Angle (2D)

A shaded-relief map computed live from a synthetic elevation grid with Horn slope and aspect, plus a terrain profile and illumination graphs. The same shared hillshade model as the 3D relief model, with built-in numerical checks.

GIS & Geoinformatics2DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 3D version
Digital Elevation Model Hillshade: Horn Slope, Aspect and Sun Angle (2D) ↗ Open standalone

Turn a grid of elevations into a shaded relief map. Horn's 3 by 3 finite-difference method gives slope and aspect for every cell, and the hillshade is the cosine between the surface normal and the sun. Move the sun azimuth and altitude, exaggerate the vertical scale, change the grid spacing and relief, and read slope, aspect and shadow statistics. A Blender-built plinth, compass and sun with numerical checks of the gradient formulas.

⚙ Under the hood

A shaded-relief map computed live from a synthetic elevation grid with Horn slope and aspect, plus a terrain profile and illumination graphs. The same shared hillshade model as the 3D relief model, with built-in numerical checks.

HillshadeDigital Elevation ModelSlope and AspectTerrain AnalysisGIS

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)