In a dichroic mirror or filter, instead of using an oil film to produce the interference, alternating layers of optical coatings with different refractive indices are built up upon a glass substrate. The interfaces between the layers of different refractive index produce phased reflections, selectively reinforcing certain wavelengths of light and interfering with other wavelengths. The layers are usually added by vacuum deposition. By controlling the thickness and number of the layers, the frequency of the passband of the filter can be tuned and made as wide or narrow as desired. Because unwanted wavelengths are reflected rather than absorbed, dichroic filters do not absorb this unwanted energy during operation and so do not become nearly as hot as the equivalent conventional filter (which attempts to absorb all energy except for that in the passband). (See Fabry–Pérot interferometer for a mathematical description of the effect.)