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 HDRP Decal shaders _Unity_Identify_HDRP_Decal

Discussion in '2023.1 Beta' started by DEEnvironment, Jan 30, 2023.

  1. DEEnvironment


    Dec 30, 2018
    within api 14.0.5 _Unity_Identify_HDRP_Decal works nice for custom decal shaders

    Code (CSharp):
    1. [HideInInspector]_Unity_Identify_HDRP_Decal("_Unity_Identify_HDRP_Decal", Float) = 1.0
    however, use this in api 15.0.3 2023.1.0b1 it produces rubbish runaway spamming errors.
    it looks like they fixed this in api 14.0.5 2022.2.4 but never got around to fixing in 15x yet ?

    this is important for any decal shaders to render / blend correctly.

    as this was working in 14x should it be filed as a bug or is it just still in process of coming soon ?
  2. SebLagarde


    Unity Technologies

    Dec 30, 2015
    Hi, this code with _Unity_Identify_HDRP_Decal haven't change since 2 years, and is working with all recent version for our decal shader. Could you provide more info on the repro step of your issue? And what kind of error do you get? thanks
  3. DEEnvironment


    Dec 30, 2018
    thank you for the reply
    i will post the errors later today
    i suspect the issue is within DecalSystem.cs

    Note that this is only an issue when we make a Custom written shader not Unity.
    when we use _Unity_Identify_HDRP_Decal it goes into a check with IsHDRenderPipelineDecal

    as it's a custom shader it spams the console with errors running away for missing m_material

    Note also that the new options for AffectsTransparency is hard coded to return only with == "HDRP/Decal"
    this also is a concern as we can never use it in any custom shaders
    Last edited: Feb 2, 2023