Factorize transparent shaders.