Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bevyengine
GitHub Repository: bevyengine/bevy
Path: blob/main/crates/bevy_post_process/src/lib.rs
6595 views
1
#![expect(missing_docs, reason = "Not all docs are written yet, see #3492.")]
2
#![forbid(unsafe_code)]
3
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
4
#![doc(
5
html_logo_url = "https://bevy.org/assets/icon.png",
6
html_favicon_url = "https://bevy.org/assets/icon.png"
7
)]
8
9
pub mod auto_exposure;
10
pub mod bloom;
11
pub mod dof;
12
pub mod effect_stack;
13
pub mod motion_blur;
14
pub mod msaa_writeback;
15
16
use crate::{
17
bloom::BloomPlugin, dof::DepthOfFieldPlugin, effect_stack::EffectStackPlugin,
18
motion_blur::MotionBlurPlugin, msaa_writeback::MsaaWritebackPlugin,
19
};
20
use bevy_app::{App, Plugin};
21
22
/// Adds bloom, motion blur, depth of field, and chromatic aberration support.
23
#[derive(Default)]
24
pub struct PostProcessPlugin;
25
26
impl Plugin for PostProcessPlugin {
27
fn build(&self, app: &mut App) {
28
app.add_plugins((
29
MsaaWritebackPlugin,
30
BloomPlugin,
31
MotionBlurPlugin,
32
DepthOfFieldPlugin,
33
EffectStackPlugin,
34
));
35
}
36
}
37
38