LightingInterface class abstract

Implementers

Constructors

LightingInterface()

Properties

color ↔ Color?
getter/setter pair
debug ↔ bool
When true, draws the outline of every light, occluder and shadow silhouette. Useful to debug why a light is not reaching somewhere.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
occluders → List<LightingOccluder>
Occluders registered through addOccluder.
no setter
quality ↔ LightingQuality
Quality used to compute the shadows of lights with LightingConfig.castShadows.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addLight(LightSource light) → LightSource
Adds a light that is not attached to a component.
addOccluder(LightingOccluder occluder) → LightingOccluder
Registers a light blocker in world coordinates.
animateToColor(Color color, {Duration duration = const Duration(milliseconds: 500), Curve curve = Curves.decelerate}) → void
applyPreset(LightingPreset preset, {Duration duration = const Duration(milliseconds: 900), Curve curve = Curves.decelerate}) → void
Applies an ambient preset, fading the ambient color smoothly.
fadeIn(Color color, {Duration duration = const Duration(milliseconds: 500), Curve curve = Curves.decelerate}) → void
Animates the ambient color from fully transparent to color.
fadeOut({Duration duration = const Duration(milliseconds: 500), Curve curve = Curves.decelerate}) → void
Animates the ambient color to fully transparent.
isEnabled() → bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeLight(LightSource light) → bool
Removes a light previously added with addLight.
removeOccluder(LightingOccluder occluder) → bool
Removes an occluder previously added with addOccluder.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited