depthTestAgainstTerrain=true places billboards, polylines and other elements bellow the ellipsoid

I was working on the feature to calculate distance between objects in the air and on the ground. I figured out that to do that I need to use scene.pickPosition() and it works properly with scene.globe.depthTestAgainstTerrain = true.
Now the distance picker works well but the billboards on the surface go under the ground. Is there a way to fix that and possible way to fix all at once.

Here is an example

You can add the property disableDepthTestDistance: Number.POSITIVE_INFINITY to the specific billboards that you want to disable depth test for.


So I solved it by using

verticalOrigin: BOTTOM