ShadowCascade class Lighting and environment
One cascade of a cascaded shadow map, produced by DirectionalLight.computeCascades.
A cascade owns the world -> light-clip-space matrix that renders and samples its shadow map tile, plus the camera view distance at which its coverage ends.
Constructors
- ShadowCascade({required Matrix4 lightSpaceMatrix, required double splitDistance, required double boxSize, Vector3? center, double radius = 0.0})
-
Creates a cascade from its
lightSpaceMatrix,splitDistance, andboxSize.
Properties
- boxSize → double
-
World-space side length of this cascade's orthographic box, used
to convert world-space softness and fade widths into the
cascade's UV space.
final
- center → Vector3?
-
World-space center of the frustum-slice bounding sphere this cascade
was fit to, or null when the cascade was built directly from a matrix.
The shadow cache uses it to decide when a cached tile still covers the
current view.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lightSpaceMatrix → Matrix4
-
World -> light-clip-space matrix that renders and samples this
cascade's shadow map tile.
final
- radius → double
-
Radius of the bounding sphere behind center (0 when unknown).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- splitDistance → double
-
Camera view-space distance, in world units, at which this
cascade's coverage ends.
final
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