I am surprised that there isn't more comprehensive answers to this question from more experienced people. I will try to fill the gap because the topic how material properties influence diffraction pattern is very interesting and is somehow neglected in the physics books. A more complete answer however should be given from someone with rich experimental experience.
The question seems simple but needs deep understanding in several fields.
First, you have to get introduced with the diffraction grating effect - the separation of the colors of the light through diffraction. It acts as a "super prism", separating the different colors of light much more than the dispersion effect in a prism.
Second, it have been known that the magnetic properties of the materials changes the angles by which light is diffracted. This is called Magneto-optic Kerr effect (MOKE) . MOKE is a result from the Faraday effect. It depends if the magnetization vector is parallel or perpendicular to the plane of incidence, light may be diffracted differently in each case because the magnetic field changes the polarization plane.
Third, the temperature of the grating material (the thermal energy of its particles) also matters. It changes the wavelength of the radiated light and doing so will change the colors in the diffraction pattern. For introduction about temperature influence of the radiation you can read about the Black-Body radiation.
So both magnetic and thermal properties influences diffraction. Actually, one of the pioneers in the diffraction optics - Wilhelm Wien, have studied exactly such effects in his PhD thesis called "On the diffraction of light upon photographically miniaturized lattices" but I couldn't find the original text in English.