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
+4
View File
@@ -86,3 +86,7 @@ void set_mat4(Shader shader, const char *name, float *mat4) {
glUniformMatrix4fv(loc, 1, GL_FALSE, mat4);
}
void set_float(Shader shader, const char *name, float val) {
int loc = glGetUniformLocation(shader.program, name);
glUniform1f(loc, val);
}