diff --git a/src/commands.rs b/src/commands.rs index 4a240f6..195d09b 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -629,16 +629,17 @@ fn spawn_entities( actor.insert(actor::WantsMaxVelocity(value)); } if let Some(color) = state.light_color { - actor.insert(PointLightBundle { - point_light: PointLight { + actor.insert(( + PointLight { intensity: state.light_brightness, color, range: 100.0, radius: 100.0, ..default() }, - ..default() - }); + bevy::pbr::CubemapVisibleEntities::default(), + bevy::render::primitives::CubemapFrusta::default(), + )); } if !state.id.is_empty() { actor.insert(actor::Identifier(state.id.clone())); diff --git a/src/data/defs.txt b/src/data/defs.txt index 9783f01..0a8be87 100644 --- a/src/data/defs.txt +++ b/src/data/defs.txt @@ -342,15 +342,15 @@ actor -3300 10 0 pizzeria density 200 rotationy 0.45 angularmomentum 0 0 0 - actor -36 -10 0 lightorb + actor -52 -10 0 lightorb name "Light Orb" relativeto pizzeria - scale 0.5 + scale 0.25 light FF8F4A 1000000 - actor -34 -3 -2 lightorb + actor -50 -3 -2 lightorb name "Light Orb" relativeto pizzeria - scale 0.5 + scale 0.25 light FF8F4A 1000000 actor -33 0 4 clippy name "Clippy™ Convenience Companion"