I have made an interactive Unlit shader with shader graph where you can drag stains of liquid to the center of the screen (att.1). I apply its material to 3D planes that I position in front of the camera.
I want to be able to render a specific object in the scene only when viewing it through one of the liquids. I have seen tutorials on clipping masks and stencil buffers but I'm unsure how can I output the mask for the liquid from inside the shader graph (att.2) and use this information for the stencil buffer / clipping mask.
If you know how I could achieve this effect or have another suggestion, please shoot me a message or respond to the thread. I feel pretty lost on how to proceed and it would help a ton. Thank you!