Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more..
    Dismiss Notice
  3. Dismiss Notice

Question Gaussian Depth of Field always blurs Transparents

Discussion in 'Universal Render Pipeline' started by David-Flook, Feb 11, 2021.

  1. David-Flook

    David-Flook

    Joined:
    Nov 13, 2013
    Posts:
    47
    It seems like when I use the Gaussian mode in the Depth of Field post-process, it always blurs objects rendered with transparency such as particles. So basically all my particle systems are blurry even when they're positioned between the camera and the Start value. Is this just the reality of the situation or is there a way to fix this? Thanks.
     
  2. o-san

    o-san

    Joined:
    Jun 23, 2018
    Posts:
    32
    I think the Depth of field post process effect relies on the z-buffer having data for the pixels that should be blurred. Transparent pixels is not rendered to the z-buffer and will instead be sampled by the pixels behind the transparency.

    If it is okay to have no depth of field on the particle system you could render them using a second camera that has disabled post processing and stack it on top of your base camera.
     
  3. David-Flook

    David-Flook

    Joined:
    Nov 13, 2013
    Posts:
    47
    I appreciate the explanation. It makes sense now. Thanks.