I have a spotlight the player can move around and casts dynamic shadows.
The attenuating radius applies equally to the light and shadows. I want to decouple them such that the shadows can be shorter. For example, the spotlight attenuating radius can be 2000, but only cast shadows up to 500.
I tried having two spotlights, one with casting shadows at 500 and one with none at 2000, but the non-shadow-casting light drowns out the shadows (i.e. one spotlight creates the shadows and the other lights them thereby undoing them).
Part of the effect is for performance so simply making the shadow fade out faster is not enough. The cost of dynamic lights is proportional to the # of dynamic lights x # of meshes x # of polys so I actually want fewer meshes sent to the shadow mapping process.
I imagine a bit of coding is necessary to accomplish this. I’m looking into ShadowSetup.cpp and ShadowRendering.cpp to either reduce the # of primitives, light radius, or some other trick.
Any ideas?