View Full Version : Sttencil Buffer Shadow Overlapping
03-29-2005, 06: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-29-2005, 11:32 PM
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 © 2017 vBulletin Solutions, Inc. All rights reserved.