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', double agxWhite = 16.29, double agxContrast = 1.25, double environmentRotationY = 0.0, int? radianceCubeSize, SkyboxSpec? skybox, SkyEnvironmentSpec? skyEnvironment, EnvironmentEffectsSpec? effects, bool overridesEffects = true})
Creates an environment resource with the documented defaults.

Properties

agxContrast double
Contrast applied by AgX around middle gray.
getter/setter pair
agxWhite double
Linear scene value mapped to display white by AgX.
getter/setter pair
effects ↔ EnvironmentEffectsSpec
Blendable rendering and post-processing settings for this look.
getter/setter pair
environment EnvironmentSpec
The image-based-lighting environment.
getter/setter pair
environmentIntensity double
Scalar multiplier on the environment's contribution.
getter/setter pair
environmentRotationY double
Rotation around the world Y axis applied when sampling the environment.
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
overridesEffects bool
Whether effects replace the live scene's current effect settings.
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