EnvironmentVolume class Lighting and environment

A region that overrides the scene look with its settings, contributing by camera position.

A global volume (bounds null) always contributes; a local one contributes fully inside its bounds and fades to nothing across blendDistance outside the surface, scaled by weight. Overlapping volumes apply in priority order (higher last, so it wins). Assign a list to Scene.environmentVolumes over a Scene.baseEnvironment.

Constructors

EnvironmentVolume({required EnvironmentSettings settings, EnvironmentVolumeBounds? bounds, double priority = 0.0, double weight = 1.0, double blendDistance = 0.0})

Properties

blendDistance double
World-space fade band outside the bounds surface over which the contribution falls from full to zero. 0 is a hard edge.
getter/setter pair
bounds EnvironmentVolumeBounds?
The region, or null for a global (unbounded) volume.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
priority double
Blend order; higher priority volumes are applied later (on top).
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
settings EnvironmentSettings
The look this volume blends toward where it is in effect.
getter/setter pair
weight double
Master contribution scale, 0..1.
getter/setter pair

Methods

coverage(Vector3 cameraPosition) double
This volume's coverage at cameraPosition, 0..1 (before weight).
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