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