fix point light in light balls

main
annieversary 2022-07-07 09:24:25 +01:00
parent 4c4d9c1a7c
commit afc34ef766
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}