Search Unity

Linerenderer line is not smooth

Discussion in 'General Graphics' started by BboyJaywalker, Jan 14, 2015.

  1. BboyJaywalker

    BboyJaywalker

    Joined:
    Sep 16, 2014
    Posts:
    3
    Hello, i have an issue with the linerenderer

    I want a smooth line, is there a way to solve this problem?
     

    Attached Files:

  2. imaginaryhuman

    imaginaryhuman

    Joined:
    Mar 21, 2010
    Posts:
    5,834
    The line renderer is basically a strip of triangles. If you think about how a strip of triangles is set up in the vertex data, one vertex is defined from one side of the line, the another on the other side at an offset. It works fine when the whole line is straight. but with a very sharp, and very small turn of angles like you have, it shows up as jaggedness because there aren't enough vertices to represent the sharp corner you've created. If you segment your line more and at a gradual curve around the corners, it should look better?