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!
You do a multipass solution:
For each light:
- Clear the stencil buffer
- Create a stencil mask from light ‘n’
- Add the light from light ‘n’ to the unmasked regions.