SkyEnvironmentRefresh enum Lighting and environment
When a SkyEnvironment re-bakes the sky into the scene's lighting.
Values
- manual → const SkyEnvironmentRefresh
-
Bake once when the binding is set, then only when SkyEnvironment.invalidate is called. The right choice for a static sky.
- interval → const SkyEnvironmentRefresh
-
Re-bake when SkyEnvironment.interval has elapsed since the last bake began. The visible sky still draws every frame, so a slowly changing sky (a moving sun) stays smooth on screen while the lighting catches up periodically at a fraction of the cost.
- everyFrame → const SkyEnvironmentRefresh
-
Re-bake continuously: as soon as one bake cycle publishes, the next starts. With the time-sliced bake this costs one bounded pass per frame and the lighting refreshes every cycle (
6 + 1 + band count + 1frames); lower SkyEnvironment.faceResolution / SkyEnvironment.equirectWidth to cheapen the slices further.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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
Constants
-
values
→ const List<
SkyEnvironmentRefresh> - A constant List of the values in this enum, in order of their declaration.