Idea for back face culling on lines

classic Classic list List threaded Threaded
1 message Options
JD JD
Reply | Threaded
Open this post in threaded view
|

Idea for back face culling on lines

Hi,

Everything is in the title!

I need to work with model layers in terrain-map mode and with depth-test deactivated.
The backface culling prevents from drawing the polygons when at the hidden side of the globe.
But i don't find a build-in solution for lines...

I don't want to make them polygonized lines as it will increase the number of vertices.

I think I can do it with a shader (result of the dot product from look vector and vertex can be used to know if the vertex is visible or not). I don't know if there is an easier way. I also wonder if the performance will not decrease with that shader (I have close to 150 000 points).

And, can I do something with the clipping plane?

Thank you for your help,
Jérôme.