Search Unity

Converting a shader to the high definition render pipeline

Discussion in 'Shaders' started by Noek1993, May 10, 2018.

  1. Noek1993

    Noek1993

    Joined:
    Jan 22, 2015
    Posts:
    25
    I have been looking into the new high definition render pipeline, but my current custom shaders have stopped working when I actived it.

    I have been looking for resources on how to update default render pipeline shaders to the high def render pipeline, but I couldn't find it anywhere. Are there any resources available on how to make custom shaders work again on the high def render pipleline?
     
  2. uani

    uani

    Joined:
    Sep 6, 2013
    Posts:
    232
    I have the same issue. Every material having a custom shader gets rendered in pink.
     
  3. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,025
    Hi!

    Code (CSharp):
    1. SubShader
    2.     {
    3.         Tags { "RenderType" = "Opaque" "RenderPipeline" = "LightweightPipeline" "IgnoreProjector" = "True"}
    Settin the "RenderPipeline" to whatever you're using to indicate that it's compatible with this pipeline is a good first step :)
     
    WagDan and uani like this.
  4. joaobsneto

    joaobsneto

    Joined:
    Dec 10, 2009
    Posts:
    152
    Using Eye Advanced, but setting the RenderPipeline to HDRenderPipeline does not work.
     
  5. Mucha505

    Mucha505

    Joined:
    Apr 19, 2015
    Posts:
    6
    Try to use
    "RenderPipeline" = "LWRP"
    instead of
    "RenderPipeline" = "LightweightPipeline"

    in

    Code (CSharp):
    1. SubShader
    2.     {
    3.         Tags { "RenderType" = "Opaque" "RenderPipeline" = "LWRP" "IgnoreProjector" = "True"}
    Worked for me.

    If you use High Definition Render Pipeline then replace LWRP with HDRP (didn't test this on high definition though)
     
    Last edited: Mar 27, 2019
    joaobsneto likes this.
  6. Tsilliev

    Tsilliev

    Joined:
    Jan 21, 2014
    Posts:
    35
    Where is this? Opening the pink custom shader with notepad?