I can't figure out how to get the clear coat working with HDRP Lit and StackLit shader graphs

I want to be able to add clear coats to some materials. From what I’ve read, I should be able to create an HDRP Lit shader, then add a block node to the shader for Clear Coat mask. I’ve tried doing that for both Lit and StackLit shader graphs with no result. The block is greyed out. I tried setting the clearcoat value to 1, but no result is seen when the shader compiles. I’ve tried adding a white input as a mask, or a float value of 1, again with no results. How am I supposed to add a clear coat to a material using the HDRP render pipeline?

I’m using build 2021.3.7

All the videos I can find on this are out of date, and the documentation doesn’t reflect reality. Any suggestions?

Hey, my guess is you did not enable “Coat” option in StackLit or “Clear Coat” option in “Lit” material target. Coat Mask block will remain grayed out without these toggles on. Navigate to top right corner of your Shadergraph window and make sure “Graph Inspector” is enabled, then in Graph Inspector → Graph Settings → Surface Options enable either Coat or Clear Coat and with the Coat Mask value of 1 you should see the result now.


8435477--1117325--Unity_N3WKirBI7r.gif

Thank you very much Tomas. That worked instantly. And to think I farted around with this for hours…

Thanks again for your help. It’s most appreciated.

1 Like