Module dagon.graphics.heightmap

Provides interfaces and implementations for height data sources.

The dagon.graphics.heightmap module defines the Heightmap interface for querying height values at arbitrary coordinates, and provides implementations such as ImageHeightmap (using a grayscale image) and OpenSimplexHeightmap (using procedural noise). Heightmaps are used for terrain rendering and collision detection.

Interfaces

NameDescription
Heightmap Interface for heightmap data sources. Implement this interface to provide height values for terrain or procedural geometry.

Classes

NameDescription
ImageHeightmap Heightmap implementation based on a grayscale image.
OpenSimplexHeightmap Heightmap implementation using procedural OpenSimplex noise. Generates smooth, tileable height values using multiple noise layers.