View Full Version : xz-plane Grid

03-22-2015, 10:47 AM
I need some guidance on how i should draw a grid in opengl . I am using programmable pipeline


Agent D
03-23-2015, 02:40 AM
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.

03-23-2015, 06:32 AM
Thanks. I made it.1688