@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / components / LodLevel
Type Alias: LodLevel ​
ts
type LodLevel = {
path: string;
screenSize: number;
triangles?: number;
};Defined in: components/LOD.ts:4
One extra level of detail: a simpler copy of the entity's model.
Properties ​
| Property | Type | Description | Defined in |
|---|---|---|---|
path | string | The simpler model file (the editor writes name.lod1.glb, name.lod2.glb, ...). | components/LOD.ts:6 |
screenSize | number | Switch to this level once the object covers less than this share of the screen's height (0-1). Levels are listed most detailed first, so each one's screen size is smaller than the one before. | components/LOD.ts:12 |
triangles? | number | Triangles in the file, for the inspector. Informational. | components/LOD.ts:14 |

