Search Unity

Merge two RenderTextures?

Discussion in 'General Graphics' started by ktest112233, Mar 10, 2020.

  1. ktest112233

    ktest112233

    Joined:
    Jan 7, 2019
    Posts:
    37
    Hi,

    I have 2 cameras with depth (-1 and 0)

    One of the camera renders its view to a render texture,

    The other camera renders one layer to the game view.

    My question, how can I merge view of both cameras on a single Render Texture, but making sure that the depth remains the same..

    I am trying to achieve this using Image effect shader, but seems like it doesn't caters the depth