refactor(openxr): make environment blend modes a completely runtime feature, like it should and remove the fb_passthrough plugin from the default oxr plugins as quests now support blendmode based passthrough

Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
Schmarni
2025-07-21 02:30:34 +02:00
committed by Schmarni
parent 9569f591ac
commit 62cf605f4a
13 changed files with 84 additions and 60 deletions

View File

@@ -13,10 +13,11 @@ fn main() -> AppExit {
DefaultPlugins.build().disable::<PipelinedRenderingPlugin>(),
))
.insert_resource(OxrSessionConfig {
blend_modes: Some(vec![
blend_mode_preference: vec![
EnvironmentBlendMode::ALPHA_BLEND,
EnvironmentBlendMode::ADDITIVE,
EnvironmentBlendMode::OPAQUE,
]),
],
..default()
})
.add_plugins(bevy_mod_xr::hand_debug_gizmos::HandGizmosPlugin)

View File

@@ -92,6 +92,6 @@ categories = [
# https://developer.android.com/studio/publish/app-signing
#
# !! IMPORTANT !!
[package.metadata.android.signing.release]
path = "./hotham_examples.keystore"
keystore_password = "chomsky-vigilant-spa"
# [package.metadata.android.signing.release]
# path = "./hotham_examples.keystore"
# keystore_password = "chomsky-vigilant-spa"

View File

@@ -16,6 +16,7 @@ fn main() {
..default()
}))
.add_plugins(bevy_mod_xr::hand_debug_gizmos::HandGizmosPlugin)
.add_plugins(bevy_mod_openxr::features::fb_passthrough::OxrFbPassthroughPlugin)
.add_systems(Startup, setup)
.add_systems(Update, modify_msaa)
.insert_resource(AmbientLight {

View File

@@ -19,12 +19,13 @@ fn main() {
..OxrInitPlugin::default()
}))
.insert_resource(OxrSessionConfig {
blend_modes: Some({
blend_mode_preference: {
vec![
EnvironmentBlendMode::ALPHA_BLEND,
EnvironmentBlendMode::ADDITIVE,
EnvironmentBlendMode::OPAQUE,
]
}),
},
..OxrSessionConfig::default()
})
.insert_resource(ClearColor(Color::NONE))