shadow attenuation

finish the shadow attenuation for pointlight according to the contents
on the course notes and not sure if it's right or not~