From 39161d49418780c9d0eabdfad6d4fcf1c6eb8a12 Mon Sep 17 00:00:00 2001 From: altunenes Date: Sat, 11 May 2024 02:12:43 +0300 Subject: [PATCH] add controls for mandelbulb --- src/mandelbulb.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mandelbulb.rs b/src/mandelbulb.rs index dc87ae3..3bf590e 100644 --- a/src/mandelbulb.rs +++ b/src/mandelbulb.rs @@ -65,14 +65,14 @@ fn update(app: &App, model: &mut Model, update: Update) { ui.add(egui::Slider::new(&mut model.settings.a, 0.0..=10.0).text("color7")); ui.add(egui::Slider::new(&mut model.settings.b, 0.0..=10.0).text("color8")); ui.add(egui::Slider::new(&mut model.settings.c, 0.0..=10.0).text("color9")); - ui.add(egui::Slider::new(&mut model.settings.d, 0.0..=100.0).text("bcolor1")); - ui.add(egui::Slider::new(&mut model.settings.g, 1.0..=100.00).text("bcolor2")); - ui.add(egui::Slider::new(&mut model.settings.e, 0.002..=100.0).text("bcolor3")); + ui.add(egui::Slider::new(&mut model.settings.d, 0.0..=5.0).text("bcolor1")); + ui.add(egui::Slider::new(&mut model.settings.g, 0.0..=5.00).text("bcolor2")); + ui.add(egui::Slider::new(&mut model.settings.e, 0.002..=5.0).text("bcolor3")); ui.add(egui::Slider::new(&mut model.settings.f, 0.1..=100.0).text("color")); - ui.add(egui::Slider::new(&mut model.settings.iter, 0.0..=12.0).text("POWER")); - ui.add(egui::Slider::new(&mut model.settings.bound, 0.0..=15.0).text("Branch")); + ui.add(egui::Slider::new(&mut model.settings.iter, 1.0..=24.0).text("POWER")); + ui.add(egui::Slider::new(&mut model.settings.bound, 0.0..=45.0).text("Branch")); ui.add(egui::Slider::new(&mut model.settings.aa, 1.0..=4.0).text("AA")); - ui.add(egui::Slider::new(&mut model.settings.tt, 0.00001..=0.1).text("epsilon")); + ui.add(egui::Slider::new(&mut model.settings.tt, 0.00001..=0.5).text("epsilon")); }); let params_data = [model.settings.lambda, model.settings.theta,model.settings.alpha, model.settings.sigma,model.settings.gamma,model.settings.blue,model.settings.aa,model.settings.iter,model.settings.bound,model.settings.tt,model.settings.a,model.settings.b,model.settings.c,model.settings.d,model.settings.e,model.settings.f,model.settings.g]; let params_bytes = bytemuck::cast_slice(¶ms_data);