Documented addGlobalUniform function.