This affects only transparent materials. Ideally, the shader compilation should trigger a tag update on the object but that's bad level call. Instead, we just discard all shadows after finishing recompiling a transparent material. This is overly conservative but it fixes the issue. Fixes #119624