Made two versions of getTransmittance with different accuracy