How to use Scene Depth node in ShaderGraph ?

I’m trying to make a shader that can detect geometry intersection with other objects. I read a lot of solutions using shader code but I want to make it in ShaderGraph,

As far as I understand, you can achieve this effect by comparing each vertex with the depth buffer. Any more details or explanations is very appreciated.

Can it be done in ShaderGraph using the Scene Depth node?
Scene Depth node’s documentation

2 Likes

I am bringing this topic up because I am facing a few problems regarding this node. I do not know how to use it and most solutions found are with LWRP and anything HDRP related remains confusing.

According to documentation:

How can I activate the depth buffer in HDRP? I know that on LWRP you can simply check on the pipelineAsset but for HDRP I have not found the option. My camera is has Depth clear checked. I do not know what else to change.

Hi, a very noob question but what to do when the scene depth & scene color nodes are not found at all from the LWRP node library? (Using Unity 2018) Many thanks!