Expand description
ShadowFlow — derives, per shadow-casting light, the view-projection
matrix the shadow pass will use to render its depth slice.
Lives in the Substrate Pass: pure data derivation, no GPU work. The
[ShadowPassLane] reads the resulting ShadowView from the
LaneBus and only handles atlas allocation
and depth rendering — the math has moved to where it belongs (Data).
§Index alignment
Light indices in ShadowView::matrices match light positions in
RenderWorld.lights: both are produced by iterating
world.query::<(&Light, &GlobalTransform)>() and skipping disabled
lights, in the same order. The shadow lane and the lit lanes therefore
agree on which i refers to which light.
Structs§
- Shadow
Flow - Computes shadow view-projection matrices.
- Shadow
View - Output of
ShadowFlow.
Enums§
- Shadow
Matrices - View-projection matrices a single shadow-casting light publishes.