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.

Is there already option to extend shader graph options?

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

  1. Qriva


    Jun 30, 2019
    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)?