Thanks!
The CUA also has a prefab with just the clipping surface so you can use it with other hats/ assets too if you want.
Also, the shader and the hat mesh are available here https://www.patreon.com/posts/ashen-leather-70946983
It's easy in this case, no stencil buffer is needed, there just...