I have been trying to understand post-processing in Bevy by examining examples and the Temporal Anti-Aliasing (TAA) implementation in Bevy. So far, I managed to combine two examples together but ran into a roadblock when trying to toggle HDR. If someone could help me understand what I'm doing wrong, that would be great. I think I'm misunderstanding how scheduling works in Bevy.
https://play.rust-lang.org/?version=nightly&edition=2021&gist=7bcf4f6bcb9931a4ea17eb42791e2e19
A browser interface to the Rust compiler to experiment with the language