How to hide lines behind the globe?

Recently I managed to draw lines on the Cesium Globe using webgl directly. It was confusing that the lines always showed when the globe rotated. I’ve enabled depth_test. Is anybody familiar with this issue?

I’ve found the reason. At the end of the render loop, it calls clear(depth_buffer_bit). Now I’m trying to replace my code in the render loop other than after widget.render() call.

在 2015年4月22日星期三 UTC+8上午10:14:36,詹昌文写道: