979d3e58d0
Previously, each mesh was paired up with the first N of each Omni- and Spot-lights. Now each light is scored based on its distance to the mesh, energy, and range. The new code uses a heap to track the best N lights (of each type) for predictability.