Optimize compositing shader to not to blend unnecessarily