• 3D
  • [SOLVED] Godot 4: shadows issue

Hi folks!

I'm porting my prototype from G3 to G4 and I've found an issue with shadows. I know that my lighting setup may be demanding (the sun just above the horizon, long shadows), but I really love sunset mood. I'm trying to achieve light shafts similar to UE4, so I placed a tree on the hill to test "godrays", but I've noticed that shadows of the tree and player are clipped/cutout.

What do you think, am I doing something wrong? :) Thanks.

It appears the terrain is not casting a shadow. The darkness you see looks likely direct lighting and shading, not shadow. I think you are using a plugin, if so, it may be that the terrain is doing something in another pass (not part of the core shadow mapping render). Without knowing how you made the terrain, I would not know how to fix this. Can you explain how your terrain works?

As always you're right. It's a meshinstance with disabled shadow casting.