fix inability to scale model of light sources
This commit is contained in:
parent
2522367026
commit
bf62689fe2
|
@ -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()));
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue