Low complexity shader to indicate the sides of a polyline
- by Pris
I have a bunch of polylines that I draw using GL_LINES. They can have thousands of points. They actually represent the separation of land and water on a map. I don't have complete polygons, just the ordered set of points.
I'm looking for a neat but efficient way to visually convey Side A and Side B as being different. For example I could offset…