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
+5 -1
View File
@@ -1,6 +1,10 @@
#version 330 core
out vec4 FragColor;
in vec2 texCoords;
uniform sampler2D aTexture;
void main() {
FragColor = vec4(240.f/255.f, 235.f/255.f, 227.f/255.f, 1.0);
FragColor = texture(aTexture, texCoords);
}