/**
 *
 * @param {number} reflectivity
 * @return {number} index of refraction (IOR)
 */
export function reflectivity_to_ior(reflectivity) {
    const r4 = 0.4 * reflectivity;

    return (1 + r4) / (1 - r4);
}