Search Unity

Question Multiple master nodes - is it possible?

Discussion in 'Shader Graph' started by tomekkie2, Jul 24, 2019.

  1. tomekkie2

    tomekkie2

    Joined:
    Jul 6, 2012
    Posts:
    973
    Please help me with understanding: multiple master nodes - is it possible or does it make sense?
    If yes - then where to find examples and how to combine output?
     
  2. ph_

    ph_

    Joined:
    Sep 5, 2013
    Posts:
    232
    It's technically possible in the sense that you can actually create multiple master nodes in the same graph. However it isn't useful, as one will be picked and the others won't do anything.
     
    tomekkie2 likes this.
  3. tomekkie2

    tomekkie2

    Joined:
    Jul 6, 2012
    Posts:
    973
    Thank you.
    Defining the shader keywords in shader graphs is also not possible, right?
     
  4. ph_

    ph_

    Joined:
    Sep 5, 2013
    Posts:
    232
    No, not at the moment.
    Your best chance is to right clic on the master node "Copy generated shader", paste it in a shader file then edit it.
    But you lose the advantages of using ShaderGraph in the first place.
     
    tomekkie2 likes this.