text instancing

This commit is contained in:
2023-11-24 23:21:08 +02:00
parent 11bca0e5a4
commit 638c67a99e
10 changed files with 197 additions and 77 deletions
+5
View File
@@ -87,6 +87,11 @@ void set_float(Shader shader, const char *name, float val) {
glUniform1f(loc, val);
}
void set_vec2f(Shader shader, const char *name, float val1, float val2) {
int loc = glGetUniformLocation(shader.program, name);
glUniform2f(loc, val1, val2);
}
void set_vec3f(Shader shader, const char *name, float val1, float val2, float val3) {
int loc = glGetUniformLocation(shader.program, name);
glUniform3f(loc, val1, val2, val3);