Right click Dock -> Dock settings - Effects -> "Shadows" [disable that options group from its header]