Blend Intersecting Objects

Hi there!

I’m using a large box mesh as a kind of force field to let players know where the end of the area is. When they get close, they start to see this misty wall appear rising from the ground. The box mesh cuts right through all the terrain and objects in the world.

My objective is to have this box fade it’s texture wherever it intersects another object so we never see this kind of clipping that is present in my screenshot. I believe this could be done with some kind of shader but I’m not entirely sure how.

Unity has a similar feature with it’s soft particles but I’m wondering if the same effect can be achieved with a mesh intersecting terrain.

Thank you!

You can just use a particle shader for your material.