How to stop shadow casting through meshes?

Godot Version

4.5

Question

I have a directional light downwards and disabled the platform shadow. The red guy, somehow, is casting his shadow both on the platform and on the floor. Realistically there should only be shadow on object he stands on.

Use decals for shadows instead.

Yea I just read light shadows can be intensive for web export. I’m just gonna have to do blob shadows for them now.

Yeah, blobs will be fine for this. You can’t have non-casters block shadows from casters anyway, simply due to the way shadow maps work. A non-caster will not be rendered into the shadow map so from light source’s point of view - it doesn’t exists, therefore it cannot block either light or shadows cast from other objects.

2 Likes