SpotShadowInfo class Rendering

Where the frame's spot shadows live in the shared shadow atlas (the texture under kShadowMapBlackboardKey): one square tile per casting spot, at the spot's own resolution, holding window-space depth in red.

Constructors

SpotShadowInfo({required List<Matrix4> matrices, List<Vector4> rects = const [], @Deprecated('Use rects. Unused since tiles are packed per light.') int firstTile = 0, @Deprecated('Use rects. Unused since tiles are packed per light.') int totalTiles = 0, @Deprecated('Use rects. Unused since tiles are packed per light.') int tileResolution = 0})
Creates the layout record for one frame's spot shadows.
const

Properties

firstTile → int
Always 0 from the engine; the atlas no longer places spots in a row.
final
hashCode → int
The hash code for this object.
no setterinherited
matrices → List<Matrix4>
World to clip matrix of each casting spot, in shadow slot order.
final
rects → List<Vector4>
Each spot's tile in atlas UV, in shadow slot order: xy its top-left corner and zw its extent. The atlas is stored top-down, so a spot's uv = clip.xy / clip.w * 0.5 + 0.5 samples rect.xy + vec2(uv.x, 1.0 - uv.y) * rect.zw.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tileResolution → int
Always 0 from the engine; each spot sets its own resolution.
final
totalTiles → int
Always 0 from the engine; the atlas no longer places spots in a row.
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