Search Unity

Question [Emission] Decal emission diffusing in tree mesh

Discussion in 'High Definition Render Pipeline' started by sergio93, Apr 10, 2023.

  1. sergio93

    sergio93

    Joined:
    Aug 28, 2020
    Posts:
    52
    Hello,

    I am having an issue with a decal projector in my project. It is a decal of a texture that has some emission. Usually it looks like this:

    upload_2023-4-10_14-29-35.png

    But if I move the camera so that the tree needles are in between this effect occurs:

    upload_2023-4-10_14-29-13.png

    It seems that the needles diffuse the emited light even though that part of the decal is not emitting, which result in sort of a square.

    Can anyone think of a way to solve this? Maybe there is a setting somewhere that disables whatever is causing this?

    Cheers!
     
  2. sergio93

    sergio93

    Joined:
    Aug 28, 2020
    Posts:
    52
    Any ideas?
     
  3. sergio93

    sergio93

    Joined:
    Aug 28, 2020
    Posts:
    52
    It seems the issue is actually in the decal shader that I made with ShaderGraph. I guess the mask is not working properly and the needles of the tree pick up emission from parts that should be masked out.

    If I use the default Decal shader it looks as expected.