Well, that was almost easier than I thought: I implemented basic a lightmap generator (the only thing missing is objects being able to block light, which won't be hard, just an hour of tediousness.)
Although, well, I can't speak for the quality of the code at this point. :)...