diff options
author | davidovski <david@sendula.com> | 2021-05-19 22:53:15 +0100 |
---|---|---|
committer | davidovski <david@sendula.com> | 2021-05-19 22:53:15 +0100 |
commit | 6507f80a3d998ccccb30e5d7f25c5b091e0b63a9 (patch) | |
tree | 0b4e31e341cb889d73ac67c828d605cbb4602aec | |
parent | 6a47da4a1e7b3559def39e06bd6be1700d35c53f (diff) |
changed uniforms to use shader_
-rw-r--r-- | brotshader.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/brotshader.c b/brotshader.c index d0fd96b..27df33a 100644 --- a/brotshader.c +++ b/brotshader.c @@ -23,10 +23,10 @@ int main() { float screen[2] = {(float)width, (float)height}; - SetShaderValue(shader, resolutionLoc, screen, UNIFORM_VEC2); - SetShaderValue(shader, locationLoc, &offset, UNIFORM_VEC2); - SetShaderValue(shader, zoomLoc, &zoom, UNIFORM_FLOAT); - SetShaderValue(shader, maxLoc, &max, UNIFORM_INT); + SetShaderValue(shader, resolutionLoc, screen, SHADER_UNIFORM_VEC2); + SetShaderValue(shader, locationLoc, &offset, SHADER_UNIFORM_VEC2); + SetShaderValue(shader, zoomLoc, &zoom, SHADER_UNIFORM_FLOAT); + SetShaderValue(shader, maxLoc, &max, SHADER_UNIFORM_INT); SetTargetFPS(60); @@ -42,10 +42,10 @@ int main() { if (IsKeyDown(KEY_A)) max -= 1; if (IsKeyDown(KEY_D)) max += 1; - SetShaderValue(shader, resolutionLoc, screen, UNIFORM_VEC2); - SetShaderValue(shader, locationLoc, &offset, UNIFORM_VEC2); - SetShaderValue(shader, zoomLoc, &zoom, UNIFORM_FLOAT); - SetShaderValue(shader, maxLoc, &max, UNIFORM_INT); + SetShaderValue(shader, resolutionLoc, screen, SHADER_UNIFORM_VEC2); + SetShaderValue(shader, locationLoc, &offset, SHADER_UNIFORM_VEC2); + SetShaderValue(shader, zoomLoc, &zoom, SHADER_UNIFORM_FLOAT); + SetShaderValue(shader, maxLoc, &max, SHADER_UNIFORM_INT); BeginDrawing(); |