The lacunarity parameter characterizing fractal properties of optical spectra is shown to depend on the temperature of a medium. It can be used as a criterion of applicability of the exponential series when solving the radiative transfer equation for the case of inhomogeneous nonisothermal atmosphere.