dwmkerr / sharpgl

Use OpenGL in .NET applications. SharpGL wraps all modern OpenGL features and offers a powerful scene graph to aid development.
MIT License
755 stars 299 forks source link

GL_LINES #101

Closed randeye closed 9 years ago

randeye commented 9 years ago

I'm new to SharpGL and trying to learn how things work. I'm trying to simply draw a line using two Vertex points and GL_LINES. I'm seeing my line but it is very faint. I tried setting the color and also implementing a basic light (GL_LIGHT0) but nothing makes the line brighter. Can someone tell me how to brighten the line or have some code I could look at? Thanks

randeye commented 9 years ago

I knew I'd find the answer minutes after posting. I had GL_TEXTURE_2D enabled. Disabling it made the line bright :)

bitzhuwei commented 9 years ago

You can close this issue as you found the answer.