The dedicated Vello ES-52 Lens Hood is specifically designed for use with Canon's EF 40mm f/2.8 Lens.
Lens hoods are primarily designed to prevent unwanted stray light from entering the lens by extending and shading the end of the lens. A dedicated lens hood is designed to perfectly match the specific focal length of the lens it was designed for. Moreover, this hood features a non-glare matte finish on the interior surface to further prevent or limit lens flare. And since the end of the lens is extended, you also get the added benefit of some extra protection from accidental impact.
This is a metal hood with a black matte finish.