Flags are used to block, reduce, or diffuse light, helping to control the overall lighting of a scene.