-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7f777de
commit 91737e1
Showing
29 changed files
with
306 additions
and
947 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
use bevy_inspector_egui::quick::WorldInspectorPlugin; | ||
use bevy_registry_export::*; | ||
use simulation::start; | ||
|
||
fn main() { | ||
start(|app| { | ||
app.add_plugins(ExportRegistryPlugin::default()) | ||
.add_plugins(WorldInspectorPlugin::default()); | ||
}); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,6 @@ | ||
use std::f32::consts::PI; | ||
|
||
use bevy::{pbr::CascadeShadowConfigBuilder, prelude::*}; | ||
use simulation::start; | ||
|
||
fn main() { | ||
start(|app| { | ||
app.add_systems(Startup, setup); | ||
}); | ||
start(|_| {}); | ||
} | ||
|
||
fn setup( | ||
mut commands: Commands, | ||
mut meshes: ResMut<Assets<Mesh>>, | ||
mut materials: ResMut<Assets<StandardMaterial>>, | ||
) { | ||
commands.spawn(Camera3dBundle { | ||
transform: Transform::from_xyz(5.0, 9.0, 8.0) | ||
.looking_at(Vec3::new(0.0, 0.0, -5.0), Vec3::Y), | ||
..default() | ||
}); | ||
|
||
commands.spawn(PbrBundle { | ||
mesh: meshes.add(shape::Plane::from_size(10000.0).into()), | ||
material: materials.add(Color::rgb(0.3, 0.5, 0.3).into()), | ||
..default() | ||
}); | ||
|
||
commands.spawn(DirectionalLightBundle { | ||
transform: Transform::from_rotation(Quat::from_euler(EulerRot::ZYX, 0.0, 1.0, -PI / 4.)), | ||
directional_light: DirectionalLight { | ||
shadows_enabled: true, | ||
..default() | ||
}, | ||
cascade_shadow_config: CascadeShadowConfigBuilder { | ||
first_cascade_far_bound: 20.0, | ||
maximum_distance: 40.0, | ||
..default() | ||
} | ||
.into(), | ||
..default() | ||
}); | ||
} |
Oops, something went wrong.