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
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  3. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

[ShaderGraph] Custom master nodes/shader templates

Discussion in 'Graphics Experimental Previews' started by JohanF_TF, Jan 10, 2019.

  1. JohanF_TF

    JohanF_TF

    Joined:
    May 20, 2015
    Posts:
    75
    Hello!

    We're using LWRP in our project and the ShaderGraph fairly extensively

    I wanted to create my own override for the generated PBR shader the graph outputs. I've been digging around in the package but have yet to find the source for the generated shader. I can find where it is being generated, but can't manage to discern where the template used is coming from.

    Is it something that we can easily override on our end and create other master nodes which outputs custom shaders? In short I want to experiment with creating tessellating shaders from the graph, which I imagine should be possible if I could modify the output and include some basic extra programs
     
  2. JohanF_TF

    JohanF_TF

    Joined:
    May 20, 2015
    Posts:
    75
    Nevermind, I believe I just found what I was looking for.
    The subshader nodes and related templates are naturally in the LWRP package