I am loading a mesh from a babylon file
The mesh has a skeleton.
The shadow casted by it is not proper.
See file "with_skel.jpg" to check the shadow casted.
Now if i remove the skeleton by doing
mesh.skeleton=null;
The shadow is proper.
See file "without_skel.jpg"
I was able to reproduce the issue in playground but wasn't able to save the code. I got the error message "file too big" when trying to save.
The code is a little large as it has an embedded scene file.
So I have attached the code here. See file "playground_code,txt"
Copy the code to playground to check.
comment on/off line 44 to see the issue