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));
|
actor.insert(actor::WantsMaxVelocity(value));
|
||||||
}
|
}
|
||||||
if let Some(color) = state.light_color {
|
if let Some(color) = state.light_color {
|
||||||
actor.insert(PointLightBundle {
|
actor.insert((
|
||||||
point_light: PointLight {
|
PointLight {
|
||||||
intensity: state.light_brightness,
|
intensity: state.light_brightness,
|
||||||
color,
|
color,
|
||||||
range: 100.0,
|
range: 100.0,
|
||||||
radius: 100.0,
|
radius: 100.0,
|
||||||
..default()
|
..default()
|
||||||
},
|
},
|
||||||
..default()
|
bevy::pbr::CubemapVisibleEntities::default(),
|
||||||
});
|
bevy::render::primitives::CubemapFrusta::default(),
|
||||||
|
));
|
||||||
}
|
}
|
||||||
if !state.id.is_empty() {
|
if !state.id.is_empty() {
|
||||||
actor.insert(actor::Identifier(state.id.clone()));
|
actor.insert(actor::Identifier(state.id.clone()));
|
||||||
|
|
|
@ -342,15 +342,15 @@ actor -3300 10 0 pizzeria
|
||||||
density 200
|
density 200
|
||||||
rotationy 0.45
|
rotationy 0.45
|
||||||
angularmomentum 0 0 0
|
angularmomentum 0 0 0
|
||||||
actor -36 -10 0 lightorb
|
actor -52 -10 0 lightorb
|
||||||
name "Light Orb"
|
name "Light Orb"
|
||||||
relativeto pizzeria
|
relativeto pizzeria
|
||||||
scale 0.5
|
scale 0.25
|
||||||
light FF8F4A 1000000
|
light FF8F4A 1000000
|
||||||
actor -34 -3 -2 lightorb
|
actor -50 -3 -2 lightorb
|
||||||
name "Light Orb"
|
name "Light Orb"
|
||||||
relativeto pizzeria
|
relativeto pizzeria
|
||||||
scale 0.5
|
scale 0.25
|
||||||
light FF8F4A 1000000
|
light FF8F4A 1000000
|
||||||
actor -33 0 4 clippy
|
actor -33 0 4 clippy
|
||||||
name "Clippy™ Convenience Companion"
|
name "Clippy™ Convenience Companion"
|
||||||
|
|
Loading…
Reference in a new issue