disable shadows on selectagon

This commit is contained in:
yuni 2024-05-07 21:05:51 +02:00
parent 1dadfd5770
commit eaddfcd8cc

View file

@ -11,6 +11,7 @@
// This module manages the heads-up display and augmented reality overlays.
use crate::{actor, audio, camera, chat, nature, skeleton, var};
use bevy::pbr::{NotShadowCaster, NotShadowReceiver};
use bevy::prelude::*;
use bevy::diagnostic::{DiagnosticsStore, FrameTimeDiagnosticsPlugin};
use bevy::transform::TransformSystem;
@ -493,6 +494,8 @@ fn setup(
// Selectagon
let mut entitycmd = commands.spawn((
Selectagon,
NotShadowCaster,
NotShadowReceiver,
SpatialBundle {
visibility: Visibility::Hidden,
..default()