On the temperature functions of optical fields