glsl/builtins: Compute the correct value for smoothstep(vec, vec, vec).