Finally, after a few painful days, I managed to proceed with the multipass shadows.
The main problem was that i was using a cubemap too large, and so a black screen was rendered. This made me lose two days of work, it was really frustrating.
After that I spent quite some time to render exactly what i wanted, but now everything is fine.
In the picture on the left there is the usual rendering (horribly modified because I was using colors to debug the scene), and on the right there are 6 little images:
the top two are back and front X faces, the middle ones back and front Y and the bottom one back and front Z (referred to a point light I placed on the scene).
The next step will be to sample this cubemap inside my point light shader, which will be similar to what I already do with the directional shader (for the most part).

Nessun commento:
Posta un commento