fn initialise_lights(world: &mut World) {
    let light: Light = PointLight {
        intensity: 100.0,
        radius: 1.0,
        color: Rgba::white(),
        ..Default::default()
    }.into();

    let transform = Matrix4::from_translation([5.0, -20.0, 15.0].into());

    // Add point light.
    world
        .create_entity()
        .with(light)
        .with(GlobalTransform(transform.into()))
        .build();
}
/// Adds lights to the scene.
Adds lights to the scene.
Adds lights to the scene .
fn initialise_lights(world: &mut World) {
    let light: Light = PointLight {
        intensity: 100.0,
        radius: 1.0,
        color: Rgba::white(),
        ..Default::default()
    }.into();
    let transform = Matrix4::from_translation([5.0, -20.0, 15.0].into());
    // Add point light.
    world
        .create_entity()
        .with(light)
        .with(GlobalTransform(transform.into()))
        .build();
}
fn initialise_lights ( world : & mut World ) { let light : Light = PointLight { intensity : 100.0 , radius : 1.0 , color : Rgba :: white ( ) , .. Default :: default ( ) } . into ( ) ; let transform = Matrix4 :: from_translation ( [ 5.0 , - 20.0 , 15.0 ] . into ( ) ) ; // Add point light. world . create_entity ( ) . with ( light ) . with ( GlobalTransform ( transform . into ( ) ) ) . build ( ) ; }
Adds lights to the scene.
Adds lights to the scene .
world
&mut World
world
&mut World