now I use ray casting algorithm do volume rendering.And I need draw a object(some lines) in fixed pipeline.I hope the lines can display correct.like the follow image
Click image for larger version. 

Name:	QQ截图20150509131252.jpg 
Views:	158 
Size:	9.7 KB 
ID:	1807
.It seems I need calculate depth value in fragment shader,any one can tell me how to do it?thanks