upgrade all code except d3d12 and upgrade all examples except demo

Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
Schmarni
2024-06-22 17:21:13 +02:00
parent d461594f9b
commit c1528d612f
15 changed files with 2026 additions and 725 deletions

View File

@@ -1,3 +1,4 @@
use bevy::color::palettes;
use bevy::render::extract_resource::ExtractResource;
use bevy::{prelude::*, render::extract_resource::ExtractResourcePlugin};
use std::{marker::PhantomData, mem, ptr};
@@ -88,10 +89,7 @@ fn resume_passthrough(
warn!("Unable to resume Passthrough: {}", e);
return;
}
clear_color.set_a(0.0);
clear_color.set_r(0.0);
clear_color.set_g(0.0);
clear_color.set_b(0.0);
**clear_color = Srgba::NONE.into();
*state = XrPassthroughState::Running;
}
fn pause_passthrough(
@@ -103,7 +101,7 @@ fn pause_passthrough(
warn!("Unable to resume Passthrough: {}", e);
return;
}
clear_color.set_a(1.0);
clear_color.set_alpha(1.0);
*state = XrPassthroughState::Paused;
}