Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Applying Post-Processing to a Single Object via URP Camera Stacking - Camera Render Order

Discussion in 'General Graphics' started by jf065d, May 9, 2023.

  1. jf065d

    jf065d

    Joined:
    May 28, 2018
    Posts:
    23
    Hi,
    I'm trying to apply post-processing to a single object on screen (fish eye lens effect to a background sprite). (If this is possible via a shader, I'm all ears).

    I created a second camera (specifically for this background sprite object), set Render Type to Overlay, and added it to my Base Camera's Stack. I then excluded the sprite object from the Base camera and excluded everything but the sprite object from the Overlay camera.

    It seems to be working with one exception: The overlay (as its name would imply) is rendering over the base camera. How can i reverse their order? (Am i simply stuck putting everything except the sprite object on the overlay camera? And when I do this, it seems the post-processing effect still impacts both cameras)

    Thank you
     
    Last edited: May 9, 2023