diff options
| author | onelin <oscar@nelin.dk> | 2025-11-10 14:08:40 +0000 |
|---|---|---|
| committer | onelin <oscar@nelin.dk> | 2025-11-10 23:13:05 +0000 |
| commit | f175d64cc00f9d08f8c02bcbf8287c3e21430611 (patch) | |
| tree | 37fda1ecc2ed773040fa67c30428e670f74cba26 /src/gl.c | |
| parent | d38deeef3af2316a666f8fc0173940bd769b748e (diff) | |
Add modelPosition uniform
Diffstat (limited to 'src/gl.c')
| -rw-r--r-- | src/gl.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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. |
