summaryrefslogtreecommitdiff
path: root/src/include
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/include
parentd38deeef3af2316a666f8fc0173940bd769b748e (diff)
Add modelPosition uniform
Diffstat (limited to 'src/include')
-rw-r--r--src/include/daw/rendering.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/include/daw/rendering.h b/src/include/daw/rendering.h
index 0da97f5..9f53f78 100644
--- a/src/include/daw/rendering.h
+++ b/src/include/daw/rendering.h
@@ -130,15 +130,11 @@ typedef struct {
}
typedef struct {
- /* Shader proram */
+ /* Shader program */
Shader shader;
/* Vertex Array Object */
u32 vao;
- /* MVP (a uniform from the shader).
- * This could also probably be generalized */
- i32 mvp;
-
// The texture ID, glBindTextures(target, &this->texture)
u32 texture;
@@ -147,6 +143,12 @@ typedef struct {
// The vertex buffer is also just a buffer
ShaderBuffer* buffer;
+
+ // Uniforms
+ /* MVP (a uniform for the shader).
+ * This could also probably be generalized */
+ i32 mvp;
+ i32 model_position;
} RenderObject;
typedef struct {