xz-plane Grid

I need some guidance on how i should draw a grid in opengl . I am using programmable pipeline


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]