How to hide a polyline when it is hidden behind the terrain?

Hi, all, How to hide a polyline when it is hidden behind the terrain? I find the polyline will always float on the terrain. It is very strange.

Thanks in advance!
Ewin

在 2016年4月27日星期三 UTC+8上午12:47:48,vick...@gmail.com写道:

Hi, all, How to hide a polyline when it is hidden behind the terrain? I find the polyline will always float on the terrain. It is very strange.

Thanks in advance!
Ewin

Sorry all, I find the answer:
viewer.scene.globe.depthTestAgainstTerrain = true;

Thanks!