Why the clip space in OpenGL has 4 dimensions?
- by user827992
I will use this as a generic reference, but the more i browser online docs and books, the less i understand about this.
const float vertexPositions[] = {
0.75f, 0.75f, 0.0f, 1.0f,
0.75f, -0.75f, 0.0f, 1.0f,
-0.75f, -0.75f, 0.0f, 1.0f,
};
in this online book there is an example about how to draw the first and classic hello world for…