Lightmap refactor

WIP refactor, basing view distance limitation on light attenuation rather than as an arbitrary distance limit.  Will also factor into visibility calculations I think since it will provide a natural "how visible + how well lit" data point.