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:
parent
c89af06c65
commit
99e689cfd2
@ -4,7 +4,6 @@ use bevy::prelude::*;
|
||||
|
||||
fn main() {
|
||||
App::new()
|
||||
.insert_resource(Msaa { samples: 4 })
|
||||
.add_plugins(DefaultPlugins)
|
||||
.add_startup_system(setup)
|
||||
.run();
|
||||
|
@ -4,7 +4,6 @@ use bevy::prelude::*;
|
||||
|
||||
fn main() {
|
||||
App::new()
|
||||
.insert_resource(Msaa { samples: 4 })
|
||||
.add_plugins(DefaultPlugins)
|
||||
.add_startup_system(setup)
|
||||
.run();
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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();
|
||||
|
@ -8,7 +8,6 @@ use bevy::{
|
||||
|
||||
fn main() {
|
||||
App::new()
|
||||
.insert_resource(Msaa { samples: 4 })
|
||||
.insert_resource(WgpuSettings {
|
||||
features: WgpuFeatures::POLYGON_MODE_LINE,
|
||||
..default()
|
||||
|
@ -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();
|
||||
|
@ -4,7 +4,6 @@ use bevy::prelude::*;
|
||||
|
||||
fn main() {
|
||||
App::new()
|
||||
.insert_resource(Msaa { samples: 4 })
|
||||
.add_plugins(DefaultPlugins)
|
||||
.add_startup_system(setup)
|
||||
.run();
|
||||
|
@ -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)
|
||||
|
@ -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,
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user