@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / components / chooseLodLevel
Function: chooseLodLevel() ​
ts
function chooseLodLevel(
levels,
screenSize,
current,
hysteresis,
cullScreenSize): number;Defined in: components/LOD.ts:74
The level to draw for an object covering screenSize of the screen height, given the level drawn now: -1 for culled. Pure, so it's tested on its own.
Parameters ​
| Parameter | Type |
|---|---|
levels | readonly { screenSize: number; }[] |
screenSize | number |
current | number |
hysteresis | number |
cullScreenSize | number |
Returns ​
number

