Is there a way to....
Moderator: InsideQC Admins
2 posts
• Page 1 of 1
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.
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 and the CRX engine
- Irritant
- Posts: 250
- Joined: Mon May 19, 2008 2:54 pm
- Location: Maryland
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.

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 and the CRX engine
- Irritant
- Posts: 250
- Joined: Mon May 19, 2008 2:54 pm
- Location: Maryland
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest