How to make lights that affect my particle effects (fog)?

The particle cave example has a fog-sheet, and also a few god-ray sheets. check them out, they are the way to go and achieve this effect.