Prove our own dot and mix functions in GLSL since GLSL doesn't provide integer versions of these functions, even though AMD and Nvidia provide their own.