Factorize splatting shader.