fix point light in light balls
This commit is contained in:
parent
4c4d9c1a7c
commit
afc34ef766
1 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
use bevy::prelude::*;
|
||||
use bevy::{pbr::CubemapVisibleEntities, prelude::*, render::primitives::CubemapFrusta};
|
||||
|
||||
use crate::{illumination::Illumination, player::Player};
|
||||
|
||||
|
@ -76,6 +76,8 @@ pub fn spawn_light_ball(
|
|||
transform: Transform::from_translation(translation),
|
||||
..Default::default()
|
||||
})
|
||||
.insert(CubemapFrusta::default())
|
||||
.insert(CubemapVisibleEntities::default())
|
||||
.insert(LightBall);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue