Slower light masking

Simple if statements slow down the light masking as the viewing radius
gets smaller.
Merge pull request #1 from brockton/master

Slower light masking