fragShader
Newbie
- Joined
- Sep 25, 2004
- Messages
- 144
- Reaction score
- 0
i'm not going to take your bait, but do some research at least before you try acting clever.
the shadow system in HL2 has nothing to do with dynamic lights, they specify a global light direction per level, and each entity casts one shadow based on that static light source. the shadow color is also specified globally, and each entities shadow is alpha-blended into the frame buffer using that color.
if two shadows overlap, you will blend the shadow colour in twice. therefore, the glitch is inherent in the algorithm.
the shadow system in HL2 has nothing to do with dynamic lights, they specify a global light direction per level, and each entity casts one shadow based on that static light source. the shadow color is also specified globally, and each entities shadow is alpha-blended into the frame buffer using that color.
if two shadows overlap, you will blend the shadow colour in twice. therefore, the glitch is inherent in the algorithm.