text instancing

This commit is contained in:
2023-12-11 23:00:31 +02:00
committed by Illusion
parent 3f4f9c5103
commit f71a9d742c
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);