fix point light in light balls

This commit is contained in:
annieversary 2022-07-07 09:24:25 +01:00
parent 4c4d9c1a7c
commit afc34ef766

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