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.

Question How to render VFX Graph behind everything else in the scene?

Discussion in 'Visual Effect Graph' started by Mortichar, May 26, 2022.

  1. Mortichar

    Mortichar

    Joined:
    Mar 30, 2017
    Posts:
    19
    I'm attempting to create a particle system for a sphere of stars, similar to the one found in this tutorial here:


    The main difference is that I'm using VFX Graph instead of a simple particle system. I'm outputting quads with a custom transparent unlit shader graph.

    In the tutorial, to get the stars to render behind everything else, he gets the ParticleSystemRenderer and sets the renderQueue of the sharedMaterial to RenderQueue.Background (at around 4:35). What's the analog for VFX Graph? Simply put, how do I make a VFX graph render before (and thus behind) everything else?
     
unityunity