Simplified the deferred shading class.