[Godot 3.1] 3D sprite casts a misplaced shadow

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

Hi,

I’m new to 3D in Godot and I’d like to make a game a bit like Paper Mario, with 2D flat drawings in a 3D space.
I used a 3D Sprite for my character, transparent with the alpha cut “Opaque pre-pass” so it would cast a shadow.

The problem is that its shadow is not quite where it’s supposed to be.
(same problem with mesh instances as well)

> GIF SHOWING THE WEIRD SHADOW HERE <
(there’s a gap between the intersection ‘ground x character’ and where the shadow actually starts)

What did I do wrong ?
Thanks !

:bust_in_silhouette: Reply From: nonomiyo

ok, so the Shadow Bias setting in the Spotlight node is for some reasons set to 0.15 as default.
I put the value to 0 and it fixed this issue :slight_smile: