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

Particles in the back render over objects in the front

Discussion in 'Visual Effect Graph' started by Clamoxyl, Jun 21, 2021.

  1. Clamoxyl

    Clamoxyl

    Joined:
    Mar 4, 2015
    Posts:
    4
    I have created a fog field that reacts to the player when he goes through it. The effect works right, but the particles behind the player are rendered in front of him.
    Any ideas of what I'm doing wrong?
    I'm using Unity 2020.3.10f1 and URP, btw.


    In the screenshots you can see that there are no particles in front of the square, but the camera renders them in front.

    [EDIT] I recorded this gif, I think it clarifies what I mean.



    https://i.postimg.cc/dQCNgFyC/particles-Wrong-Depth.gif
     
    Last edited: Jun 21, 2021
  2. Marie_G

    Marie_G

    Unity Technologies

    Joined:
    Mar 9, 2021
    Posts:
    69
    Hello, could you share your VFX graph so we can try solve your issue?