@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / index / chunkLevelFor
Function: chunkLevelFor() ​
ts
function chunkLevelFor(
distance,
lodDistance,
maxLevel): number;Defined in: terrain/terrainMesh.ts:21
The level a chunk this far away draws at: each level skips twice as many points.
Parameters ​
| Parameter | Type |
|---|---|
distance | number |
lodDistance | number |
maxLevel | number |
Returns ​
number

