32 ES_PROPERTY(asset = mesh, tooltip=
"Geometry drawn below the LOD 1 screen size.")
36 ES_PROPERTY(asset = mesh, tooltip=
"Geometry drawn below the LOD 2 screen size.")
40 ES_PROPERTY(asset = mesh, tooltip=
"Geometry drawn below the LOD 3 screen size.")
45 ES_PROPERTY(min=0, max=1, tooltip=
"Screen height fraction below which LOD 1 takes over.")
48 ES_PROPERTY(min=0, max=1, tooltip=
"Screen height fraction below which LOD 2 takes over.")
51 ES_PROPERTY(min=0, max=1, tooltip=
"Screen height fraction below which LOD 3 takes over.")
56 ES_PROPERTY(min=0, max=1, tooltip=
"Screen height fraction below which nothing is drawn (0 = never).")
62 ES_PROPERTY(min=0, max=1, advanced, tooltip=
"Extra fraction to grow past a threshold before the finer level returns.")
65 ES_PROPERTY(tooltip=
"Off: the MeshRenderer's own mesh is always drawn.")
Type-safe resource handle system.
Reflection and metadata system for automatic binding generation.
#define ES_COMPONENT(...)
Mark a struct/class as a component that should be exposed to scripts.
#define ES_PROPERTY(...)
Mark a field as a property that should be exposed to scripts.
Core type definitions and utilities for ESEngine.
float f32
32-bit floating point
f32 lod1Size
Fraction of the viewport height below which lod1 replaces the MeshRenderer's own mesh....
resource::MeshHandle lod1
Geometry drawn once the object is smaller than lod1Size.
resource::MeshHandle lod3
Geometry drawn once the object is smaller than lod3Size.
f32 cullSize
Fraction of the viewport height below which nothing is drawn at all. 0 disables it,...
resource::MeshHandle lod2
Geometry drawn once the object is smaller than lod2Size.
f32 hysteresis
How much further than a threshold the object must grow before the finer level comes back — 0....