Let me start off by saying I am pretty new to shaders and Amplify Shader. I am trying to modify the XRay shader that comes with the examples in the Unity package. My goal is to make a shader that has the xray effect on objects that are behind other objects, but renders nothing if the object is not behind other objects. I have a non-Amplify shader that works like this, but I'm trying to get better at using Amplify, so I want to replicate this in my Amplify shader.
You'll have to set the Blend mode to Custom, Type and Queue to Transparent, in order to enable the Opacity port. Then proceed to remove the Outline node, connect its Color input to the Emission port and the Alpha to the Opacity port.
Make sure that the Blend RGB is set to Alpha Blend, and within the Depth tab set the ZWrite Mode to Off, ZTest Mode to Greater or Equal, and turn off the Extra Depth Pass.
Have you had the chance to rate and review Amplify Shader Editor? It would be awesome if you could share your experience with the Unity community, the Unity Asset Store thrives on user interaction and direct feedback. Every bit helps, your feedback is extremely valuable to us!
Feel free to get back in touch if you have any further questions, thanks!