pub fn drive_render_targets(
targets: ResMut<'_, RenderTargets>,
images: ResMut<'_, Assets<Image>>,
nodes: Query<'_, '_, &ComputedNode>,
cameras: Query<'_, '_, (&PortalCamera, &mut Camera)>,
)Expand description
Drive resolution and the snapshot lifecycle each frame:
- For
Resolution::Autotargets, size the texture to the binding portal’s laid-out physical size (quantized to [SIZE_STEP]) and mark dirty on change. - For each
PortalCamera, setis_active: always on forRenderMode::Live; on for one frame for a dirtyRenderMode::Snapshot, then off.