1#include "LodComponent.h"
3#include "RenderComponent.h"
17 TypeDatabase::createType<LodPolicy>().setEnumerators(enumerators);
20 {
"AreaBased", GeometricErrorKind::AreaBased },
21 {
"DistanceBased", GeometricErrorKind::DistanceBased },
24 TypeDatabase::createType<GeometricErrorKind>().setEnumerators(errorEnumerators);
33 TypeDatabase::createType<LodComponent>().setBase<Component>().setFields(fields);
std::vector< float > thresholds
Threshold values to switch levels of detail at when the policy in use is distance based (for example ...
LodPolicy policy
The policy used for determining the level of detail for this entity.
float geometricTolerance
Geometric tolerance value applied when the lodPolicy field is set to LodPolicy::GeometricTolerance.
static void registerType()
Register the type in the type system.
bool separateHierarchies
Enable old-style lod'ing with a completely separate hierarchy for each lod-level.
Field definition describing a single data member of a data structure.
@ GeometricTolerance
Use a geometric error bound to determine how refined geometry needs to be at its current position.
@ None
No policy applied, the LodSystem will take no action on the entity.
Contains reflection support.