Hidden object rendering

I’m using the universal render pipeline to render an object with custom shader graph. I would like to render the parts which are occluded with a solid color, instead of my shader. Is there a way to do this?

To answer my own question - CREATE YOUR OWN RENDERER WITHOUT CODE in Unity! - YouTube