Skip to main content

Module heightmap

Module heightmap 

Source
Expand description

Heightmap implementation for tracking the highest blocks in a chunk.

Heightmaps are used for various purposes like spawning, pathfinding, and rendering.

ChunkHeightmaps stores the six vanilla heightmap slots across every chunk phase. Individual maps are materialized as required by the chunk’s generation status.

StructsΒ§

ChunkHeightmaps
Heightmap storage retained across every phase of a chunk.
Heightmap
A heightmap that tracks the highest blocks of a specific type in a chunk.

EnumsΒ§

HeightmapType
The different types of heightmaps.

StaticsΒ§

HEIGHTMAP_OPACITY_MASK_BY_STATE πŸ”’
WORLD_SURFACE_OPACITY_MASK_BY_STATE πŸ”’

FunctionsΒ§

build_state_opacity_masks πŸ”’
build_world_surface_opacity_masks πŸ”’
heightmap_opacity_mask πŸ”’