From eaddfcd8cc16b8cc54101447e818fbd5204997fc Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 7 May 2024 21:05:51 +0200 Subject: [PATCH] disable shadows on selectagon --- src/hud.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hud.rs b/src/hud.rs index bf9ddf7..9c5e158 100644 --- a/src/hud.rs +++ b/src/hud.rs @@ -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()