openxr rendering

This commit is contained in:
galister
2024-01-28 01:53:47 +01:00
parent 4aa52c1e67
commit 93125dd65e
7 changed files with 368 additions and 159 deletions

View File

@@ -129,6 +129,11 @@ where
T: Default,
{
pub fn init(&mut self, app: &mut AppState) {
self.state.transform.translation = app
.input_state
.hmd
.transform_point3a(self.state.spawn_point);
self.state.realign(&app.input_state.hmd);
self.backend.init(app);
}
pub fn render(&mut self, app: &mut AppState) {