Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Is there already option to extend shader graph options?

Discussion in '2021.2 Beta' started by Qriva, Jun 16, 2021.

  1. Qriva

    Qriva

    Joined:
    Jun 30, 2019
    Posts:
    1,315
    I tried to find the clear answer here and there, but I could not get it anywhere.
    I would like to be able to do custom light in shader graph in "correct" non hacky way.

    For example in Unity 2020 SSAO has been added, but there is no way to enforce rendering of normals for unlit graph. If I use Lit graph then I get a lot of redutant PBR code, while if I use Unlit graph then there is no way to implement some things like SSAO. Furthermore there are options like "Two Sided" or "Alpha Clip", they can be set but only for the whole graph. Is it possible to override graph settings and create shader variants with and without alpha clip (I guess the only way would be to "hack" in custom function and undefine some keyword)?