Some minor improvements to shaders.