Skip to content

@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 ​

PropertyTypeDescriptionDefined in
pathstringThe simpler model file (the editor writes name.lod1.glb, name.lod2.glb, ...).components/LOD.ts:6
screenSizenumberSwitch 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?numberTriangles in the file, for the inspector. Informational.components/LOD.ts:14