Refactor of deferred rendering. AH-140