summaryrefslogtreecommitdiff
path: root/src/gl.c
diff options
context:
space:
mode:
authoronelin <oscar@nelin.dk>2025-11-10 14:08:40 +0000
committeronelin <oscar@nelin.dk>2025-11-10 23:13:05 +0000
commitf175d64cc00f9d08f8c02bcbf8287c3e21430611 (patch)
tree37fda1ecc2ed773040fa67c30428e670f74cba26 /src/gl.c
parentd38deeef3af2316a666f8fc0173940bd769b748e (diff)
Add modelPosition uniform
Diffstat (limited to 'src/gl.c')
-rw-r--r--src/gl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gl.c b/src/gl.c
index 9dce5e5..8283a3e 100644
--- a/src/gl.c
+++ b/src/gl.c
@@ -244,6 +244,7 @@ RenderObject RenderObject_new(
o.buffer = buffers;
o.buffer_len = num_buffers;
o.mvp = gl->GetUniformLocation(o.shader.program, "MVP");
+ o.model_position = gl->GetUniformLocation(o.shader.program, "modelPosition");
// It is very much a non-issue if we don't find the model view projection in
// the shader. In fact, it is removed from a shader program if it is not used.