Invisible mesh object that casts shadows

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By rainerdeyke

Is it possible to set up a mesh object that casts a shadow, but is otherwise invisible?

:bust_in_silhouette: Reply From: Calinou

Yes. Select your MeshInstance node, go to the Inspector’s GeometryInstance section then set the shadow mode to Shadows Only.

Make sure your mesh doesn’t have a transparent material attached to it. Otherwise, it won’t cast any shadows.