Render only partial scene to SceneCapture2D

Hello everyone, has someone perhaps a more elegant solution to this problem…

At the moment I use 2 scenes with the same camera settings (each has 1 SceneCapture2D and a RenderTarget as camera), but different geometry, which are then blended later in one material. Let’s say, for example, the complete scene contains a cube with a smaller sphere in it. Correspondingly, scene 1 would only render the cube and scene 2 the sphere to a RenderTarget.

Would it be possible to use 2 SceneCapture2D in a scene at the same position, rendering only certain geometry (cube or sphere)?

Any help would be really appreciated. Thanks!!

Im not sure I fully understand the question, but scenecapture2D’s have an array you can fill with objects you want to hide. Look in the details for the SceneCapture2D!

226629-scene2d.jpg

Even though you haven’t fully understood it, your answer solves the problem perfectly.

Thank you very much:)