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)]
|
#[derive(Component)]
|
||||||
struct Star;
|
struct Star;
|
||||||
|
|
||||||
#[derive(Component)]
|
|
||||||
struct EmissiveEnhanced;
|
|
||||||
|
|
||||||
#[derive(Component)]
|
|
||||||
struct NeedsEmissiveEnhancement;
|
|
||||||
|
|
||||||
#[derive(Component)]
|
|
||||||
struct EmissiveEnhancementAttempts {
|
|
||||||
attempts: u32,
|
|
||||||
max_attempts: u32,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Component)]
|
#[derive(Component)]
|
||||||
struct Earth;
|
struct Earth;
|
||||||
|
|
||||||
@ -449,7 +437,6 @@ fn setup_solar_system(mut commands: Commands, asset_server: Res<AssetServer>) {
|
|||||||
match body_data.name.as_str() {
|
match body_data.name.as_str() {
|
||||||
"Sun" => {
|
"Sun" => {
|
||||||
entity_commands.insert(Star);
|
entity_commands.insert(Star);
|
||||||
entity_commands.insert(NeedsEmissiveEnhancement);
|
|
||||||
entity_commands.insert(PointLight {
|
entity_commands.insert(PointLight {
|
||||||
color: Color::WHITE,
|
color: Color::WHITE,
|
||||||
shadows_enabled: true,
|
shadows_enabled: true,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user