PaladinOfKaos
11-17-2005, 09:12 PM
But I hit the 200 result limit, even when I refined my search as much as possible.
I just wanted to verify what I think is the correct way to handle multiple lights with stencil shadow volumes.
</font>
Render to z-buffer
for each light source
<font size="2" face="Verdana, Arial">calculate shadow volumes draw them to stencil buffer draw lighting with depth test at GL_EQUAL, blended with (GL_ONE,GL_ONE)
</font> draw final texture pass
<font size="2" face="Verdana, Arial">The only bit that I wanted to verify was the lighting pass. Is that the right way to handle that, or am I mixing bits and pieces together the wrong way?
I just wanted to verify what I think is the correct way to handle multiple lights with stencil shadow volumes.
</font>
Render to z-buffer
for each light source
<font size="2" face="Verdana, Arial">calculate shadow volumes draw them to stencil buffer draw lighting with depth test at GL_EQUAL, blended with (GL_ONE,GL_ONE)
</font> draw final texture pass
<font size="2" face="Verdana, Arial">The only bit that I wanted to verify was the lighting pass. Is that the right way to handle that, or am I mixing bits and pieces together the wrong way?