Search Unity

Particle Rendering order issue, how to fix (possibly a shader question)

Discussion in 'Editor & General Support' started by Velo222, Mar 13, 2019.

  1. Velo222

    Velo222

    Joined:
    Apr 29, 2012
    Posts:
    1,437
    I have a particle system asset (lightning bolt effect) that I purchased from the asset store awhile ago, but it always renders in front of my terrain in my game. I want it to render behind my terrain/landscape, or even more preferable would be for it to render in world space like it's actually a part of the world (i.e. if there are two hills and the lightning strikes behind a hill closest to the player, but in front of the hill farthest from the player, then it renders the lightning in the middle.

    How can I make a particle or shader do this? On my particle effect material I tried changing the render queue "From Shader" option to something really large.....and then to something really small, but neither of them worked. The lightning still always renders in front of my terrain/landscape.

    I'm not a shader/rendering person, so thanks for any help.