I'm learning OpenGL and I'm a bit confused about setting vertex data position.
For instance, I want to draw a rectangle size 300mm x 300mm, as I understand, I can assume 1 OpenGL unit = 1 mm and then I set the vertex data like this:
data = [-0.5, 0.5, # top left
-0.5, -0.5, # bottom left
0.5, 0.5, # top right
0.5, -0.5] # bottom right
So the rectangle size is 1 OpenGL unit or 1mm( if I'm not wrong), and then scale it up by 300 using model matrix.
Or I could set it like this:
data = [ 0.0, 300.0, # top left
0.0, 0.0, # bottom left
300.0, 300.0, # top right
300.0, 0.0] # bottom right
the rectangle size will be 300 OpenGL unit or 300mm.
I don't know which approach is the correct one.
Could you guy please point me to the right direction.
Thanks