Hello.
I want to draw some lines using GL.Vertex3, but I need to draw them in a for loop.
like this:
private void OnPostRender()
{
GL.PushMatrix();
// set the current material
lineMaterial.SetPass(0);
GL.Color(new Color(0, 0, 0, 0.4f));
GL.Begin(GL.LINES);
// horizontal
for (int i = 0; i < 10; i++)
{
GL.Vertex3(-10, 0.01f, i * 2 - 10);
}
GL.End();
GL.PopMatrix();
}
But when I try to do it like this, no lines are drawn at all. Is it possible to do this in another way?