I need some guidance on how i should draw a grid in opengl . I am using programmable pipeline
[ATTACH=CONFIG]952[/ATTACH]
I need some guidance on how i should draw a grid in opengl . I am using programmable pipeline
[ATTACH=CONFIG]952[/ATTACH]
Simple: Draw a bunch of lines. Similar to drawing triangles, except you use the GL_LINES mode instead of GL_TRIANGLES.
Use a simple vertex shader that only applies a transformation and a fragment shader that emits a constant color.
Thanks. I made it.[ATTACH=CONFIG]955[/ATTACH]