Optimized copy shader.