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. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question HDRP Decal shaders _Unity_Identify_HDRP_Decal

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

  1. DEEnvironment

    DEEnvironment

    Joined:
    Dec 30, 2018
    Posts:
    437
    Hi
    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

    SebLagarde

    Unity Technologies

    Joined:
    Dec 30, 2015
    Posts:
    934
    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

    DEEnvironment

    Joined:
    Dec 30, 2018
    Posts:
    437
    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 shader.name == "HDRP/Decal"
    this also is a concern as we can never use it in any custom shaders
     
    Last edited: Feb 2, 2023