1. A concise explanation of the problem you're experiencing.
I'm trying to create a measuring tool. When you select 2 points on the map, a PolyLine is drawn between them, and a Billboard is spawned detailing the line.
Let's say there's a mountain (from a 3d tile) between the 2 points. To make sure that the line is visible as it travels through the mountain, I set the PolyLine's depthFailMaterial to the same as its normal material.
However, if there's a billboard between the 2 points, the line also cuts through the billboard. I don't want this to happen.
Is there a way to achieve this task? (the line will render through the 3d tile terrain, but not billboards).
I have attached a screenshot of the situation above (the distance text is from a billboard, not a label. I am willing to switch it to a label if required though).
Cesium 1.58 Chrome 75