Add a flag in objects to know whether shadows have to be computed.