EnvironmentResource class

A reusable image-based-lighting environment in the resource pool, referenced by the stage's global environment and by environment-volume components.

Bundles the blendable look (the same fields the stage carries): the image-based-lighting environment, its intensity and reflection-cube size, exposure, tone mapping, the skybox, and sky-driven lighting. Realizes to a runtime EnvironmentSettings.

Inheritance

Constructors

EnvironmentResource(LocalId id, {String name = '', EnvironmentSpec environment = const StudioEnvironment(), double environmentIntensity = 1.0, double exposure = 1.0, String toneMapping = 'pbrNeutral', int? radianceCubeSize, SkyboxSpec? skybox, SkyEnvironmentSpec? skyEnvironment})
Creates an environment resource with the documented defaults.

Properties

environment EnvironmentSpec
The image-based-lighting environment.
getter/setter pair
environmentIntensity double
Scalar multiplier on the environment's contribution.
getter/setter pair
exposure double
Linear exposure multiplier applied before tone mapping.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id LocalId
This resource's stable, document-scoped id.
finalinherited
name String
A human-readable label shown in the editor (not load-bearing).
getter/setter pair
radianceCubeSize int?
The reflection/ambient cubemap size, or null for the engine default.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
skybox SkyboxSpec?
The visible background sky, when set.
getter/setter pair
skyEnvironment SkyEnvironmentSpec?
Sky-driven lighting, when set.
getter/setter pair
toneMapping String
The tone-mapping operator name.
getter/setter pair

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