SceneEnvironment class final

The settings that affect the environment in which a scene is displayed.

This includes rendering of the atmosphere effect, stars, and background color. If all three of these effects are set, they are rendered in the following order: background color, stars, then atmosphere.

Some scene environment effects will change depending on the position of the camera relative to the surface. Atmosphere effect is disabled when too far from the surface. Lighting and shadows are most accurate when closer to the surface and are disabled further from the surface.

Implemented types

Constructors

SceneEnvironment({bool isAtmosphereEnabled = true, bool areStarsEnabled = true, SceneLighting? lighting, Color backgroundColor = Colors.black})
Creates an environment object.
factory

Properties

areStarsEnabled bool
True if stars should be visualized, false otherwise.
getter/setter pair
backgroundColor Color
The color of the background that is displayed behind any scene objects.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isAtmosphereEnabled bool
True if the atmosphere should be visualized, false otherwise. This includes sky and haze effects.
getter/setter pair
lighting SceneLighting
The lighting object that controls how the scene is lit.
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