Skip to content

Commit

Permalink
add controls for mandelbulb
Browse files Browse the repository at this point in the history
  • Loading branch information
altunenes committed May 10, 2024
1 parent 31407ca commit 39161d4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/mandelbulb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(&params_data);
Expand Down

0 comments on commit 39161d4

Please sign in to comment.