GLSL: Various tweaks here and there to make the result more reasonable.