Alpha To Coverage (URP Shadergraph) ?

Can’t seem to get Alpha To Coverage working with URP. It’s an essential feature for mobile and console VR… please advise :slight_smile:

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.

hrmm in built in this was only supported with custom shaders right? It seems like this is a feature request for shader graph right?

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! :slight_smile:

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

Edited topic as you’re right it seems to be not available via shader graph :frowning:

i’ve messaged the shader graph team :slight_smile:

Thanks a lot :slight_smile:

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”

Any update for shader graph?

Any update on this? This feature is really needed in VR rendering

Hiya! Any updates regarding ATOC?

Any update on Alpha To Coverage?

This would be crucial for VR development! Any updates?

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.

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

Is it possible to use it with URP’s unlit shader tho?

I believe this should also be auto-enabled by default for URP unlit shadergraphs (at least as of Unity 6)