added pan/orbit camera and eguiplugin
This commit is contained in:
parent
405d187a29
commit
a9829b700e
4 changed files with 23 additions and 3 deletions
|
|
@ -1,4 +1,5 @@
|
|||
use bevy::{color::palettes::css::RED, prelude::*, render::storage::ShaderStorageBuffer};
|
||||
use bevy_egui::EguiPlugin;
|
||||
use mandelbulb::{MandelbulbExtension, MandelbulbMaterial, MandelbulbStorage};
|
||||
|
||||
mod camera;
|
||||
|
|
@ -6,7 +7,12 @@ mod mandelbulb;
|
|||
|
||||
fn main() {
|
||||
App::new()
|
||||
.add_plugins(DefaultPlugins)
|
||||
.add_plugins((
|
||||
DefaultPlugins,
|
||||
EguiPlugin {
|
||||
enable_multipass_for_primary_context: false,
|
||||
},
|
||||
))
|
||||
.add_plugins((camera::plugin, mandelbulb::plugin))
|
||||
.add_systems(Startup, setup)
|
||||
.add_systems(Update, (rotate_things,))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue