Compatible Class for "Renderer" in Unity

Hi, I am trying to find a way to render only the front face of the mesh and the back face of the mesh. Then, I basically led to the custom shader (depth) as a plugin with Sceneviewextension and the camera component. Is there anyway I could approach to that?