Unity AR blend virtual world to real world

Hi, I want to ask a question but I don’t know my topic is right or I don’t know if you can get my problem from my explanation but I will try.

Here is the problem, my AR app add real world an object and I mask the object I put in the real world using a Stencil Buffer. I want to add transparency to the upper parts view of the object so that it merges smoothly with the real world.
9809619--1408800--upload_2024-5-2_12-39-29.png
like this image. I want to add transparency to some edges view of the object.
Object is 3D and I am using stencil buffer to mask it.

This should be achievable with a custom shader. But we can’t help you with writing shaders in the AR forum – that’s more of a Graphics question.

Thank you for your answer. I changed the tags and updated my question.