pub fn primary_view(world: &World, runtime: &Runtime) -> Option<ExtractedView>Expand description
Returns the primary ExtractedView for the frame: the first active
scene Camera, or — if none — the editor’s
EditorViewportOverride.
Shared by RenderFlow and
ShadowFlow so both flows agree on which
view their data is built around (CSM frustum slicing in particular
needs the same camera the lit pass will sample shadows from).