Examples /

Contour terrain

A miniature world rises from a height field, etched with survey-like elevation lines.

Initializing WebGPUwgpu-kit 2.2.0

Move horizontally to orbit. Relief changes the landscape’s actual elevation.

How it works

A camera ray intersects a multi-octave height field. Finite differences estimate normals, while quantized elevation draws contour lines. The relief slider changes both the silhouette and the shadowed surface.

Read the related guide →

Search concepts, APIs, and examples