It has to do with the quantum nature light: energy can only be absorbed in amounts which are fixed.
Glass is unable to absorb / accept optical light, because of its internal (electronic) structure.
Steel is different, it’s electrons can easily absorb light, which is why even thin foils are intransparent .
Latest Answers