remove unneeded msaa explicit addition from examples (#4830)

# Objective

- Coming from 7a596f1910 (r876310734)
- Simplify the examples regarding addition of `Msaa` Resource with default value.

## Solution

- Remove addition of `Msaa` Resource with default value from examples,
This commit is contained in:
Thierry Berger 2022-05-27 20:52:12 +00:00
parent c89af06c65
commit 99e689cfd2
15 changed files with 2 additions and 17 deletions

View File

@ -4,7 +4,6 @@ use bevy::prelude::*;
fn main() {
App::new()
.insert_resource(Msaa { samples: 4 })
.add_plugins(DefaultPlugins)
.add_startup_system(setup)
.run();

View File

@ -4,7 +4,6 @@ use bevy::prelude::*;
fn main() {
App::new()
.insert_resource(Msaa { samples: 4 })
.add_plugins(DefaultPlugins)
.add_startup_system(setup)
.run();

View File

@ -5,7 +5,6 @@ use bevy::prelude::*;
fn main() {
App::new()
.insert_resource(Msaa { samples: 4 })
.add_plugins(DefaultPlugins)
.add_startup_system(setup)
.add_system(rotator_system)

View File

@ -26,8 +26,7 @@ pub const FIRST_PASS_DRIVER: &str = "first_pass_driver";
fn main() {
let mut app = App::new();
app.insert_resource(Msaa { samples: 4 }) // Use 4x MSAA
.add_plugins(DefaultPlugins)
app.add_plugins(DefaultPlugins)
.add_plugin(CameraTypePlugin::<FirstPassCamera>::default())
.add_startup_system(setup)
.add_system(cube_rotator_system)

View File

@ -8,7 +8,6 @@ use bevy::{
fn main() {
App::new()
.insert_resource(Msaa { samples: 4 })
.add_plugins(DefaultPlugins)
.add_startup_system(setup)
.add_system(rotate)

View File

@ -24,8 +24,7 @@ struct FirstPassCamera;
fn main() {
let mut app = App::new();
app.insert_resource(Msaa { samples: 4 })
.add_plugins(DefaultPlugins)
app.add_plugins(DefaultPlugins)
.add_plugin(CameraTypePlugin::<FirstPassCamera>::default())
.add_startup_system(setup)
.add_system(cube_rotator_system)

View File

@ -5,7 +5,6 @@ use bevy::{prelude::*, scene::InstanceId};
fn main() {
App::new()
.insert_resource(Msaa { samples: 4 })
.add_plugins(DefaultPlugins)
.init_resource::<SceneInstance>()
.add_startup_system(setup)

View File

@ -4,7 +4,6 @@ use bevy::{prelude::*, render::mesh::VertexAttributeValues};
fn main() {
App::new()
.insert_resource(Msaa { samples: 4 })
.add_plugins(DefaultPlugins)
.add_startup_system(setup)
.run();

View File

@ -8,7 +8,6 @@ use bevy::{
fn main() {
App::new()
.insert_resource(Msaa { samples: 4 })
.insert_resource(WgpuSettings {
features: WgpuFeatures::POLYGON_MODE_LINE,
..default()

View File

@ -4,7 +4,6 @@ use bevy::prelude::*;
#[bevy_main]
fn main() {
App::new()
.insert_resource(Msaa { samples: 2 })
.add_plugins(DefaultPlugins)
.add_startup_system(setup)
.run();

View File

@ -4,7 +4,6 @@ use bevy::prelude::*;
fn main() {
App::new()
.insert_resource(Msaa { samples: 4 })
.add_plugins(DefaultPlugins)
.add_startup_system(setup)
.run();

View File

@ -11,7 +11,6 @@ use std::time::{Duration, Instant};
fn main() {
App::new()
.insert_resource(Msaa { samples: 4 })
.add_plugins(DefaultPlugins)
.add_startup_system(setup_env)
.add_startup_system(add_assets)

View File

@ -10,7 +10,6 @@ const DELTA_TIME: f64 = 0.01;
fn main() {
App::new()
.insert_resource(Msaa { samples: 4 })
.add_plugins(DefaultPlugins)
.insert_resource(AmbientLight {
brightness: 0.03,

View File

@ -11,7 +11,6 @@ enum GameState {
fn main() {
App::new()
.insert_resource(Msaa { samples: 4 })
.init_resource::<Game>()
.add_plugins(DefaultPlugins)
.add_state(GameState::Playing)

View File

@ -9,7 +9,6 @@ fn main() {
mode: WindowMode::BorderlessFullscreen,
..default()
})
.insert_resource(Msaa { samples: 4 })
.add_plugins(DefaultPlugins)
.add_startup_system(setup_scene)
.add_startup_system(setup_music)