the mantle and core are composed of different material

P waves refract as they travel through Earth. The shadow zone exists because of seismic waves. The shadows show when the earth spins around.