Moved deferred shading to its own class.