Display
core.display.set_lod_threshold
ClientSets the global LOD threshold used when rendering models
Syntax
local status = core.display.set_lod_threshold(
threshold
)The threshold is global and combines with each component's LOD bias.
- Effective detail — roughly
bias / threshold, so a higher threshold uses less detailed LODs. - Zero —
0disables automatic LOD, so the highest detail is always used. - Negative values — clamped to
0. - Per component — see
self:set_component_lod_biasfor a single component. - Local only — a render setting on this client, never replicated to other peers.
Parameters
| Type | Name | Description |
|---|---|---|
float | threshold | LOD threshold to apply, negative values are clamped to 0 |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
core.display.set_lod_threshold(2)core.display.set_lod_threshold(2)
core.engine.print("info", "LOD threshold:", core.display.get_lod_threshold())