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

Does anyone know what dictates the draw call order of the Depth Pass?

Discussion in 'Image Effects' started by Patrascu, Jul 2, 2018.

  1. Patrascu

    Patrascu

    Joined:
    Jan 20, 2016
    Posts:
    59
    I'm using the Frame Debugger, and I've noticed that when objects are rendered using the MeshRenderer, the draw call in the depth pass if from front to back. However, when using the SpriteRenderer with a shader which contains a ShadowPass and has a Geometry render queue, the order in which the draw calls occur is quite random.