View Full Version : shadow volumes and portals.. anyone ?
01-19-2002, 10:17 AM
How can I render proper shadows using shadow volumes inside a portal? If the stencil buffer is used to clip a portal, I can't use it while rendering the portal itself...
01-21-2002, 05:14 AM
Have you considered using the stencil bit-masks (glStencilMask
I haven't tried this, but you should be able to use one bit for the portal and the remaining 7 for the stencilled shadows...
What exactly are you trying to do?
01-21-2002, 08:42 AM
It is quite simple to use recursive stencil masks. Just render your portal stencil e.g. with ref number x and then reder your shadows in your portal with ref values >x.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.