simplify shader grid drawing and add option to use a texture for the grid

This commit is contained in:
2023-09-08 16:38:14 +02:00
parent 978f60d762
commit 27d6853e3e
11 changed files with 8109 additions and 62 deletions
+3
View File
@@ -1,8 +1,11 @@
#version 330 core
layout (location = 0) in vec3 aPos;
layout (location = 1) in vec2 aTexCoords;
out vec2 texCoords;
uniform mat4 transform;
void main() {
gl_Position = transform * vec4(aPos, 1.0f);
texCoords = aTexCoords;
}