View previous topic :: View next topic |
Author |
Message |
Irritant
Joined: 19 May 2008 Posts: 115 Location: Maryland
|
Posted: Wed Sep 30, 2009 4:49 am Post subject: Is there a way to.... |
|
|
Subtract the stencil buffer from GLSL fragments?
In other words, if you render shadow volumes, and rather than the traditional "draw a poly across the screen with the shadow alpha" method, instead subtract the shadow volume from the dynamic light rendered in GLSL. _________________ http://red.planetarena.org - Alien Arena |
|
Back to top |
|
 |
Irritant
Joined: 19 May 2008 Posts: 115 Location: Maryland
|
Posted: Tue Oct 13, 2009 5:02 am Post subject: |
|
|
Looks like there isn't a way that I am aware of, so I went about it another way, using shadow mapping. Works pretty good IMO, still got some things to iron out, but it's a good start.
Ignore the crappy FPS in this shot, this was taken on a system with poor driver support, it chokes on any GLSL badly.
 _________________ http://red.planetarena.org - Alien Arena |
|
Back to top |
|
 |
|