Search Unity

Render VFX particles according to the coordinates of the Z-axis.

Discussion in 'Visual Effect Graph' started by komiya_unity, May 18, 2022.

  1. komiya_unity

    komiya_unity

    Joined:
    May 17, 2022
    Posts:
    3
    I am using an automatic translation, so I apologize if some parts are difficult to understand.

    I created a VFXGraph that draws a large amount of grass at once, and a VFXGraph of the flames when that grass is burned, both with nearly identical content.

    Both grass and flame particles are generated from the same coordinates, but when the flame is generated, it is always drawn in front of all the grass.
    How can I make the grass in front of the flame appear above the flame?

    - Grass
    grass_vfxgraph_1.png

    grass_vfxgraph_2.png

    - Flame
    flame_vfxgraph_1.png

    flame_vfxgraph_2.png