Terrain · interface
ClipmapPatch
A selected patch, in exactly the terms heightfieldPatch takes.
Explained in Terrain.
interface ClipmapPatchimport type { ClipmapPatch } from '@driftengine/terrain';Properties
| Name | Type | Description |
|---|---|---|
level | number | |
x | number | Grid index of the patch's first sample, along x. |
z | number | |
cells | number | Field cells the patch spans: patchCells * step. |
step | number | Field 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. |