Improved light spread algorithm