Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove camera warmup when extracted view dynamic uniform offset synchronization ... #123

Open
github-actions bot opened this issue Nov 5, 2024 · 0 comments
Assignees
Labels

Comments

@github-actions
Copy link

github-actions bot commented Nov 5, 2024

// TODO: remove camera warmup when extracted view dynamic uniform offset synchronization is fixed

    ExtractComponent,
    Reflect,
)]
pub struct GaussianCamera {
    pub warmup: bool,
}


#[derive(Default)]
pub struct GaussianCameraPlugin;

impl Plugin for GaussianCameraPlugin {
    fn build(&self, app: &mut App) {
        app.add_plugins(ExtractComponentPlugin::<GaussianCamera>::default());

        app.add_systems(Update, apply_camera_warmup);
    }
}


// TODO: remove camera warmup when extracted view dynamic uniform offset synchronization is fixed
fn apply_camera_warmup(
    mut cameras: Query<&mut GaussianCamera>,
) {
    for mut camera in cameras.iter_mut() {
        if camera.warmup {
            info!("camera warmup...");
            camera.warmup = false;
        }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant