Current
match light.kind {
LightKind::Point => commands.spawn(PointLightBundle {
transform,
point_light: PointLight {
color: Color::from(light.color),
// intensity: (),
..Default::default()
},
..Default::default()
}),
LightKind::Spot => commands.spawn(SpotLightBundle {
transform,
spot_light: SpotLight {
color: Color::from(light.color),
..Default::default()
},
..Default::default()
}),
};