SunLightSpec class

A sky-driven analytic sun and its cascaded-shadow configuration.

Constructors

SunLightSpec({bool castsShadow = true, double intensityScale = 1.0, int priority = 0, bool cacheStaticShadows = true, double shadowSoftness = 0.08, double shadowMaxDistance = 150.0, int shadowCascadeCount = 4, int shadowMapResolution = 1024, double shadowDepthBias = 0.02, double shadowNormalBias = 0.02, double shadowFadeRange = 2.0, double shadowCascadeSplitLambda = 0.6, double shadowAmbientStrength = 0.0, String shadowFilter = 'rotatedPoisson', bool contactShadows = false, double contactShadowDistance = 0.3, double angularRadius = 0.005, String shadowCasterFaces = 'front'})
Creates the spec with the runtime defaults.

Properties

angularRadius double
getter/setter pair
cacheStaticShadows bool
Whether static shadow casters are cached between frames.
getter/setter pair
castsShadow bool
Whether the sun casts cascaded shadows.
getter/setter pair
contactShadowDistance double
getter/setter pair
contactShadows bool
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
intensityScale double
Multiplier applied to the sky-derived sun intensity.
getter/setter pair
priority int
Priority for primary directional-light features.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadowAmbientStrength double
How strongly shadows darken image-based ambient lighting.
getter/setter pair
shadowCascadeCount int
Number of shadow cascades.
getter/setter pair
shadowCascadeSplitLambda double
Blend between uniform and logarithmic cascade splits.
getter/setter pair
shadowCasterFaces String
Caster faces rendered into the shadow map.
getter/setter pair
shadowDepthBias double
Receiver depth bias in world units.
getter/setter pair
shadowFadeRange double
Distance over which far shadows fade out.
getter/setter pair
shadowFilter String
Shadow sampling filter name.
getter/setter pair
shadowMapResolution int
Resolution of each cascade tile.
getter/setter pair
shadowMaxDistance double
Maximum camera distance covered by cascaded shadows.
getter/setter pair
shadowNormalBias double
Receiver normal bias in world units.
getter/setter pair
shadowSoftness double
World-space shadow penumbra radius.
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