Note that the periodic intensity pattern is clear at a specific energy depending on the G1-G2 distance while the periodic intensity patterns at different X-ray energies are more blurry.
G2, which must be an amplitude type and has a pitch equal to the period of the intensity pattern, can filter out the X-rays of a specific energy range.