LodLevel class Scene graph

One level of detail for an LodComponent: a drawable variant shown while the object's projected on-screen size (see lodScreenSize) is at least screenSize, a fraction of the viewport height.

Levels are listed highest detail first, with strictly descending screenSize thresholds. The smallest threshold is the cull floor: below it the object is not drawn. Set the last level's screenSize to 0 to never cull.

Constructors

LodLevel({required Geometry geometry, required Material material, required double screenSize})
A level drawing geometry with material down to a screenSize fraction of the viewport height.
const

Properties

geometry → Geometry
The geometry drawn at this level.
final
hashCode → int
The hash code for this object.
no setterinherited
material → Material
The material drawn at this level.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
screenSize → double
The smallest projected size (fraction of viewport height) at which this level is used.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited