|
|
It looks nice!
But why are you rendering your scene multiple times?
Wouldn't it be cheaper to just render it once and rendering an alpha blended polygon on top of the in the masked stencil (shadowed) areas?
That wouldn't work with overlapping shadows probably (so, not that it gets even darker if you have overlapping shadows), but still, you don't need to render the scene multiple times (except the shadows, which you can do with silhouettes)
Maybe I understood wrong what you are doing.
But I know that there is some document from NVidia around, which describes how to do the stencil shadows, and they do render the scene multiple times, even for 1 light, doing some zbuffer trick and disable lighting in one of the passes, etc.
But that's probably slower as the way I am thinking of.
Anyway, however it's done, it looks nice :)
- John
|