bevy/examples/window
Jakob Hellermann 0ed08d6a15 fix multiple_windows example (#4389)
The example was broken in #3635 when the `ActiveCamera` logic was introduced, after which there could only be one active `Camera3d` globally.
Ideally there could be one `Camera3d` per render target, not globally, but that isn't the case yet.

To fix the example, we need to
- don't use `Camera3d` twice, add a new `SecondWindowCamera3d` marker
- add the `CameraTypePlugin::<SecondWindowCamera3d>`
- extract the correct `RenderPhase`s
- add a 3d pass driver node for the secondary camera

Fixes #4378

Co-authored-by: Jakob Hellermann <hellermann@sipgate.de>
2022-04-01 21:11:07 +00:00
..
clear_color.rs Replace old renderer with new renderer (#3312) 2021-12-14 03:58:23 +00:00
low_power.rs Reduce power usage with configurable event loop (#3974) 2022-03-07 23:32:05 +00:00
multiple_windows.rs fix multiple_windows example (#4389) 2022-04-01 21:11:07 +00:00
scale_factor_override.rs Add docs and common helper functions to Windows (#4107) 2022-03-08 00:46:04 +00:00
transparent_window.rs default() shorthand (#4071) 2022-03-01 20:52:09 +00:00
window_settings.rs Add docs and common helper functions to Windows (#4107) 2022-03-08 00:46:04 +00:00