RenderEnvironment class final
Reusable renderer environment settings for a scene.
Environment is separate from lights: lights describe emitters, while the environment describes sky/background color and scene-wide reflection mood.
Constructors
- RenderEnvironment({Vector3 skyColor = const Vector3(0.16, 0.48, 0.78), double skyAlpha = 1, double ambientIntensity = 30000, double reflectionIntensity = 0.9})
-
Creates renderer environment settings.
const
Properties
- ambientIntensity → double
-
Scene-wide ambient light hint for renderer backends.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- reflectionIntensity → double
-
Reflection amount used by reflective procedural materials.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- skyAlpha → double
-
Skybox alpha.
final
- skyColor → Vector3
-
RGB color used by the renderer skybox/background.
final
Methods
-
copyWith(
{Vector3? skyColor, double? skyAlpha, double? ambientIntensity, double? reflectionIntensity}) → RenderEnvironment - Returns a copy with selected values replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMessage(
) → Map< String, Object> - Serializes settings for the native renderer bridge.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited