square board and properly fit inside window

This commit is contained in:
2023-09-04 01:57:39 +03:00
parent 2023497beb
commit 4d03b0d3ee
7 changed files with 49 additions and 11 deletions
+3 -1
View File
@@ -1,6 +1,8 @@
#version 330 core
layout (location = 0) in vec3 aPos;
uniform mat4 transform;
void main() {
gl_Position = vec4(aPos.x, aPos.y, aPos.z, 1.0);
gl_Position = transform * vec4(aPos, 1.0f);
}