Search Unity

Feature Request UI master node

Discussion in 'Shader Graph' started by Epsilon_Delta, Sep 23, 2020.

  1. Epsilon_Delta

    Epsilon_Delta

    Joined:
    Mar 14, 2018
    Posts:
    258
    Hello,

    when I want to create shader in Shader Graph that works in Canvas, I use Sprite master node, generate code and then replace "ZTest LEqual" with "ZTest [unity_GUIZTestMode]".
    It would be nice to have UI master node that solves this. Or did I miss something?

    Btw, interestingly, when I use Sprite unlit master for canvases (with unmodified ZTest), there is a discrepancy in behaviour inside editor and in built .apk. In editor everything's ok, but in the android app, there is sometimes a ZFight and UI element with my custom shader is not rendered at all. (I probably can replicate it and create bug report if requested).

    Thanks for the reply and thanks for all the good work on Shader Graph!
     
    Last edited: Sep 23, 2020