Basic fog functions for GLSL