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. Dismiss Notice

Question Extending HDRP\LIT with/without Shader Graph. Shader gui problems.

Discussion in 'High Definition Render Pipeline' started by koirat, Mar 28, 2021.

  1. koirat

    koirat

    Joined:
    Jul 7, 2012
    Posts:
    2,009
    I just want to mix some of my color textures when using HDRP/LIT shader.

    At first I tried to use Shader Graph but replicating all the Lit material features is just not an option.

    Than I decided to find Lit.shader duplicate it and add my properties.

    Again the problem is that by default Lit shader GUI don't display additional properties.
    I can see my textures and color properties when I comment CustomEditor "Rendering.HighDefinition.LitGUI" in Lit.shader but than there is so many properties that it is not acceptable.

    I went to a drastic measures and started to copy the content of
    "\Library\PackageCache\com.unity.render-pipelines.high-definition@10.3.1\Editor\Material\Lit"
    But i got a lot of errors "not accessible because of protection level" kind of. (A lot of stuff there is internal).

    What to do, I'm actually very surprised this is not simpler.
    I can imagine a lot of people would like to extend Lit material that way.
     
  2. magehuntz

    magehuntz

    Joined:
    Mar 24, 2017
    Posts:
    23
    I too would like to know how to extend the HDRP/Lit shader directly. Sadly the documentation on writing hlsl shaders for HDRP is very underwhelming.