Refactred the prelight functions to a new class PrelightingRenderer.