Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Draw a simple line (shader or openGL)

Discussion in 'Scripting' started by Dazzid, May 28, 2015.

  1. Dazzid

    Dazzid

    Joined:
    Apr 15, 2014
    Posts:
    61
    Hi,
    What is the best way to draw a simple line in Unity 5, using shaders or OpenGL?
    Why is so so difficult to find this answer? Is there any tutorial on how to use openGL in Unity?
    Thanks for the help
    David
     
  2. LeftyRighty

    LeftyRighty

    Joined:
    Nov 2, 2012
    Posts:
    5,148
  3. Dazzid

    Dazzid

    Joined:
    Apr 15, 2014
    Posts:
    61
    LineRenderer is exactly what I need to avoid.
     
  4. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,350
  5. LeftyRighty

    LeftyRighty

    Joined:
    Nov 2, 2012
    Posts:
    5,148
    two suggestions... and you only read one. Awesome
     
  6. rajanerve

    rajanerve

    Joined:
    Nov 17, 2017
    Posts:
    17
    using GL calls ...........my frame rate is dropping
     
  7. Rotary-Heart

    Rotary-Heart

    Joined:
    Dec 18, 2012
    Posts:
    813
    codestage likes this.
  8. rajanerve

    rajanerve

    Joined:
    Nov 17, 2017
    Posts:
    17