ShadowCascade class

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})
Creates a cascade from its lightSpaceMatrix, splitDistance, and boxSize.

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
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
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