Optimized deferred shading