Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bevyengine
GitHub Repository: bevyengine/bevy
Path: blob/main/crates/bevy_post_process/src/lib.rs
9328 views
1
#![expect(missing_docs, reason = "Not all docs are written yet, see #3492.")]
2
#![forbid(unsafe_code)]
3
#![cfg_attr(docsrs, feature(doc_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
use bevy_shader::load_shader_library;
22
23
/// Adds bloom, motion blur, depth of field, and chromatic aberration support.
24
#[derive(Default)]
25
pub struct PostProcessPlugin;
26
27
impl Plugin for PostProcessPlugin {
28
fn build(&self, app: &mut App) {
29
load_shader_library!(app, "gaussian_blur.wgsl");
30
31
app.add_plugins((
32
MsaaWritebackPlugin,
33
BloomPlugin,
34
MotionBlurPlugin,
35
DepthOfFieldPlugin,
36
EffectStackPlugin,
37
));
38
}
39
}
40
41