Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: GClements

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    229

    Here's a diagram to explain the coordinate...

    Here's a diagram to explain the coordinate system:
    2510

    If you want polylines with rounded or mitred joins, you have to calculate the distance along the edge of the stroke. If you just want caps,...
  2. Replies
    4
    Views
    229

    Add appropriate attributes to each vertex,...

    Add appropriate attributes to each vertex, containing "line space" coordinates. These will be interpolated during rasterisation, so the fragment shader knows the fragment's location relative to the...
  3. Replies
    4
    Views
    229

    Are you converting the lines to triangles (either...

    Are you converting the lines to triangles (either in client code or a geometry shader), or just using glLineWidth() to render thick lines?

    Either way, you need to set appropriate attributes. One...
Results 1 to 3 of 3