Finality Engine
Loading...
Searching...
No Matches
LODGroup.h File Reference

Stores authored level-of-detail thresholds and renderer membership. More...

#include <glm/glm.hpp>
#include <vector>
#include <cstdint>
#include <Core/Core.h>
#include <entt.hpp>

Go to the source code of this file.

Classes

struct  FINALITY::LODLevel
 One screen-relative LOD threshold and its renderer entity UUIDs. More...
struct  FINALITY::LODGroupComponent
 Stores authored level-of-detail thresholds and renderer membership. More...

Namespaces

namespace  FINALITY

Functions

void FINALITY::NormalizeLODGroup (LODGroupComponent &group)
bool FINALITY::RecalculateLODBounds (Scene &scene, entt::entity entity)

Detailed Description

Stores authored level-of-detail thresholds and renderer membership.

Each LODLevel names renderer entity UUIDs and a screen-relative height threshold. The group holds local bounds, automatic-bound controls and hysteresis; runtime visibility maintains independent selection history for each view.

Usage
Assign renderer entities to levels, normalize the group after editing and recalculate bounds when needed. Duplication and prefab instantiation must remap stored renderer UUIDs.

Definition in file LODGroup.h.