mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
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 disabledf0ff7fb544/crates/bevy_pbr/src/ssao/mod.rs (L495)
- `AlphaMode::AlphaToCoverage` needs MSAA to be not off to do somethingf0ff7fb544/examples/3d/transparency_3d.rs (L113-L117)
# Solution - change MSAA in those examples
This commit is contained in:
parent
abceebebba
commit
8dc6ccfbe7
2 changed files with 1 additions and 1 deletions
|
@ -35,6 +35,7 @@ fn setup(
|
|||
..default()
|
||||
},
|
||||
transform: Transform::from_xyz(-2.0, 2.0, -2.0).looking_at(Vec3::ZERO, Vec3::Y),
|
||||
msaa: Msaa::Off,
|
||||
..default()
|
||||
})
|
||||
.insert(ScreenSpaceAmbientOcclusionBundle::default())
|
||||
|
|
|
@ -99,7 +99,6 @@ fn setup(
|
|||
// Camera
|
||||
commands.spawn(Camera3dBundle {
|
||||
transform: Transform::from_xyz(-2.0, 3.0, 5.0).looking_at(Vec3::ZERO, Vec3::Y),
|
||||
msaa: Msaa::Off,
|
||||
..default()
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue