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

[LWRP] Bug with Transparency Sorting or is Transparency Sorting not supported?

Discussion in 'General Graphics' started by foxnne, Apr 23, 2019.

  1. foxnne

    foxnne

    Joined:
    Apr 18, 2016
    Posts:
    59
    Hi,

    Apologies if I should have just skipped to submitting a bug report, but I just wanted to ask if this was a bug or if LWRP doesn't yet support it.

    I'm trying to sort quads like sprites. I would use sprites, but I'm using a custom shader and need to use quads to draw multi-layer sprites. All is working well except for sorting.

    It seems that transparency sorting is halfway working, but is incredibly unpredictable and seems to often stop working entirely, or flip its axis when objects are above Y = 0; (sorting using orthographic sorting axis).



    Is there anything I can do to resolve this? Ideally I would be able to sort by pivot, similar to the spriterenderer option.

    EDIT: The inconsistent behavior seems to have been fixed somewhat, I just wasn't up to date. After updating LWRP however, it still seems to be broken at times, especially in tandem with ECS entities.

    How can I ensure sorting between quads and sprites? It seems they are reversed of one another.

    Also, is it possible to sort quads by pivot(zero point) rather than center?
     
    Last edited: Apr 23, 2019