Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 5 of 5

Thread: rasterization and fragment coordinates for lines

Threaded View

  1. #1
    Intern Newbie
    Join Date
    Jan 2013
    Posts
    46

    rasterization and fragment coordinates for lines

    Hi there,

    I've been reading a bit about using lines in openGL, but it's not quite clear to me yet how they work in the fragment shader. Specifically I don't understand how the 3d fragment coordinates (or other varying vars) are interpolated when the line has width > 1. A line only has 2 vertices, but basically a rectangular area is rasterized for lines with width > 1 (right?), so... how does the interpolation work then?
    Anyone knows how this is implemented?

    Thanks!
    Last edited by STTrife; 11-13-2013 at 02:08 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •