The core principle of the greenhouse effect is the differential transparency of the trapping medium (glass or atmosphere) to incoming short-wavelength radiation and outgoing long-wavelength infrared radiation.