Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. 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
  3. Dismiss Notice

Custom Shader

Discussion in 'High Definition Render Pipeline' started by MathewHI, Jul 19, 2021.

  1. MathewHI

    MathewHI

    Joined:
    Mar 29, 2016
    Posts:
    509
    Can a custom shader be converted to HDRP? I bought a model and was using it but recently upgraded to HDRP and when I convert the material its just dull gray. I'm guessing this custom shader they used won't covert? How do I know when I buy a model or asset if its going to work in HDRP?
     
  2. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,988
    Not really, at least not easily.
    Assume they won’t work unless they are explicitly mentioned by the asset description.
     
  3. MathewHI

    MathewHI

    Joined:
    Mar 29, 2016
    Posts:
    509
    Let me ask you this then. I like this model and I can't really find a good replacement. Would it be possible to leave this model in its current shader but use HDRP with everything else? Or would that not look good?
     
  4. merpheus

    merpheus

    Joined:
    Mar 5, 2013
    Posts:
    203
    No, the current shader would not work. It is most likely made for the Legacy pipeline, which shaders are not compatible with HDRP. You can either try to re-write the shader, use HDRP's own Lit shaders or hire someone to port the asset's shader to HDRP.
     
  5. MathewHI

    MathewHI

    Joined:
    Mar 29, 2016
    Posts:
    509
    The shader is named
    Shader Forge/Character, I tried to manually convert one and it worked but some other ones just turn solid gray with no colors.