Terrain · interface

ClipmapPatch

A selected patch, in exactly the terms heightfieldPatch takes.

Explained in Terrain.

interface ClipmapPatch
import type { ClipmapPatch } from '@driftengine/terrain';

Properties

NameTypeDescription
levelnumber
xnumberGrid index of the patch's first sample, along x.
znumber
cellsnumberField cells the patch spans: patchCells * step.
stepnumberField cells per drawn cell: 1 << level.
neighbours{ minusX?: number; plusX?: number; minusZ?: number; plusZ?: number; }The step of each neighbour that is coarser than this patch. The finer side is the one that moves, so nothing is said about a neighbour at the same level or a finer one.