refactor camera and mandelbulb to separate modules

This commit is contained in:
TÁNCZOS Vilmos Zsombor 2025-05-31 23:05:05 +02:00
parent 8da858f57f
commit 405d187a29
4 changed files with 103 additions and 72 deletions

12
src/camera.rs Normal file
View 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),
));
}