Skip to content

Commit ce2bf99

Browse files
authored
Fix flickering when combining CAS with SMAA (#24066)
Fix #24055.
1 parent 4898189 commit ce2bf99

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

  • crates/bevy_anti_alias/src/contrast_adaptive_sharpening

crates/bevy_anti_alias/src/contrast_adaptive_sharpening/mod.rs

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::fxaa::fxaa;
1+
use crate::{fxaa::fxaa, smaa::smaa};
22
use bevy_app::prelude::*;
33
use bevy_asset::{embedded_asset, load_embedded_asset, AssetServer};
44
use bevy_camera::Camera;
@@ -117,8 +117,18 @@ impl Plugin for CasPlugin {
117117
render_app
118118
.add_systems(RenderStartup, init_cas_pipeline)
119119
.add_systems(Render, prepare_cas_pipelines.in_set(RenderSystems::Prepare))
120-
.add_systems(Core3d, cas.after(fxaa).in_set(Core3dSystems::PostProcess))
121-
.add_systems(Core2d, cas.after(fxaa).in_set(Core2dSystems::PostProcess));
120+
.add_systems(
121+
Core3d,
122+
cas.after(fxaa)
123+
.after(smaa)
124+
.in_set(Core3dSystems::PostProcess),
125+
)
126+
.add_systems(
127+
Core2d,
128+
cas.after(fxaa)
129+
.after(smaa)
130+
.in_set(Core2dSystems::PostProcess),
131+
);
122132
}
123133
}
124134

0 commit comments

Comments
 (0)