update
This commit is contained in:
parent
a09720992f
commit
6e26661088
13
src/main.rs
13
src/main.rs
@ -60,18 +60,6 @@ struct ObjectBundle {
|
||||
#[derive(Component)]
|
||||
struct Star;
|
||||
|
||||
#[derive(Component)]
|
||||
struct EmissiveEnhanced;
|
||||
|
||||
#[derive(Component)]
|
||||
struct NeedsEmissiveEnhancement;
|
||||
|
||||
#[derive(Component)]
|
||||
struct EmissiveEnhancementAttempts {
|
||||
attempts: u32,
|
||||
max_attempts: u32,
|
||||
}
|
||||
|
||||
#[derive(Component)]
|
||||
struct Earth;
|
||||
|
||||
@ -449,7 +437,6 @@ fn setup_solar_system(mut commands: Commands, asset_server: Res<AssetServer>) {
|
||||
match body_data.name.as_str() {
|
||||
"Sun" => {
|
||||
entity_commands.insert(Star);
|
||||
entity_commands.insert(NeedsEmissiveEnhancement);
|
||||
entity_commands.insert(PointLight {
|
||||
color: Color::WHITE,
|
||||
shadows_enabled: true,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user