Search Unity

Transparency sorting and particles

Discussion in 'General Graphics' started by Poupi, Nov 16, 2017.

  1. Poupi

    Poupi

    Joined:
    Jan 11, 2012
    Posts:
    111
    Hi,

    I'm facing a very annoying issue when dealing with particles and transparency sorting. I have two effects, an alpha blended cloud and a swirl of particles that moves around the cloud. The swirl is one particle system using another alpha blended shader, meaning that the sorting between the two effects is F***ed : the swirl is either displayed in front or behind the cloud.

    This is the actual effect :

    Current.png

    And what I want to do :

    Ideal.png

    Anyone having an idea to do this ? Like some kind of masking rendered by a second camera. The scene is quite simple, so any kind of trick will probably work.

    Thanks in advance !
     
  2. ifurkend

    ifurkend

    Joined:
    Sep 4, 2012
    Posts:
    350
    No, you can't have two or more translucent objects (or particle systems) with intertwined depth sorted perfectly. This is a well-known issue. Your best solution is to change the material of that swirl to opaque