diff options
Diffstat (limited to 'brotshader.c')
-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(); |