From cfc934ddb72704d20745eedec5d3ed815fba4331 Mon Sep 17 00:00:00 2001 From: Nova Date: Mon, 4 Nov 2024 06:09:25 -0500 Subject: [PATCH] feat: openxr transparency when available --- src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 30457f23..bfa1613e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -23,7 +23,9 @@ use std::sync::Arc; use std::time::Duration; use stereokit_rust::material::Material; use stereokit_rust::shader::Shader; -use stereokit_rust::sk::{sk_quit, AppMode, DepthMode, OriginMode, QuitReason, SkSettings}; +use stereokit_rust::sk::{ + sk_quit, AppMode, DepthMode, DisplayBlend, OriginMode, QuitReason, SkSettings, +}; use stereokit_rust::system::{LogLevel, Renderer}; use stereokit_rust::tex::{SHCubemap, Tex, TexFormat, TexType}; use stereokit_rust::ui::Ui; @@ -174,6 +176,7 @@ fn stereokit_loop( ) { let sk = SkSettings::default() .app_name("Stardust XR") + .blend_preference(DisplayBlend::AnyTransparent) .mode(if args.flatscreen { AppMode::Simulator } else {