fix camera jitter

This commit is contained in:
awtterpip
2024-03-14 19:40:50 -05:00
parent ec2a538010
commit e1d5de1a94
3 changed files with 52 additions and 48 deletions

View File

@@ -52,7 +52,7 @@ impl Default for XrProjection {
/// Marker component for an XR view. It is the backends responsibility to update this.
#[derive(Clone, Copy, Component, Debug, Default)]
pub struct XrView;
pub struct XrCamera;
impl CameraProjection for XrProjection {
fn get_projection_matrix(&self) -> Mat4 {
@@ -106,7 +106,7 @@ pub struct XrCameraBundle {
pub color_grading: ColorGrading,
pub exposure: Exposure,
pub main_texture_usages: CameraMainTextureUsages,
pub view: XrView,
pub view: XrCamera,
}
impl Default for XrCameraBundle {
@@ -125,7 +125,7 @@ impl Default for XrCameraBundle {
exposure: Default::default(),
main_texture_usages: Default::default(),
dither: DebandDither::Enabled,
view: XrView,
view: XrCamera,
}
}
}