Skip to content

Commit

Permalink
Expose hot reloading and reset accumulation options
Browse files Browse the repository at this point in the history
  • Loading branch information
kvark committed Jul 11, 2024
1 parent 1066e0d commit 518078c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion examples/scene/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,6 @@ impl Example {
egui::CollapsingHeader::new("Debug")
.default_open(true)
.show(ui, |ui| {
ui.checkbox(&mut self.track_hot_reloads, "Hot reloading");
// debug mode
egui::ComboBox::from_label("View mode")
.selected_text(format!("{:?}", self.debug.view_mode))
Expand Down
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -712,9 +712,11 @@ impl Engine {
#[profiling::function]
pub fn populate_hud(&mut self, ui: &mut egui::Ui) {
use strum::IntoEnumIterator as _;
ui.checkbox(&mut self.track_hot_reloads, "Hot reloading");
egui::CollapsingHeader::new("Rendering")
.default_open(true)
.show(ui, |ui| {
self.need_accumulation_reset |= ui.button("Reset Accumulation").clicked();
ui.checkbox(&mut self.denoiser_enabled, "Enable Denoiser");
egui::ComboBox::from_label("Debug mode")
.selected_text(format!("{:?}", self.debug.view_mode))
Expand All @@ -729,7 +731,7 @@ impl Engine {
});
});
egui::CollapsingHeader::new("Visualize")
.default_open(true)
.default_open(false)
.show(ui, |ui| {
let all_bits = rapier3d::pipeline::DebugRenderMode::all().bits();
for bit_pos in 0..=all_bits.ilog2() {
Expand Down

0 comments on commit 518078c

Please sign in to comment.