Search Unity

Post-Processing effects rendering behind objects.

Discussion in 'Image Effects' started by surajsirohi1008, Jun 23, 2019.

  1. surajsirohi1008

    surajsirohi1008

    Joined:
    Jun 21, 2016
    Posts:
    267
    There are 2 sprites in the scene (red squares), I'm using bloom effect but it's visible behind the square in the front.

    I have 2 cameras, each camera renders a different layer.
    The second camera has the Post Processing Layer component.

    The layer configuration is such that only the square at the back is affected by post processing.

    When I reverse the Depths of the 2 cameras, to make the blooming square render in front of the normal square everything in the scene gets affected by the post processing too, although they are in separate layer.

    Is there a way to render sprites being affected by post processing stack in front of the sprite which are not being affected?

    1.PNG

    2.PNG
     
  2. petersvp

    petersvp

    Joined:
    Dec 20, 2013
    Posts:
    63
    Change layer of the sprite itself