Use RenderTarget

I used the Create Screenshot Using RenderTarget method to capture the screen in my scene, and the screen suddenly flickered because I wanted to capture a width of 1920 and a height of 1080, which is different from the original renderer size. However, in the Playground implementation, the screen does not flicker. In my project, it flickers and there are shadows in my scene. When I cancel using addShadowCaster, the screenshot is normal. So, I don’t know why this situation occurs in my project

Have you tried to recreate the problem in the Playground in the same conditions, that is with shadows enabled? Except if someone already encounters the problem you described, it will be hard for us to help without a repro, unfortunately…