Hello there I am experiencing weird problem with mesh that casts and also recieves shadows.
It is “humanoid orc” mesh without any special shapes.
When it casts shadows, it somehow casts it onto itself even on the side that points to the source of light and it seems somehow buggy :-/ Some ideas how to solve it ?
Note: Source of light is above head of “my character”, I have tried lot of diferent shadow caster settings but none seems to be working.
I can achieve best results when I turn “recieve shadows” to false - then orcs are lit nicely and they still cast shadow onto the ground. They are just not shadowed by corners of walls but it is still relatively ok. I can live with that but it still seems to be weird.
- When shadow casting is on - shadow is nicely casted to the ground but mesh itself is almost not enlighted.
- When shadow casting is off, mesh is lit by “my character” as it is meant to be
Playground example https://playground.babylonjs.com/#MCNF1Y#1