Skip to main content

Module chunk_coord

Module chunk_coord 

Source
Expand description

Integer coordinate of one chunk column in an infinite voxel world.

The chunk grid is 2D: infinite in X/Z, a single fixed-height chunk in Y (voxel/Minecraft-style worlds bound the vertical extent). A ChunkCoord is the integer index of a chunk column; the world position of its (0,0,0) corner is coord * chunk_world_size.

Structs§

ChunkCoord
Integer index of a chunk column in the infinite X/Z grid.

Functions§

camera_relative_view
Rebase a column-major view matrix onto a render origin for camera-relative rendering.