diff options
| author | onelin <oscar@nelin.dk> | 2025-03-26 08:58:58 +0000 |
|---|---|---|
| committer | onelin <oscar@nelin.dk> | 2025-03-26 08:58:58 +0000 |
| commit | e9ed9cfd7fdbc423385f0254fcc73443581cd777 (patch) | |
| tree | beecf02a4fda193e597a0687bcb288bfdb793920 /src/rendering | |
| parent | 89de2acc78c5fb7046058e4335bd27494aee25fe (diff) | |
Extend comment on shader uniforms
Diffstat (limited to 'src/rendering')
| -rw-r--r-- | src/rendering/src/gl.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/rendering/src/gl.c b/src/rendering/src/gl.c index e57e949..92599d7 100644 --- a/src/rendering/src/gl.c +++ b/src/rendering/src/gl.c @@ -247,8 +247,16 @@ RenderObject RenderObject_new( // 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. - // TODO: Add more uniforms, such as mouse coords and time. Could be cool idk. - //if (o.mvp == -1) { + // TODO: Add common uniforms, should be a list of strings (uniform name) & + // their locations (i32), such as + // * mouse coords, + // * time, + // * delta time, + // * modelviewprojection, + // * window size. + // These should be added to the RenderObject, if found. + + // if (o.mvp == -1) { // WARN("Unable to find \"MVP\" input in shader program"); //} |
