Search Unity

Bug The emissive component of an HDRP decal projector does not affect terrain

Discussion in 'High Definition Render Pipeline' started by mgeorgedeveloper, Dec 13, 2022.

  1. mgeorgedeveloper

    mgeorgedeveloper

    Joined:
    Jul 10, 2012
    Posts:
    326
    Setup as follows:

    - Default cube to receive the decal projection.
    - Standard HDRP terrain to receive the decal projection.
    - Simple decal shader with base color and emissive outputs.

    As you can see in the screenshot, the emissive element of the decal projector correctly highlights the cube, but not the HDRP terrain.

    (Core problem: we need to do some "unlit" area-of-effect projections on terrain that looks the same no matter if it's night, day or whatever angle the sun is coming from. This will require the terrain not to ignore the emissive element of the decal projector.)

    Any idea? Thanks!

    HDRP-decal-no-emissive-on-terrain.png
     
    nehvaleem and Novack like this.
  2. nehvaleem

    nehvaleem

    Joined:
    Dec 13, 2012
    Posts:
    437
    Hah! I have just submitted this as a bug report. Could you try to disable either Decal Layers or Light Layers from your HDRP Asset and post the results here?
     
  3. mgeorgedeveloper

    mgeorgedeveloper

    Joined:
    Jul 10, 2012
    Posts:
    326
    Well well well... the result is with Decal Layers disabled in the HDRP Asset, the terrain suddenly receives emissive from the decal projector.

    Do you mind dropping your bug report link here somewhere? Or possibly let me know if/when the official bug page goes up (which is different from the initial report page).
     
  4. nehvaleem

    nehvaleem

    Joined:
    Dec 13, 2012
    Posts:
    437
    That's what I thought. This is the same case as mine - disabling either decal or light layers feature in HDRP will result in correct emission rendering from projected decal onto the terrain.

    Sure, I'll post it here when it will reach the issuetracker. Right now I have only the confirmation email with that internal id.
     
    Novack likes this.
  5. nehvaleem

    nehvaleem

    Joined:
    Dec 13, 2012
    Posts:
    437