As the title suggest, I have a scenario where a plane, or more generally a mesh whose vertices can be higher/ low in y around the edge. I would like to place a cylinder across the plane such that the cylinder is made transparent when it’s vertices are above the intersection points of the other mesh.
I suppose it’s a bit like a boolean operation, except I need to be able to do this at runtime. Hence a shader. I followed a video where parts of a sphere are made transparent at, or around, the intersection of the other object. However, this is not the effect I want, I want the cylinder to be transparent, or cutout, above the parts where the intersection takes place.
is this achievable and if so how could I go about it?