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

Post Processing Stack + RenderTexture

Discussion in 'Image Effects' started by dgoyette, Feb 15, 2018.

  1. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,193
    I'm trying to render some UI elements via a second camera into a RenderTexture. The camera is configured as Depth Only and the material referencing the RenderTexture is a Standard Transparent material. This causes the icons to be shown against a transparent background. This works fine. Here is a cube with the close face having this material:

    upload_2018-2-15_16-0-54.png

    This generally works fine, until I try to add a Post Processing Profile to the second camera. At that point, pretty much regardless of which effect I enable (bloom, grain, etc), the background of the texture turns black:

    upload_2018-2-15_16-2-32.png

    So I'm wondering if it's even possible to apply post-processing effects to this UI camera, so that it acts only on the non-transparent portions of the camera's viewport.

    Thanks,

    -Dan
     
  2. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,193
    Ultimately I switched over to Post Processing Stack V2, and this doesn't seem to be an issue.