Search Unity

Question Feature switching

Discussion in 'Shader Graph' started by jRocket, Jul 4, 2019.

  1. jRocket

    jRocket

    Joined:
    Jul 12, 2012
    Posts:
    700
    For scalabiity purposes, is there a way to turn specific branches on or off based an input? For example Parallax Occlusion Mapping can be very expensive, so it should only be used if the user has their graphics settings on high. The normal branch node executes both branches, so it cannot be used for that purpose.

    Of course I could just make two different graphs and materials and switch them out, but that is more work.