refactor camera and mandelbulb to separate modules
This commit is contained in:
parent
8da858f57f
commit
405d187a29
4 changed files with 103 additions and 72 deletions
12
src/camera.rs
Normal file
12
src/camera.rs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
use bevy::prelude::*;
|
||||
|
||||
pub fn plugin(app: &mut App) {
|
||||
app.add_systems(Startup, setup);
|
||||
}
|
||||
|
||||
fn setup(mut commands: Commands) {
|
||||
commands.spawn((
|
||||
Camera3d::default(),
|
||||
Transform::from_xyz(-2.0, 2.5, 5.0).looking_at(Vec3::ZERO, Vec3::Y),
|
||||
));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue