Inside3D!
     

Is there a way to....

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> Engine Programming
View previous topic :: View next topic  
Author Message
Irritant



Joined: 19 May 2008
Posts: 115
Location: Maryland

PostPosted: Wed Sep 30, 2009 4:49 am    Post subject: Is there a way to.... Reply with quote

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
View user's profile Send private message Visit poster's website
Irritant



Joined: 19 May 2008
Posts: 115
Location: Maryland

PostPosted: Tue Oct 13, 2009 5:02 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> Engine Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group