Add bevy_anti_aliasing (#18323)
# Objective - bevy_core_pipeline is getting really big and it's a big bottleneck for compilation time. A lot of parts of it can be broken up ## Solution - Add a new bevy_anti_aliasing crate that contains all the anti_aliasing implementations - I didn't move any MSAA related code to this new crate because that's a lot more invasive ## Testing - Tested the anti_aliasing example to make sure all methods still worked --- ## Showcase before:  after:  Notice that now bevy_core_pipeline is 1s shorter and bevy_anti_aliasing now compiles in parallel with bevy_pbr. ## Migration Guide When using anti aliasing features, you now need to import them from `bevy::anti_aliasing` instead of `bevy::core_pipeline`
This commit is contained in:
parent
f353cc3340
commit
06bae05ba2
11
Cargo.toml
11
Cargo.toml
@ -133,6 +133,7 @@ default = [
|
|||||||
"bevy_audio",
|
"bevy_audio",
|
||||||
"bevy_color",
|
"bevy_color",
|
||||||
"bevy_core_pipeline",
|
"bevy_core_pipeline",
|
||||||
|
"bevy_anti_aliasing",
|
||||||
"bevy_gilrs",
|
"bevy_gilrs",
|
||||||
"bevy_gizmos",
|
"bevy_gizmos",
|
||||||
"bevy_gltf",
|
"bevy_gltf",
|
||||||
@ -213,6 +214,13 @@ bevy_core_pipeline = [
|
|||||||
"bevy_render",
|
"bevy_render",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# Provides various anti aliasing solutions
|
||||||
|
bevy_anti_aliasing = [
|
||||||
|
"bevy_internal/bevy_anti_aliasing",
|
||||||
|
"bevy_asset",
|
||||||
|
"bevy_render",
|
||||||
|
]
|
||||||
|
|
||||||
# Adds gamepad support
|
# Adds gamepad support
|
||||||
bevy_gilrs = ["bevy_internal/bevy_gilrs"]
|
bevy_gilrs = ["bevy_internal/bevy_gilrs"]
|
||||||
|
|
||||||
@ -225,6 +233,7 @@ bevy_pbr = [
|
|||||||
"bevy_asset",
|
"bevy_asset",
|
||||||
"bevy_render",
|
"bevy_render",
|
||||||
"bevy_core_pipeline",
|
"bevy_core_pipeline",
|
||||||
|
"bevy_anti_aliasing",
|
||||||
]
|
]
|
||||||
|
|
||||||
# Provides picking functionality
|
# Provides picking functionality
|
||||||
@ -242,6 +251,7 @@ bevy_sprite = [
|
|||||||
"bevy_render",
|
"bevy_render",
|
||||||
"bevy_core_pipeline",
|
"bevy_core_pipeline",
|
||||||
"bevy_color",
|
"bevy_color",
|
||||||
|
"bevy_anti_aliasing",
|
||||||
]
|
]
|
||||||
|
|
||||||
# Provides text functionality
|
# Provides text functionality
|
||||||
@ -254,6 +264,7 @@ bevy_ui = [
|
|||||||
"bevy_text",
|
"bevy_text",
|
||||||
"bevy_sprite",
|
"bevy_sprite",
|
||||||
"bevy_color",
|
"bevy_color",
|
||||||
|
"bevy_anti_aliasing",
|
||||||
]
|
]
|
||||||
|
|
||||||
# Windowing layer
|
# Windowing layer
|
||||||
|
40
crates/bevy_anti_aliasing/Cargo.toml
Normal file
40
crates/bevy_anti_aliasing/Cargo.toml
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
[package]
|
||||||
|
name = "bevy_anti_aliasing"
|
||||||
|
version = "0.16.0-dev"
|
||||||
|
edition = "2024"
|
||||||
|
description = "Provides various anti aliasing implementations for Bevy Engine"
|
||||||
|
homepage = "https://bevyengine.org"
|
||||||
|
repository = "https://github.com/bevyengine/bevy"
|
||||||
|
license = "MIT OR Apache-2.0"
|
||||||
|
keywords = ["bevy"]
|
||||||
|
|
||||||
|
[features]
|
||||||
|
trace = []
|
||||||
|
webgl = []
|
||||||
|
webgpu = []
|
||||||
|
dds = ["bevy_render/dds", "bevy_image/dds"]
|
||||||
|
smaa_luts = ["bevy_render/ktx2", "bevy_image/ktx2", "bevy_image/zstd"]
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
# bevy
|
||||||
|
bevy_asset = { path = "../bevy_asset", version = "0.16.0-dev" }
|
||||||
|
bevy_reflect = { path = "../bevy_reflect", version = "0.16.0-dev" }
|
||||||
|
bevy_render = { path = "../bevy_render", version = "0.16.0-dev" }
|
||||||
|
bevy_math = { path = "../bevy_math", version = "0.16.0-dev" }
|
||||||
|
bevy_utils = { path = "../bevy_utils", version = "0.16.0-dev" }
|
||||||
|
bevy_app = { path = "../bevy_app", version = "0.16.0-dev" }
|
||||||
|
bevy_image = { path = "../bevy_image", version = "0.16.0-dev" }
|
||||||
|
bevy_derive = { path = "../bevy_derive", version = "0.16.0-dev" }
|
||||||
|
bevy_ecs = { path = "../bevy_ecs", version = "0.16.0-dev" }
|
||||||
|
bevy_core_pipeline = { path = "../bevy_core_pipeline", version = "0.16.0-dev" }
|
||||||
|
bevy_diagnostic = { path = "../bevy_diagnostic", version = "0.16.0-dev" }
|
||||||
|
|
||||||
|
# other
|
||||||
|
tracing = { version = "0.1", default-features = false, features = ["std"] }
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|
||||||
|
[package.metadata.docs.rs]
|
||||||
|
rustdoc-args = ["-Zunstable-options", "--generate-link-to-definition"]
|
||||||
|
all-features = true
|
176
crates/bevy_anti_aliasing/LICENSE-APACHE
Normal file
176
crates/bevy_anti_aliasing/LICENSE-APACHE
Normal file
@ -0,0 +1,176 @@
|
|||||||
|
Apache License
|
||||||
|
Version 2.0, January 2004
|
||||||
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
|
1. Definitions.
|
||||||
|
|
||||||
|
"License" shall mean the terms and conditions for use, reproduction,
|
||||||
|
and distribution as defined by Sections 1 through 9 of this document.
|
||||||
|
|
||||||
|
"Licensor" shall mean the copyright owner or entity authorized by
|
||||||
|
the copyright owner that is granting the License.
|
||||||
|
|
||||||
|
"Legal Entity" shall mean the union of the acting entity and all
|
||||||
|
other entities that control, are controlled by, or are under common
|
||||||
|
control with that entity. For the purposes of this definition,
|
||||||
|
"control" means (i) the power, direct or indirect, to cause the
|
||||||
|
direction or management of such entity, whether by contract or
|
||||||
|
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||||
|
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||||
|
|
||||||
|
"You" (or "Your") shall mean an individual or Legal Entity
|
||||||
|
exercising permissions granted by this License.
|
||||||
|
|
||||||
|
"Source" form shall mean the preferred form for making modifications,
|
||||||
|
including but not limited to software source code, documentation
|
||||||
|
source, and configuration files.
|
||||||
|
|
||||||
|
"Object" form shall mean any form resulting from mechanical
|
||||||
|
transformation or translation of a Source form, including but
|
||||||
|
not limited to compiled object code, generated documentation,
|
||||||
|
and conversions to other media types.
|
||||||
|
|
||||||
|
"Work" shall mean the work of authorship, whether in Source or
|
||||||
|
Object form, made available under the License, as indicated by a
|
||||||
|
copyright notice that is included in or attached to the work
|
||||||
|
(an example is provided in the Appendix below).
|
||||||
|
|
||||||
|
"Derivative Works" shall mean any work, whether in Source or Object
|
||||||
|
form, that is based on (or derived from) the Work and for which the
|
||||||
|
editorial revisions, annotations, elaborations, or other modifications
|
||||||
|
represent, as a whole, an original work of authorship. For the purposes
|
||||||
|
of this License, Derivative Works shall not include works that remain
|
||||||
|
separable from, or merely link (or bind by name) to the interfaces of,
|
||||||
|
the Work and Derivative Works thereof.
|
||||||
|
|
||||||
|
"Contribution" shall mean any work of authorship, including
|
||||||
|
the original version of the Work and any modifications or additions
|
||||||
|
to that Work or Derivative Works thereof, that is intentionally
|
||||||
|
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||||
|
or by an individual or Legal Entity authorized to submit on behalf of
|
||||||
|
the copyright owner. For the purposes of this definition, "submitted"
|
||||||
|
means any form of electronic, verbal, or written communication sent
|
||||||
|
to the Licensor or its representatives, including but not limited to
|
||||||
|
communication on electronic mailing lists, source code control systems,
|
||||||
|
and issue tracking systems that are managed by, or on behalf of, the
|
||||||
|
Licensor for the purpose of discussing and improving the Work, but
|
||||||
|
excluding communication that is conspicuously marked or otherwise
|
||||||
|
designated in writing by the copyright owner as "Not a Contribution."
|
||||||
|
|
||||||
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||||
|
on behalf of whom a Contribution has been received by Licensor and
|
||||||
|
subsequently incorporated within the Work.
|
||||||
|
|
||||||
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
copyright license to reproduce, prepare Derivative Works of,
|
||||||
|
publicly display, publicly perform, sublicense, and distribute the
|
||||||
|
Work and such Derivative Works in Source or Object form.
|
||||||
|
|
||||||
|
3. Grant of Patent License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
(except as stated in this section) patent license to make, have made,
|
||||||
|
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||||
|
where such license applies only to those patent claims licensable
|
||||||
|
by such Contributor that are necessarily infringed by their
|
||||||
|
Contribution(s) alone or by combination of their Contribution(s)
|
||||||
|
with the Work to which such Contribution(s) was submitted. If You
|
||||||
|
institute patent litigation against any entity (including a
|
||||||
|
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||||
|
or a Contribution incorporated within the Work constitutes direct
|
||||||
|
or contributory patent infringement, then any patent licenses
|
||||||
|
granted to You under this License for that Work shall terminate
|
||||||
|
as of the date such litigation is filed.
|
||||||
|
|
||||||
|
4. Redistribution. You may reproduce and distribute copies of the
|
||||||
|
Work or Derivative Works thereof in any medium, with or without
|
||||||
|
modifications, and in Source or Object form, provided that You
|
||||||
|
meet the following conditions:
|
||||||
|
|
||||||
|
(a) You must give any other recipients of the Work or
|
||||||
|
Derivative Works a copy of this License; and
|
||||||
|
|
||||||
|
(b) You must cause any modified files to carry prominent notices
|
||||||
|
stating that You changed the files; and
|
||||||
|
|
||||||
|
(c) You must retain, in the Source form of any Derivative Works
|
||||||
|
that You distribute, all copyright, patent, trademark, and
|
||||||
|
attribution notices from the Source form of the Work,
|
||||||
|
excluding those notices that do not pertain to any part of
|
||||||
|
the Derivative Works; and
|
||||||
|
|
||||||
|
(d) If the Work includes a "NOTICE" text file as part of its
|
||||||
|
distribution, then any Derivative Works that You distribute must
|
||||||
|
include a readable copy of the attribution notices contained
|
||||||
|
within such NOTICE file, excluding those notices that do not
|
||||||
|
pertain to any part of the Derivative Works, in at least one
|
||||||
|
of the following places: within a NOTICE text file distributed
|
||||||
|
as part of the Derivative Works; within the Source form or
|
||||||
|
documentation, if provided along with the Derivative Works; or,
|
||||||
|
within a display generated by the Derivative Works, if and
|
||||||
|
wherever such third-party notices normally appear. The contents
|
||||||
|
of the NOTICE file are for informational purposes only and
|
||||||
|
do not modify the License. You may add Your own attribution
|
||||||
|
notices within Derivative Works that You distribute, alongside
|
||||||
|
or as an addendum to the NOTICE text from the Work, provided
|
||||||
|
that such additional attribution notices cannot be construed
|
||||||
|
as modifying the License.
|
||||||
|
|
||||||
|
You may add Your own copyright statement to Your modifications and
|
||||||
|
may provide additional or different license terms and conditions
|
||||||
|
for use, reproduction, or distribution of Your modifications, or
|
||||||
|
for any such Derivative Works as a whole, provided Your use,
|
||||||
|
reproduction, and distribution of the Work otherwise complies with
|
||||||
|
the conditions stated in this License.
|
||||||
|
|
||||||
|
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||||
|
any Contribution intentionally submitted for inclusion in the Work
|
||||||
|
by You to the Licensor shall be under the terms and conditions of
|
||||||
|
this License, without any additional terms or conditions.
|
||||||
|
Notwithstanding the above, nothing herein shall supersede or modify
|
||||||
|
the terms of any separate license agreement you may have executed
|
||||||
|
with Licensor regarding such Contributions.
|
||||||
|
|
||||||
|
6. Trademarks. This License does not grant permission to use the trade
|
||||||
|
names, trademarks, service marks, or product names of the Licensor,
|
||||||
|
except as required for reasonable and customary use in describing the
|
||||||
|
origin of the Work and reproducing the content of the NOTICE file.
|
||||||
|
|
||||||
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||||
|
agreed to in writing, Licensor provides the Work (and each
|
||||||
|
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||||
|
implied, including, without limitation, any warranties or conditions
|
||||||
|
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||||
|
appropriateness of using or redistributing the Work and assume any
|
||||||
|
risks associated with Your exercise of permissions under this License.
|
||||||
|
|
||||||
|
8. Limitation of Liability. In no event and under no legal theory,
|
||||||
|
whether in tort (including negligence), contract, or otherwise,
|
||||||
|
unless required by applicable law (such as deliberate and grossly
|
||||||
|
negligent acts) or agreed to in writing, shall any Contributor be
|
||||||
|
liable to You for damages, including any direct, indirect, special,
|
||||||
|
incidental, or consequential damages of any character arising as a
|
||||||
|
result of this License or out of the use or inability to use the
|
||||||
|
Work (including but not limited to damages for loss of goodwill,
|
||||||
|
work stoppage, computer failure or malfunction, or any and all
|
||||||
|
other commercial damages or losses), even if such Contributor
|
||||||
|
has been advised of the possibility of such damages.
|
||||||
|
|
||||||
|
9. Accepting Warranty or Additional Liability. While redistributing
|
||||||
|
the Work or Derivative Works thereof, You may choose to offer,
|
||||||
|
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||||
|
or other liability obligations and/or rights consistent with this
|
||||||
|
License. However, in accepting such obligations, You may act only
|
||||||
|
on Your own behalf and on Your sole responsibility, not on behalf
|
||||||
|
of any other Contributor, and only if You agree to indemnify,
|
||||||
|
defend, and hold each Contributor harmless for any liability
|
||||||
|
incurred by, or claims asserted against, such Contributor by reason
|
||||||
|
of your accepting any such warranty or additional liability.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
19
crates/bevy_anti_aliasing/LICENSE-MIT
Normal file
19
crates/bevy_anti_aliasing/LICENSE-MIT
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
7
crates/bevy_anti_aliasing/README.md
Normal file
7
crates/bevy_anti_aliasing/README.md
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# Bevy Anti Aliasing
|
||||||
|
|
||||||
|
[](https://github.com/bevyengine/bevy#license)
|
||||||
|
[](https://crates.io/crates/bevy_core_pipeline)
|
||||||
|
[](https://crates.io/crates/bevy_core_pipeline)
|
||||||
|
[](https://docs.rs/bevy_core_pipeline/latest/bevy_core_pipeline/)
|
||||||
|
[](https://discord.gg/bevy)
|
@ -1,10 +1,10 @@
|
|||||||
use crate::{
|
use bevy_app::prelude::*;
|
||||||
|
use bevy_asset::{load_internal_asset, weak_handle, Handle};
|
||||||
|
use bevy_core_pipeline::{
|
||||||
core_2d::graph::{Core2d, Node2d},
|
core_2d::graph::{Core2d, Node2d},
|
||||||
core_3d::graph::{Core3d, Node3d},
|
core_3d::graph::{Core3d, Node3d},
|
||||||
fullscreen_vertex_shader::fullscreen_shader_vertex_state,
|
fullscreen_vertex_shader::fullscreen_shader_vertex_state,
|
||||||
};
|
};
|
||||||
use bevy_app::prelude::*;
|
|
||||||
use bevy_asset::{load_internal_asset, weak_handle, Handle};
|
|
||||||
use bevy_ecs::{prelude::*, query::QueryItem};
|
use bevy_ecs::{prelude::*, query::QueryItem};
|
||||||
use bevy_image::BevyDefault as _;
|
use bevy_image::BevyDefault as _;
|
||||||
use bevy_reflect::{std_traits::ReflectDefault, Reflect};
|
use bevy_reflect::{std_traits::ReflectDefault, Reflect};
|
9
crates/bevy_anti_aliasing/src/experimental/mod.rs
Normal file
9
crates/bevy_anti_aliasing/src/experimental/mod.rs
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
//! Experimental rendering features.
|
||||||
|
//!
|
||||||
|
//! Experimental features are features with known problems, missing features,
|
||||||
|
//! compatibility issues, low performance, and/or future breaking changes, but
|
||||||
|
//! are included nonetheless for testing purposes.
|
||||||
|
|
||||||
|
pub mod taa {
|
||||||
|
pub use crate::taa::{TemporalAntiAliasNode, TemporalAntiAliasPlugin, TemporalAntiAliasing};
|
||||||
|
}
|
@ -1,10 +1,10 @@
|
|||||||
use crate::{
|
use bevy_app::prelude::*;
|
||||||
|
use bevy_asset::{load_internal_asset, weak_handle, Handle};
|
||||||
|
use bevy_core_pipeline::{
|
||||||
core_2d::graph::{Core2d, Node2d},
|
core_2d::graph::{Core2d, Node2d},
|
||||||
core_3d::graph::{Core3d, Node3d},
|
core_3d::graph::{Core3d, Node3d},
|
||||||
fullscreen_vertex_shader::fullscreen_shader_vertex_state,
|
fullscreen_vertex_shader::fullscreen_shader_vertex_state,
|
||||||
};
|
};
|
||||||
use bevy_app::prelude::*;
|
|
||||||
use bevy_asset::{load_internal_asset, weak_handle, Handle};
|
|
||||||
use bevy_ecs::prelude::*;
|
use bevy_ecs::prelude::*;
|
||||||
use bevy_image::BevyDefault as _;
|
use bevy_image::BevyDefault as _;
|
||||||
use bevy_reflect::{std_traits::ReflectDefault, Reflect};
|
use bevy_reflect::{std_traits::ReflectDefault, Reflect};
|
27
crates/bevy_anti_aliasing/src/lib.rs
Normal file
27
crates/bevy_anti_aliasing/src/lib.rs
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
#![expect(missing_docs, reason = "Not all docs are written yet, see #3492.")]
|
||||||
|
#![forbid(unsafe_code)]
|
||||||
|
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
|
||||||
|
#![doc(
|
||||||
|
html_logo_url = "https://bevyengine.org/assets/icon.png",
|
||||||
|
html_favicon_url = "https://bevyengine.org/assets/icon.png"
|
||||||
|
)]
|
||||||
|
|
||||||
|
use bevy_app::Plugin;
|
||||||
|
use contrast_adaptive_sharpening::CasPlugin;
|
||||||
|
use fxaa::FxaaPlugin;
|
||||||
|
use smaa::SmaaPlugin;
|
||||||
|
|
||||||
|
pub mod contrast_adaptive_sharpening;
|
||||||
|
pub mod experimental;
|
||||||
|
pub mod fxaa;
|
||||||
|
pub mod smaa;
|
||||||
|
|
||||||
|
mod taa;
|
||||||
|
|
||||||
|
#[derive(Default)]
|
||||||
|
pub struct AntiAliasingPlugin;
|
||||||
|
impl Plugin for AntiAliasingPlugin {
|
||||||
|
fn build(&self, app: &mut bevy_app::App) {
|
||||||
|
app.add_plugins((FxaaPlugin, CasPlugin, SmaaPlugin));
|
||||||
|
}
|
||||||
|
}
|
@ -29,16 +29,16 @@
|
|||||||
//! * Compatibility with SSAA and MSAA.
|
//! * Compatibility with SSAA and MSAA.
|
||||||
//!
|
//!
|
||||||
//! [SMAA]: https://www.iryoku.com/smaa/
|
//! [SMAA]: https://www.iryoku.com/smaa/
|
||||||
#[cfg(not(feature = "smaa_luts"))]
|
|
||||||
use crate::tonemapping::lut_placeholder;
|
|
||||||
use crate::{
|
|
||||||
core_2d::graph::{Core2d, Node2d},
|
|
||||||
core_3d::graph::{Core3d, Node3d},
|
|
||||||
};
|
|
||||||
use bevy_app::{App, Plugin};
|
use bevy_app::{App, Plugin};
|
||||||
#[cfg(feature = "smaa_luts")]
|
#[cfg(feature = "smaa_luts")]
|
||||||
use bevy_asset::load_internal_binary_asset;
|
use bevy_asset::load_internal_binary_asset;
|
||||||
use bevy_asset::{load_internal_asset, weak_handle, Handle};
|
use bevy_asset::{load_internal_asset, weak_handle, Handle};
|
||||||
|
#[cfg(not(feature = "smaa_luts"))]
|
||||||
|
use bevy_core_pipeline::tonemapping::lut_placeholder;
|
||||||
|
use bevy_core_pipeline::{
|
||||||
|
core_2d::graph::{Core2d, Node2d},
|
||||||
|
core_3d::graph::{Core3d, Node3d},
|
||||||
|
};
|
||||||
use bevy_derive::{Deref, DerefMut};
|
use bevy_derive::{Deref, DerefMut};
|
||||||
use bevy_ecs::{
|
use bevy_ecs::{
|
||||||
component::Component,
|
component::Component,
|
@ -1,11 +1,11 @@
|
|||||||
use crate::{
|
use bevy_app::{App, Plugin};
|
||||||
|
use bevy_asset::{load_internal_asset, weak_handle, Handle};
|
||||||
|
use bevy_core_pipeline::{
|
||||||
core_3d::graph::{Core3d, Node3d},
|
core_3d::graph::{Core3d, Node3d},
|
||||||
fullscreen_vertex_shader::fullscreen_shader_vertex_state,
|
fullscreen_vertex_shader::fullscreen_shader_vertex_state,
|
||||||
prelude::Camera3d,
|
prelude::Camera3d,
|
||||||
prepass::{DepthPrepass, MotionVectorPrepass, ViewPrepassTextures},
|
prepass::{DepthPrepass, MotionVectorPrepass, ViewPrepassTextures},
|
||||||
};
|
};
|
||||||
use bevy_app::{App, Plugin};
|
|
||||||
use bevy_asset::{load_internal_asset, weak_handle, Handle};
|
|
||||||
use bevy_diagnostic::FrameCount;
|
use bevy_diagnostic::FrameCount;
|
||||||
use bevy_ecs::{
|
use bevy_ecs::{
|
||||||
prelude::{Component, Entity, ReflectComponent},
|
prelude::{Component, Entity, ReflectComponent},
|
@ -18,7 +18,6 @@ trace = []
|
|||||||
webgl = []
|
webgl = []
|
||||||
webgpu = []
|
webgpu = []
|
||||||
tonemapping_luts = ["bevy_render/ktx2", "bevy_image/ktx2", "bevy_image/zstd"]
|
tonemapping_luts = ["bevy_render/ktx2", "bevy_image/ktx2", "bevy_image/zstd"]
|
||||||
smaa_luts = ["bevy_render/ktx2", "bevy_image/ktx2", "bevy_image/zstd"]
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
# bevy
|
# bevy
|
||||||
|
@ -56,7 +56,7 @@ pub struct Camera3d {
|
|||||||
///
|
///
|
||||||
/// Higher qualities are more GPU-intensive.
|
/// Higher qualities are more GPU-intensive.
|
||||||
///
|
///
|
||||||
/// **Note:** You can get better-looking results at any quality level by enabling TAA. See: [`TemporalAntiAliasPlugin`](crate::experimental::taa::TemporalAntiAliasPlugin).
|
/// **Note:** You can get better-looking results at any quality level by enabling TAA. See: `TemporalAntiAliasPlugin`
|
||||||
pub screen_space_specular_transmission_quality: ScreenSpaceTransmissionQuality,
|
pub screen_space_specular_transmission_quality: ScreenSpaceTransmissionQuality,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -117,7 +117,7 @@ impl From<Camera3dDepthLoadOp> for LoadOp<f32> {
|
|||||||
///
|
///
|
||||||
/// Higher qualities are more GPU-intensive.
|
/// Higher qualities are more GPU-intensive.
|
||||||
///
|
///
|
||||||
/// **Note:** You can get better-looking results at any quality level by enabling TAA. See: [`TemporalAntiAliasPlugin`](crate::experimental::taa::TemporalAntiAliasPlugin).
|
/// **Note:** You can get better-looking results at any quality level by enabling TAA. See: `TemporalAntiAliasPlugin`
|
||||||
#[derive(Resource, Default, Clone, Copy, Reflect, PartialEq, PartialOrd, Debug)]
|
#[derive(Resource, Default, Clone, Copy, Reflect, PartialEq, PartialOrd, Debug)]
|
||||||
#[reflect(Resource, Default, Clone, Debug, PartialEq)]
|
#[reflect(Resource, Default, Clone, Debug, PartialEq)]
|
||||||
pub enum ScreenSpaceTransmissionQuality {
|
pub enum ScreenSpaceTransmissionQuality {
|
||||||
|
@ -5,7 +5,3 @@
|
|||||||
//! are included nonetheless for testing purposes.
|
//! are included nonetheless for testing purposes.
|
||||||
|
|
||||||
pub mod mip_generation;
|
pub mod mip_generation;
|
||||||
|
|
||||||
pub mod taa {
|
|
||||||
pub use crate::taa::{TemporalAntiAliasNode, TemporalAntiAliasPlugin, TemporalAntiAliasing};
|
|
||||||
}
|
|
||||||
|
@ -9,22 +9,18 @@
|
|||||||
pub mod auto_exposure;
|
pub mod auto_exposure;
|
||||||
pub mod blit;
|
pub mod blit;
|
||||||
pub mod bloom;
|
pub mod bloom;
|
||||||
pub mod contrast_adaptive_sharpening;
|
|
||||||
pub mod core_2d;
|
pub mod core_2d;
|
||||||
pub mod core_3d;
|
pub mod core_3d;
|
||||||
pub mod deferred;
|
pub mod deferred;
|
||||||
pub mod dof;
|
pub mod dof;
|
||||||
pub mod experimental;
|
pub mod experimental;
|
||||||
pub mod fullscreen_vertex_shader;
|
pub mod fullscreen_vertex_shader;
|
||||||
pub mod fxaa;
|
|
||||||
pub mod motion_blur;
|
pub mod motion_blur;
|
||||||
pub mod msaa_writeback;
|
pub mod msaa_writeback;
|
||||||
pub mod oit;
|
pub mod oit;
|
||||||
pub mod post_process;
|
pub mod post_process;
|
||||||
pub mod prepass;
|
pub mod prepass;
|
||||||
mod skybox;
|
mod skybox;
|
||||||
pub mod smaa;
|
|
||||||
mod taa;
|
|
||||||
pub mod tonemapping;
|
pub mod tonemapping;
|
||||||
pub mod upscaling;
|
pub mod upscaling;
|
||||||
|
|
||||||
@ -41,19 +37,16 @@ pub mod prelude {
|
|||||||
use crate::{
|
use crate::{
|
||||||
blit::BlitPlugin,
|
blit::BlitPlugin,
|
||||||
bloom::BloomPlugin,
|
bloom::BloomPlugin,
|
||||||
contrast_adaptive_sharpening::CasPlugin,
|
|
||||||
core_2d::Core2dPlugin,
|
core_2d::Core2dPlugin,
|
||||||
core_3d::Core3dPlugin,
|
core_3d::Core3dPlugin,
|
||||||
deferred::copy_lighting_id::CopyDeferredLightingIdPlugin,
|
deferred::copy_lighting_id::CopyDeferredLightingIdPlugin,
|
||||||
dof::DepthOfFieldPlugin,
|
dof::DepthOfFieldPlugin,
|
||||||
experimental::mip_generation::MipGenerationPlugin,
|
experimental::mip_generation::MipGenerationPlugin,
|
||||||
fullscreen_vertex_shader::FULLSCREEN_SHADER_HANDLE,
|
fullscreen_vertex_shader::FULLSCREEN_SHADER_HANDLE,
|
||||||
fxaa::FxaaPlugin,
|
|
||||||
motion_blur::MotionBlurPlugin,
|
motion_blur::MotionBlurPlugin,
|
||||||
msaa_writeback::MsaaWritebackPlugin,
|
msaa_writeback::MsaaWritebackPlugin,
|
||||||
post_process::PostProcessingPlugin,
|
post_process::PostProcessingPlugin,
|
||||||
prepass::{DeferredPrepass, DepthPrepass, MotionVectorPrepass, NormalPrepass},
|
prepass::{DeferredPrepass, DepthPrepass, MotionVectorPrepass, NormalPrepass},
|
||||||
smaa::SmaaPlugin,
|
|
||||||
tonemapping::TonemappingPlugin,
|
tonemapping::TonemappingPlugin,
|
||||||
upscaling::UpscalingPlugin,
|
upscaling::UpscalingPlugin,
|
||||||
};
|
};
|
||||||
@ -85,11 +78,8 @@ impl Plugin for CorePipelinePlugin {
|
|||||||
TonemappingPlugin,
|
TonemappingPlugin,
|
||||||
UpscalingPlugin,
|
UpscalingPlugin,
|
||||||
BloomPlugin,
|
BloomPlugin,
|
||||||
FxaaPlugin,
|
|
||||||
CasPlugin,
|
|
||||||
MotionBlurPlugin,
|
MotionBlurPlugin,
|
||||||
DepthOfFieldPlugin,
|
DepthOfFieldPlugin,
|
||||||
SmaaPlugin,
|
|
||||||
PostProcessingPlugin,
|
PostProcessingPlugin,
|
||||||
OrderIndependentTransparencyPlugin,
|
OrderIndependentTransparencyPlugin,
|
||||||
MipGenerationPlugin,
|
MipGenerationPlugin,
|
||||||
|
@ -14,6 +14,7 @@ trace = [
|
|||||||
"bevy_app/trace",
|
"bevy_app/trace",
|
||||||
"bevy_asset?/trace",
|
"bevy_asset?/trace",
|
||||||
"bevy_core_pipeline?/trace",
|
"bevy_core_pipeline?/trace",
|
||||||
|
"bevy_anti_aliasing?/trace",
|
||||||
"bevy_ecs/trace",
|
"bevy_ecs/trace",
|
||||||
"bevy_log/trace",
|
"bevy_log/trace",
|
||||||
"bevy_pbr?/trace",
|
"bevy_pbr?/trace",
|
||||||
@ -33,6 +34,7 @@ dds = [
|
|||||||
"bevy_image/dds",
|
"bevy_image/dds",
|
||||||
"bevy_render/dds",
|
"bevy_render/dds",
|
||||||
"bevy_core_pipeline/dds",
|
"bevy_core_pipeline/dds",
|
||||||
|
"bevy_anti_aliasing/dds",
|
||||||
"bevy_gltf?/dds",
|
"bevy_gltf?/dds",
|
||||||
]
|
]
|
||||||
exr = ["bevy_image/exr", "bevy_render/exr"]
|
exr = ["bevy_image/exr", "bevy_render/exr"]
|
||||||
@ -67,7 +69,7 @@ statically-linked-dxc = ["bevy_render/statically-linked-dxc"]
|
|||||||
tonemapping_luts = ["bevy_core_pipeline/tonemapping_luts"]
|
tonemapping_luts = ["bevy_core_pipeline/tonemapping_luts"]
|
||||||
|
|
||||||
# Include SMAA LUT KTX2 Files
|
# Include SMAA LUT KTX2 Files
|
||||||
smaa_luts = ["bevy_core_pipeline/smaa_luts"]
|
smaa_luts = ["bevy_anti_aliasing/smaa_luts"]
|
||||||
|
|
||||||
# Audio format support (vorbis is enabled by default)
|
# Audio format support (vorbis is enabled by default)
|
||||||
flac = ["bevy_audio/flac"]
|
flac = ["bevy_audio/flac"]
|
||||||
@ -152,6 +154,7 @@ pbr_specular_textures = [
|
|||||||
# Optimise for WebGL2
|
# Optimise for WebGL2
|
||||||
webgl = [
|
webgl = [
|
||||||
"bevy_core_pipeline?/webgl",
|
"bevy_core_pipeline?/webgl",
|
||||||
|
"bevy_anti_aliasing?/webgl",
|
||||||
"bevy_pbr?/webgl",
|
"bevy_pbr?/webgl",
|
||||||
"bevy_render?/webgl",
|
"bevy_render?/webgl",
|
||||||
"bevy_gizmos?/webgl",
|
"bevy_gizmos?/webgl",
|
||||||
@ -160,6 +163,7 @@ webgl = [
|
|||||||
|
|
||||||
webgpu = [
|
webgpu = [
|
||||||
"bevy_core_pipeline?/webgpu",
|
"bevy_core_pipeline?/webgpu",
|
||||||
|
"bevy_anti_aliasing?/webgpu",
|
||||||
"bevy_pbr?/webgpu",
|
"bevy_pbr?/webgpu",
|
||||||
"bevy_render?/webgpu",
|
"bevy_render?/webgpu",
|
||||||
"bevy_gizmos?/webgpu",
|
"bevy_gizmos?/webgpu",
|
||||||
@ -176,6 +180,7 @@ bevy_sprite = ["dep:bevy_sprite", "bevy_gizmos?/bevy_sprite", "bevy_image"]
|
|||||||
bevy_pbr = ["dep:bevy_pbr", "bevy_gizmos?/bevy_pbr", "bevy_image"]
|
bevy_pbr = ["dep:bevy_pbr", "bevy_gizmos?/bevy_pbr", "bevy_image"]
|
||||||
bevy_window = ["dep:bevy_window", "dep:bevy_a11y"]
|
bevy_window = ["dep:bevy_window", "dep:bevy_a11y"]
|
||||||
bevy_core_pipeline = ["dep:bevy_core_pipeline", "bevy_image"]
|
bevy_core_pipeline = ["dep:bevy_core_pipeline", "bevy_image"]
|
||||||
|
bevy_anti_aliasing = ["dep:bevy_anti_aliasing", "bevy_image"]
|
||||||
bevy_gizmos = ["dep:bevy_gizmos", "bevy_image"]
|
bevy_gizmos = ["dep:bevy_gizmos", "bevy_image"]
|
||||||
bevy_gltf = ["dep:bevy_gltf", "bevy_image"]
|
bevy_gltf = ["dep:bevy_gltf", "bevy_image"]
|
||||||
bevy_ui = ["dep:bevy_ui", "bevy_image"]
|
bevy_ui = ["dep:bevy_ui", "bevy_image"]
|
||||||
@ -401,6 +406,7 @@ bevy_color = { path = "../bevy_color", optional = true, version = "0.16.0-dev",
|
|||||||
"bevy_reflect",
|
"bevy_reflect",
|
||||||
] }
|
] }
|
||||||
bevy_core_pipeline = { path = "../bevy_core_pipeline", optional = true, version = "0.16.0-dev" }
|
bevy_core_pipeline = { path = "../bevy_core_pipeline", optional = true, version = "0.16.0-dev" }
|
||||||
|
bevy_anti_aliasing = { path = "../bevy_anti_aliasing", optional = true, version = "0.16.0-dev" }
|
||||||
bevy_dev_tools = { path = "../bevy_dev_tools", optional = true, version = "0.16.0-dev" }
|
bevy_dev_tools = { path = "../bevy_dev_tools", optional = true, version = "0.16.0-dev" }
|
||||||
bevy_gilrs = { path = "../bevy_gilrs", optional = true, version = "0.16.0-dev" }
|
bevy_gilrs = { path = "../bevy_gilrs", optional = true, version = "0.16.0-dev" }
|
||||||
bevy_gizmos = { path = "../bevy_gizmos", optional = true, version = "0.16.0-dev", default-features = false }
|
bevy_gizmos = { path = "../bevy_gizmos", optional = true, version = "0.16.0-dev", default-features = false }
|
||||||
|
@ -40,6 +40,8 @@ plugin_group! {
|
|||||||
bevy_render::pipelined_rendering:::PipelinedRenderingPlugin,
|
bevy_render::pipelined_rendering:::PipelinedRenderingPlugin,
|
||||||
#[cfg(feature = "bevy_core_pipeline")]
|
#[cfg(feature = "bevy_core_pipeline")]
|
||||||
bevy_core_pipeline:::CorePipelinePlugin,
|
bevy_core_pipeline:::CorePipelinePlugin,
|
||||||
|
#[cfg(feature = "bevy_anti_aliasing")]
|
||||||
|
bevy_anti_aliasing:::AntiAliasingPlugin,
|
||||||
#[cfg(feature = "bevy_sprite")]
|
#[cfg(feature = "bevy_sprite")]
|
||||||
bevy_sprite:::SpritePlugin,
|
bevy_sprite:::SpritePlugin,
|
||||||
#[cfg(feature = "bevy_text")]
|
#[cfg(feature = "bevy_text")]
|
||||||
|
@ -18,6 +18,8 @@ pub use default_plugins::*;
|
|||||||
pub use bevy_a11y as a11y;
|
pub use bevy_a11y as a11y;
|
||||||
#[cfg(feature = "bevy_animation")]
|
#[cfg(feature = "bevy_animation")]
|
||||||
pub use bevy_animation as animation;
|
pub use bevy_animation as animation;
|
||||||
|
#[cfg(feature = "bevy_anti_aliasing")]
|
||||||
|
pub use bevy_anti_aliasing as anti_aliasing;
|
||||||
pub use bevy_app as app;
|
pub use bevy_app as app;
|
||||||
#[cfg(feature = "bevy_asset")]
|
#[cfg(feature = "bevy_asset")]
|
||||||
pub use bevy_asset as asset;
|
pub use bevy_asset as asset;
|
||||||
|
@ -492,8 +492,7 @@ pub enum ShadowFilteringMethod {
|
|||||||
Gaussian,
|
Gaussian,
|
||||||
/// A randomized filter that varies over time, good when TAA is in use.
|
/// A randomized filter that varies over time, good when TAA is in use.
|
||||||
///
|
///
|
||||||
/// Good quality when used with
|
/// Good quality when used with `TemporalAntiAliasing`
|
||||||
/// [`TemporalAntiAliasing`](bevy_core_pipeline::experimental::taa::TemporalAntiAliasing)
|
|
||||||
/// and good performance.
|
/// and good performance.
|
||||||
///
|
///
|
||||||
/// For directional and spot lights, this uses a [method by Jorge Jimenez for
|
/// For directional and spot lights, this uses a [method by Jorge Jimenez for
|
||||||
|
@ -146,7 +146,7 @@ impl Plugin for ScreenSpaceAmbientOcclusionPlugin {
|
|||||||
/// Requires that you add [`ScreenSpaceAmbientOcclusionPlugin`] to your app.
|
/// Requires that you add [`ScreenSpaceAmbientOcclusionPlugin`] to your app.
|
||||||
///
|
///
|
||||||
/// It strongly recommended that you use SSAO in conjunction with
|
/// It strongly recommended that you use SSAO in conjunction with
|
||||||
/// TAA ([`bevy_core_pipeline::experimental::taa::TemporalAntiAliasing`]).
|
/// TAA (`TemporalAntiAliasing`).
|
||||||
/// Doing so greatly reduces SSAO noise.
|
/// Doing so greatly reduces SSAO noise.
|
||||||
///
|
///
|
||||||
/// SSAO is not supported on `WebGL2`, and is not currently supported on `WebGPU`.
|
/// SSAO is not supported on `WebGL2`, and is not currently supported on `WebGPU`.
|
||||||
|
@ -16,6 +16,7 @@ The default feature set enables most of the expected features of a game engine,
|
|||||||
|animation|Enable animation support, and glTF animation loading|
|
|animation|Enable animation support, and glTF animation loading|
|
||||||
|async_executor|Uses `async-executor` as a task execution backend.|
|
|async_executor|Uses `async-executor` as a task execution backend.|
|
||||||
|bevy_animation|Provides animation functionality|
|
|bevy_animation|Provides animation functionality|
|
||||||
|
|bevy_anti_aliasing|Provides various anti aliasing solutions|
|
||||||
|bevy_asset|Provides asset functionality|
|
|bevy_asset|Provides asset functionality|
|
||||||
|bevy_audio|Provides audio functionality|
|
|bevy_audio|Provides audio functionality|
|
||||||
|bevy_color|Provides shared color types and operations|
|
|bevy_color|Provides shared color types and operations|
|
||||||
|
@ -3,13 +3,13 @@
|
|||||||
use std::{f32::consts::PI, fmt::Write};
|
use std::{f32::consts::PI, fmt::Write};
|
||||||
|
|
||||||
use bevy::{
|
use bevy::{
|
||||||
core_pipeline::{
|
anti_aliasing::{
|
||||||
contrast_adaptive_sharpening::ContrastAdaptiveSharpening,
|
contrast_adaptive_sharpening::ContrastAdaptiveSharpening,
|
||||||
experimental::taa::{TemporalAntiAliasPlugin, TemporalAntiAliasing},
|
experimental::taa::{TemporalAntiAliasPlugin, TemporalAntiAliasing},
|
||||||
fxaa::{Fxaa, Sensitivity},
|
fxaa::{Fxaa, Sensitivity},
|
||||||
prepass::{DepthPrepass, MotionVectorPrepass},
|
|
||||||
smaa::{Smaa, SmaaPreset},
|
smaa::{Smaa, SmaaPreset},
|
||||||
},
|
},
|
||||||
|
core_pipeline::prepass::{DepthPrepass, MotionVectorPrepass},
|
||||||
image::{ImageSampler, ImageSamplerDescriptor},
|
image::{ImageSampler, ImageSamplerDescriptor},
|
||||||
pbr::CascadeShadowConfigBuilder,
|
pbr::CascadeShadowConfigBuilder,
|
||||||
prelude::*,
|
prelude::*,
|
||||||
|
@ -3,10 +3,8 @@
|
|||||||
use std::f32::consts::*;
|
use std::f32::consts::*;
|
||||||
|
|
||||||
use bevy::{
|
use bevy::{
|
||||||
core_pipeline::{
|
anti_aliasing::fxaa::Fxaa,
|
||||||
fxaa::Fxaa,
|
core_pipeline::prepass::{DeferredPrepass, DepthPrepass, MotionVectorPrepass, NormalPrepass},
|
||||||
prepass::{DeferredPrepass, DepthPrepass, MotionVectorPrepass, NormalPrepass},
|
|
||||||
},
|
|
||||||
image::ImageLoaderSettings,
|
image::ImageLoaderSettings,
|
||||||
math::ops,
|
math::ops,
|
||||||
pbr::{
|
pbr::{
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
use std::f32::consts::PI;
|
use std::f32::consts::PI;
|
||||||
|
|
||||||
use bevy::{
|
use bevy::{
|
||||||
|
anti_aliasing::experimental::taa::{TemporalAntiAliasPlugin, TemporalAntiAliasing},
|
||||||
core_pipeline::{
|
core_pipeline::{
|
||||||
experimental::taa::{TemporalAntiAliasPlugin, TemporalAntiAliasing},
|
|
||||||
prepass::{DepthPrepass, MotionVectorPrepass},
|
prepass::{DepthPrepass, MotionVectorPrepass},
|
||||||
Skybox,
|
Skybox,
|
||||||
},
|
},
|
||||||
|
@ -11,10 +11,8 @@
|
|||||||
//! interactions change based on the density of the fog.
|
//! interactions change based on the density of the fog.
|
||||||
|
|
||||||
use bevy::{
|
use bevy::{
|
||||||
core_pipeline::{
|
anti_aliasing::experimental::taa::{TemporalAntiAliasPlugin, TemporalAntiAliasing},
|
||||||
bloom::Bloom,
|
core_pipeline::bloom::Bloom,
|
||||||
experimental::taa::{TemporalAntiAliasPlugin, TemporalAntiAliasing},
|
|
||||||
},
|
|
||||||
image::{
|
image::{
|
||||||
ImageAddressMode, ImageFilterMode, ImageLoaderSettings, ImageSampler,
|
ImageAddressMode, ImageFilterMode, ImageLoaderSettings, ImageSampler,
|
||||||
ImageSamplerDescriptor,
|
ImageSamplerDescriptor,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! A scene showcasing screen space ambient occlusion.
|
//! A scene showcasing screen space ambient occlusion.
|
||||||
|
|
||||||
use bevy::{
|
use bevy::{
|
||||||
core_pipeline::experimental::taa::{TemporalAntiAliasPlugin, TemporalAntiAliasing},
|
anti_aliasing::experimental::taa::{TemporalAntiAliasPlugin, TemporalAntiAliasing},
|
||||||
math::ops,
|
math::ops,
|
||||||
pbr::{ScreenSpaceAmbientOcclusion, ScreenSpaceAmbientOcclusionQualityLevel},
|
pbr::{ScreenSpaceAmbientOcclusion, ScreenSpaceAmbientOcclusionQualityLevel},
|
||||||
prelude::*,
|
prelude::*,
|
||||||
|
@ -3,8 +3,9 @@
|
|||||||
use std::ops::Range;
|
use std::ops::Range;
|
||||||
|
|
||||||
use bevy::{
|
use bevy::{
|
||||||
|
anti_aliasing::fxaa::Fxaa,
|
||||||
color::palettes::css::{BLACK, WHITE},
|
color::palettes::css::{BLACK, WHITE},
|
||||||
core_pipeline::{fxaa::Fxaa, Skybox},
|
core_pipeline::Skybox,
|
||||||
image::{
|
image::{
|
||||||
ImageAddressMode, ImageFilterMode, ImageLoaderSettings, ImageSampler,
|
ImageAddressMode, ImageFilterMode, ImageLoaderSettings, ImageSampler,
|
||||||
ImageSamplerDescriptor,
|
ImageSamplerDescriptor,
|
||||||
|
@ -36,7 +36,7 @@ use bevy::{
|
|||||||
};
|
};
|
||||||
|
|
||||||
#[cfg(any(feature = "webgpu", not(target_arch = "wasm32")))]
|
#[cfg(any(feature = "webgpu", not(target_arch = "wasm32")))]
|
||||||
use bevy::core_pipeline::experimental::taa::{TemporalAntiAliasPlugin, TemporalAntiAliasing};
|
use bevy::anti_aliasing::experimental::taa::{TemporalAntiAliasPlugin, TemporalAntiAliasing};
|
||||||
use rand::random;
|
use rand::random;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
Loading…
Reference in New Issue
Block a user