Skip to content

Commit 8dc6ccf

Browse files
authored
fix examples after the switch for msaa to a component (#14446)
# Objective - #14273 changed MSAA to a component, and broke some examples - SSAO needs MSAA to be disabled https://github.com/bevyengine/bevy/blob/f0ff7fb5445996e561d9ea336ee353544d79fef6/crates/bevy_pbr/src/ssao/mod.rs#L495 - `AlphaMode::AlphaToCoverage` needs MSAA to be not off to do something https://github.com/bevyengine/bevy/blob/f0ff7fb5445996e561d9ea336ee353544d79fef6/examples/3d/transparency_3d.rs#L113-L117 # Solution - change MSAA in those examples
1 parent abceebe commit 8dc6ccf

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

examples/3d/ssao.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ fn setup(
3535
..default()
3636
},
3737
transform: Transform::from_xyz(-2.0, 2.0, -2.0).looking_at(Vec3::ZERO, Vec3::Y),
38+
msaa: Msaa::Off,
3839
..default()
3940
})
4041
.insert(ScreenSpaceAmbientOcclusionBundle::default())

examples/3d/transparency_3d.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ fn setup(
9999
// Camera
100100
commands.spawn(Camera3dBundle {
101101
transform: Transform::from_xyz(-2.0, 3.0, 5.0).looking_at(Vec3::ZERO, Vec3::Y),
102-
msaa: Msaa::Off,
103102
..default()
104103
});
105104
}

0 commit comments

Comments
 (0)