Prove our own dot functions in GLSL since GLSL doesn't provide integer versions of this function, even though AMD and Nvidia provide their own.
PixelShaderGen: Process fog calculations properly with integer math.

mix(int3, int3, float) doesn't actually exist.