enable FXAA anti aliasing
This commit is contained in:
parent
b69f5945af
commit
5d664bf2c7
|
@ -68,6 +68,8 @@ impl Plugin for CameraPlugin {
|
||||||
app.add_systems(PreUpdate, apply_input_to_player.run_if(game_running));
|
app.add_systems(PreUpdate, apply_input_to_player.run_if(game_running));
|
||||||
app.insert_resource(MapCam::default());
|
app.insert_resource(MapCam::default());
|
||||||
|
|
||||||
|
app.insert_resource(Msaa::Off);
|
||||||
|
|
||||||
// To center the renderer origin on the player camera,
|
// To center the renderer origin on the player camera,
|
||||||
// 1. Disable bevy_xpbd's position->transform sync function
|
// 1. Disable bevy_xpbd's position->transform sync function
|
||||||
app.insert_resource(sync::SyncConfig {
|
app.insert_resource(sync::SyncConfig {
|
||||||
|
@ -132,6 +134,16 @@ pub fn setup_camera(mut commands: Commands, settings: Res<var::Settings>) {
|
||||||
transform: Transform::from_xyz(0.0, 0.0, 8.0).looking_at(Vec3::ZERO, Vec3::Y),
|
transform: Transform::from_xyz(0.0, 0.0, 8.0).looking_at(Vec3::ZERO, Vec3::Y),
|
||||||
..default()
|
..default()
|
||||||
},
|
},
|
||||||
|
bevy::core_pipeline::fxaa::Fxaa {
|
||||||
|
edge_threshold: bevy::core_pipeline::fxaa::Sensitivity::Extreme,
|
||||||
|
..default()
|
||||||
|
},
|
||||||
|
//bevy::core_pipeline::smaa::SmaaSettings::default(),
|
||||||
|
// bevy::core_pipeline::experimental::taa::TemporalAntiAliasBundle::default(),
|
||||||
|
// bevy::core_pipeline::contrast_adaptive_sharpening::ContrastAdaptiveSharpeningSettings {
|
||||||
|
// enabled: true,
|
||||||
|
// ..default()
|
||||||
|
// },
|
||||||
BloomSettings {
|
BloomSettings {
|
||||||
composite_mode: BloomCompositeMode::EnergyConserving,
|
composite_mode: BloomCompositeMode::EnergyConserving,
|
||||||
..default()
|
..default()
|
||||||
|
|
Loading…
Reference in a new issue