LensFlareSettings class Rendering

Screen-space lens flares: a chain of ghosts mirrored through the screen center and a circular halo, with radial chromatic dispersion, generated from the bloom pyramid. Rides the bloom chain, so bloom must be enabled and the flare brightness scales with BloomSettings.intensity.

Reachable through Scene.postProcess.bloom.lensFlare.

Constructors

LensFlareSettings()

Properties

chromaticAberration double
Radial chromatic dispersion of the flare features, in UV units.
getter/setter pair
enabled bool
Whether lens flares run. Off by default.
getter/setter pair
ghostCount int
Number of internal-reflection ghosts along the line through the screen center. Values above 8 are clamped to 8 when rendered.
getter/setter pair
ghostSpacing double
Spacing between successive ghosts, as a fraction of the distance from the source's mirrored position to the screen center.
getter/setter pair
haloIntensity double
Strength of the halo relative to the ghosts. 0 disables the halo.
getter/setter pair
haloRadius double
Radius of the circular halo, in UV units of the screen.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
intensity double
Strength of the flare features relative to the bloom they ride in.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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