From 6507f80a3d998ccccb30e5d7f25c5b091e0b63a9 Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 19 May 2021 22:53:15 +0100 Subject: changed uniforms to use shader_ --- brotshader.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'brotshader.c') 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(); -- cgit v1.2.1