the age old question!.. there isnt sth in maya, and as far as i know i havent seen anyone doin it and distributing it, but i think if u care to do it, you have to do it through a ray trace algorithm from the caemra, and i dont know if its worth it,
good luck