Material Editor Viewport Issues

Did you accidentally move the light source? Hold L and drag the mouse around in the viewport.