board grid lines

This commit is contained in:
2023-09-08 01:11:35 +02:00
parent 4d03b0d3ee
commit fe99a4c9ff
7 changed files with 86 additions and 2 deletions
+12
View File
@@ -0,0 +1,12 @@
#version 330 core
uniform mat4 transform;
vec3 gridPlane[6] = vec3[](
vec3(1, 1, 0), vec3(-1, -1, 0), vec3(-1, 1, 0),
vec3(-1, -1, 0), vec3(1, 1, 0), vec3(1, -1, 0)
);
void main() {
vec3 p = gridPlane[gl_VertexID].xyz;
gl_Position = vec4(p, 1.0f);
}