There is this tutorial about shadow mapping: http://www.paulsprojects.net/tutorials/smt/smt.html
Ok, but I did not realize how to make a scene with multitexture.
If in the third pass of shadow mapping It is need to bind the shadow mapping projected texture to perform depth comparison, HOW can I bind another textures if I need to bind the shadow mapping texture?
Must I set shadow mapping as a separate texture to be bind? Something like this:
- Active shadow mapping texture
- Active texture 1
- Active texture 2
I tried that but it did not work (maybe I've done something wrong).