Optimized lighting engine

Reduced state-switching while building lightmap
Removed unnecessary calculations in lighting algorithm

Signed-off-by: James Hagborg <jameshagborg@gmail.com>