fix point light in light balls
parent
4c4d9c1a7c
commit
afc34ef766
|
@ -1,4 +1,4 @@
|
||||||
use bevy::prelude::*;
|
use bevy::{pbr::CubemapVisibleEntities, prelude::*, render::primitives::CubemapFrusta};
|
||||||
|
|
||||||
use crate::{illumination::Illumination, player::Player};
|
use crate::{illumination::Illumination, player::Player};
|
||||||
|
|
||||||
|
@ -76,6 +76,8 @@ pub fn spawn_light_ball(
|
||||||
transform: Transform::from_translation(translation),
|
transform: Transform::from_translation(translation),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
})
|
})
|
||||||
|
.insert(CubemapFrusta::default())
|
||||||
|
.insert(CubemapVisibleEntities::default())
|
||||||
.insert(LightBall);
|
.insert(LightBall);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue