removed redundant transmittance computation