Generic Shadowmapping Shader?

Miscellaneous Forums/General Discussion/Generic Shadowmapping Shader?

There are several things to consider:

- Which shader language
- Which format should the rendertarget be in
- Which light types should it support
- How are light positions and matrices (projection etc) supplied
- How should it be integrated with the remainder of the shaders?

It is unlikely you can find a shader that plugs in to which ever engine you are using without modifying it slightly. The biggest issue is how it's integrated with the rest of the shaders, the other stuff is more or less generic.

And in general stencil shadows are more widely supported, and do not rely on shaders. Neither does shadow mapping, really, but it requires a more recent graphics card.