Display

core.display.get_lod_threshold

Client

Retrieves the global LOD threshold used when rendering models

Syntax

local threshold = core.display.get_lod_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.
  • Per component — see self:get_component_lod_bias for a single component.
  • Local only — a render setting on this client, never replicated to other peers.

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatthresholdCurrent global LOD threshold

Examples

Print the current LOD threshold
core.engine.print("info", "LOD threshold:", core.display.get_lod_threshold())

On this page