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.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Access to Active Target Properties in ShaderGraph

Discussion in 'Shader Graph' started by Deleted User, Jul 3, 2021.

  1. Deleted User

    Deleted User

    Guest

    I would like my shader to be able work with both one or two sided textures. Is it possible to access the settings exposed in the ShaderGraph by the "Universal" renderer in the Graph Inspector's Graph Settings tab called "Two Sided"?

    I though predefined keywords might be the answer. But I've tried to guess at various "Keyword" properties using the "Predefined" Definition option. I could not find much help on what those possible Predefines might be.

    Right now I create and ship two separate shaders; one with the option on and another with it off. It would be best to expose the option on the Material Inspector by allowing setting it in the ShaderGraph from a Boolean Property Input node.
     
  2. Glitshy

    Glitshy

    Joined:
    May 26, 2018
    Posts:
    15
    I've been looking into a similar issue as well. I'd like to be able to change between specular and metallic workflow similar to the default lit shaders but can't find anything online.