Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question HDRP decal emission ,how to alpha cutoff

Discussion in 'High Definition Render Pipeline' started by Wayne-wyj1994, Dec 24, 2020.

  1. Wayne-wyj1994

    Wayne-wyj1994

    Joined:
    Nov 13, 2019
    Posts:
    30
    I use 2019.4.10f,HDRP 7.3.1,and this is a simple decal projector.
    upload_2020-12-24_21-33-53.png
    It obviously has alpha channer,but when I check Emissive of decal materail,and set this texture as emission map.There is color where alpha is 0.
    upload_2020-12-24_21-35-24.png


    upload_2020-12-24_21-35-16.png

    upload_2020-12-24_21-37-52.png
    upload_2020-12-24_21-39-4.png

    I only want to get emissive for where alpha value is more than 0.How could I do it?
     
    Michal_Stangel and eelight like this.
  2. Michal_Stangel

    Michal_Stangel

    Joined:
    Apr 17, 2017
    Posts:
    151
    Hello,
    I have same problem. My spell indicator (also circle) is almost invisible if surrounding is dark. It seems that emission could solve it, but it ignores alpha, which makes it unusable.

    Did you manage to find some solution?
     
  3. M4dR0b

    M4dR0b

    Joined:
    Feb 1, 2019
    Posts:
    108
    Y-Hello there,

    to mask an area you should use a black & white texture, where black is notEmissive and white is fullEmissive.

    Screenshot 2021-05-11 122137.png
     
    NickJVaccaro and ddongplayer like this.
  4. Michal_Stangel

    Michal_Stangel

    Joined:
    Apr 17, 2017
    Posts:
    151