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.

Feature Request Alpha To Coverage (URP Shadergraph) ?

Discussion in 'Universal Render Pipeline' started by hippocoder, May 7, 2020.

  1. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Can't seem to get Alpha To Coverage working with URP. It's an essential feature for mobile and console VR... please advise :)

    Otherwise hair/grass looks really bad and is far more expensive given alternative approaches. Please show me where to look to enable working with this in SG/URP.
     
    GridWanderer likes this.
  2. Tim-C

    Tim-C

    Unity Technologies

    Joined:
    Feb 6, 2010
    Posts:
    2,165
    hrmm in built in this was only supported with custom shaders right? It seems like this is a feature request for shader graph right?
     
    hippocoder likes this.
  3. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    I'm not sure I wasn't able to get it working, did some searches and found it seems to be either bugged or just not there. I think it's a problem for hair/vegetation shaders and a big omission for URP I think.

    Please add! :)

    (Not sure about custom but we do 90% of our work in SG where possible... can it be achieved via custom function node?)
     
  4. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Edited topic as you're right it seems to be not available via shader graph :(
     
  5. Tim-C

    Tim-C

    Unity Technologies

    Joined:
    Feb 6, 2010
    Posts:
    2,165
    i've messaged the shader graph team :)
     
  6. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Thanks a lot :)
     
  7. ohunity

    ohunity

    Joined:
    Jan 19, 2014
    Posts:
    636
    I had this working in the editor but couldn’t get it working on iOS Metal.

    I don’t use Shader Graph but with Amplify You just need to manually add this into your shader code.
    “AlphaToMask On”
     
    fuzzy3d and hippocoder like this.
  8. D3m0n

    D3m0n

    Joined:
    Nov 11, 2014
    Posts:
    141
    Any update for shader graph?
     
  9. josefgrunig

    josefgrunig

    Joined:
    Jan 23, 2017
    Posts:
    36
    Any update on this? This feature is really needed in VR rendering
     
    AugustinDarreHVR and tspk91 like this.
  10. bonickhausen

    bonickhausen

    Joined:
    Jan 20, 2014
    Posts:
    95
    Hiya! Any updates regarding ATOC?
     
  11. tspk91

    tspk91

    Joined:
    Nov 19, 2014
    Posts:
    129
    Any update on Alpha To Coverage?
     
    D3m0n likes this.
  12. Maranara

    Maranara

    Joined:
    May 30, 2020
    Posts:
    3
    This would be crucial for VR development! Any updates?
     
    tspk91, D3m0n and pierre92nicot like this.
  13. D3m0n

    D3m0n

    Joined:
    Nov 11, 2014
    Posts:
    141
    Considering the post was born in 2020... As always the unity team is extremely responsive. What should we do with technologies like nanite etc, that here we are still in 2022 asking for an ATOC shader... Quite shameful.
     
  14. wwWwwwW1

    wwWwwwW1

    Joined:
    Oct 31, 2021
    Posts:
    290
    Hi, this was added to URP 14.0.2 (See CHANGELOG.md 2021-02-04).

    You can try upgrading the project (with backup) to Unity 2022.2 and all shader graphs should automatically support it.

    For custom shaders, you can refer to URP's Lit shader.
    • Add Alpha-To-Coverage mask
    • Clip fragments according to modified alpha
     
    fuzzy3d likes this.