What is the best way to "merge" two render passes into the device patch?

Hi there!
What is the best way to “merge” two shader render passes into the device patch?
I tried the add patch, and it kind of was working, but there is a bug when the color of the shader render pass passes over the 3D object (it’s possivel to see through the object).

You could try adding a clamp (0,1) to make sure the colors stay in that range. You can get weird stuff happening like this when you have negative color values. Using a render pass (unsigned int) should do the same thing as clamp, but it might work better. Try both and see what happens.

Hi! Thanks a lot for answering!
In the end, instead of just joining the render passes at the end, I changed the beginning, connecting the render pass (with the camera texture and the 3D object) in the colored animated shader instead of connecting just the camera texture, which was the that I had done before.

1 Like