[Ogre1.x] Point and spot lights don't cast shadows
Original report (archived issue) by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).
Summary
All lights have the Light::SetCastShadow function, but it only works if the light type is directional.
Motivation
I noticed this while reviewing this Ign-Gazebo PR. The issue is analogous to Gazebo issue 2083.
Describe alternatives you've considered
- Implement shadows for all light types
- Print a warning if the function is called for a light that doesn't support shadows
Additional context
This blue spot light had shadows on:

Original comment by Ian Chen (Bitbucket: Ian Chen, GitHub: iche033).
- changed title from "Point and spot lights don't cast shadows" to "[Ogre1.x] Point and spot lights don't cast shadows"
If the engines are similar enough, I could try to implement point light shadows like how I did here: https://github.com/osrf/gazebo/pull/3051.
That would be nice! ign-rendering uses the same Ogre 1 version as Gazebo classic, so I think that it should be relatively straight-forward to port that implementation.
changes to the core classes should be straight forward to port. The demo world will likely have to live in ign-gazebo because ign-rendering does not support parsing sdf files.
I'll also see if I can get it working for Ogre2.
directional light and spot light shadows should be working in ogre2. However, there is an issue with having directional light and point light shadows enabled at the same time as found in https://github.com/ignitionrobotics/ign-gazebo/pull/587#issuecomment-769507138