Use Shadows in Rendering
 
 
 

To view shadows in the viewport

To generate shadow mapped shadows in the rendered image

To generate ray-traced shadows in the rendered image