added shadow attenuation
Merge pull request #35 from guanlun/master

added shadow attenuation