Forum

Is there a way to....

Discuss programming topics for the various GPL'd game engine sources.

Moderator: InsideQC Admins

Is there a way to....

Postby Irritant » Wed Sep 30, 2009 4:49 am

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 and the CRX engine
Irritant
 
Posts: 250
Joined: Mon May 19, 2008 2:54 pm
Location: Maryland

Postby Irritant » Tue Oct 13, 2009 5:02 am

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.

Image
http://red.planetarena.org - Alien Arena and the CRX engine
Irritant
 
Posts: 250
Joined: Mon May 19, 2008 2:54 pm
Location: Maryland


Return to Engine Programming

Who is online

Users browsing this forum: No registered users and 1 guest