Skip to content

Commit 52e6ee3

Browse files
committed
rename to EffectStack and merge migration guide + add anti_alias bit
1 parent 95f8215 commit 52e6ee3

File tree

7 files changed

+15
-17
lines changed

7 files changed

+15
-17
lines changed

crates/bevy_post_process/src/post_process/mod.rs renamed to crates/bevy_post_process/src/effect_stack/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ struct DefaultChromaticAberrationLut(Handle<Image>);
7171
/// effects.
7272
///
7373
/// Currently, this only consists of chromatic aberration.
74-
pub struct PostProcessingPlugin;
74+
pub struct EffectStackPlugin;
7575

7676
/// Adds colored fringes to the edges of objects in the scene.
7777
///
@@ -183,7 +183,7 @@ pub struct PostProcessingUniformBufferOffsets {
183183
#[derive(Default)]
184184
pub struct PostProcessingNode;
185185

186-
impl Plugin for PostProcessingPlugin {
186+
impl Plugin for EffectStackPlugin {
187187
fn build(&self, app: &mut App) {
188188
load_shader_library!(app, "chromatic_aberration.wgsl");
189189

crates/bevy_post_process/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
pub mod auto_exposure;
1010
pub mod bloom;
1111
pub mod dof;
12+
pub mod effect_stack;
1213
pub mod motion_blur;
1314
pub mod msaa_writeback;
14-
pub mod post_process;
1515

1616
use crate::{
17-
bloom::BloomPlugin, dof::DepthOfFieldPlugin, motion_blur::MotionBlurPlugin,
18-
msaa_writeback::MsaaWritebackPlugin, post_process::PostProcessingPlugin,
17+
bloom::BloomPlugin, dof::DepthOfFieldPlugin, effect_stack::EffectStackPlugin,
18+
motion_blur::MotionBlurPlugin, msaa_writeback::MsaaWritebackPlugin,
1919
};
2020
use bevy_app::{App, Plugin};
2121

@@ -29,7 +29,7 @@ impl Plugin for PostProcessPlugin {
2929
BloomPlugin,
3030
MotionBlurPlugin,
3131
DepthOfFieldPlugin,
32-
PostProcessingPlugin,
32+
EffectStackPlugin,
3333
));
3434
}
3535
}

examples/3d/post_processing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use std::f32::consts::PI;
66

77
use bevy::{
8-
light::CascadeShadowConfigBuilder, post_process::post_process::ChromaticAberration, prelude::*,
8+
light::CascadeShadowConfigBuilder, post_process::effect_stack::ChromaticAberration, prelude::*,
99
render::view::Hdr,
1010
};
1111

release-content/migration-guides/bevy_post_process.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

release-content/migration-guides/bevy_render_reorganization.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "`bevy_render` reorganization"
3-
pull_requests: [20485, 20330, 18703, 20587, 20502, 19997, 19991, 20000, 19949, 19943, 19953, 20498, 20496, 20493, 20492, 20491, 20488, 20487, 20486, 20483, 20480, 20479, 20478, 20477, 20473, 20472, 20471, 20470, 20392, 20390, 20388, 20345, 20344, 20051, 19985, 19973, 19965, 19963, 19962, 19960, 19959, 19958, 19957, 19956, 19955, 19954, 16620, 16619, 15700, 15666, 15650]
3+
pull_requests: [20485, 20330, 18703, 20587, 20502, 19997, 19991, 20000, 19949, 19943, 19953, 20498, 20496, 20493, 20492, 20491, 20488, 20487, 20486, 20483, 20480, 20479, 20478, 20477, 20473, 20472, 20471, 20470, 20392, 20390, 20388, 20345, 20344, 20051, 19985, 19973, 19965, 19963, 19962, 19960, 19959, 19958, 19957, 19956, 19955, 19954, 16620, 16619, 15700, 15666, 15650, 20778, 20857, 18323]
44
---
55

66
You must now import `bevy_render::NormalizedRenderTargetExt` to use methods on `NormalizedRenderTarget`
@@ -32,3 +32,10 @@ Import them directly or from `bevy::sprite_render` now.
3232

3333
`RenderAssetUsages` is no longer re-exported by `bevy_render`.
3434
Import it from `bevy_asset` or `bevy::asset` instead.
35+
36+
`bevy_core_pipeline` used to be home to many non-core things, including post process effects.
37+
They have now been given a new home in `bevy_anti_alias` and `bevy_post_process`.
38+
39+
If you were importing FxaaPlugin, SmaaPlugin, TemporalAntiAliasPlugin, or CasPlugin from `bevy_core_pipeline` or `bevy::core_pipeline`, you must now import them from `bevy_anti_alias` or `bevy::anti_alias`.
40+
41+
If you were importing Bloom, AutoExposure, ChromaticAberration, DepthOfField, or MotionBlur from `bevy_core_pipeline` or `bevy::core_pipeline`, you must now import them from `bevy_post_process` or `bevy::post_process`.

0 commit comments

Comments
 (0)