Slower light masking

Simple if statements slow down the light masking as the viewing radius
gets smaller.