View Full Version : Sttencil Buffer Shadow Overlapping
03-29-2005, 07:09 PM
If i have more than a single one point light, how to create real-visible effect of the shadow overlapping? I suppose using glBlendFunc() but dunno how.Please help!
03-30-2005, 12:32 AM
You do a multipass solution:
For each light:
1. Clear the stencil buffer
2. Create a stencil mask from light 'n'
3. Add the light from light 'n' to the unmasked regions.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.