Scene class
Root of the scene graph. Contains the environment and all nodes.
- Implementers
Constructors
- Scene({Color backgroundColor = const Color(0xFF0A0A1A), Color ambientColor = const Color(0xFF202030), double fogDensity = 0, Color fogColor = const Color(0xFF000000), Color? skyZenithColor, Color? skyGroundColor, double fogMaxOpacity = 1.0, double fogCutoffDistance = 0, double fogHeightFalloff = 0})
Properties
- ambientColor ↔ Color
-
getter/setter pair
- backgroundColor ↔ Color
-
getter/setter pair
- fogColor ↔ Color
-
getter/setter pair
- fogCutoffDistance ↔ double
-
Distance in meters past which fog is not applied (0 = no cutoff). Lets a
far layer — a star field, a moon — stay crisp behind hazed terrain.
getter/setter pair
- fogDensity ↔ double
-
getter/setter pair
- fogHeightFalloff ↔ double
-
How fast fog thins with altitude above the floor (0 = uniform). Larger
values hug the ground: mist over a courtyard, haze on a landing pad,
clear air at head height and above. Retained GPU renderers only.
getter/setter pair
- fogMaxOpacity ↔ double
-
Upper bound on fog opacity, 0..1. Below 1 distant geometry never fully
dissolves, so a mountain range or skyline keeps a silhouette against
the sky instead of becoming a flat wall of fogColor.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasSkyDome → bool
-
Whether a gradient sky dome is requested; see skyZenithColor.
no setter
-
lights
→ List<
Light> -
Collects all lights in the scene tree.
no setter
- root → Node
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- skyGroundColor ↔ Color?
-
Color of the dome below the horizon; see skyZenithColor.
getter/setter pair
- skyZenithColor ↔ Color?
-
Sky color straight up for a world-locked gradient sky.
getter/setter pair
-
visibleNodes
→ List<
Node> -
Collects all visible nodes.
no setter
Methods
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited