read fragment shader from file at argument path

This commit is contained in:
2025-09-12 19:39:24 +02:00
parent f90e842bd8
commit ff0a4ebdae
5 changed files with 45 additions and 26 deletions
+1 -1
View File
@@ -181,7 +181,7 @@ void loop(GLFWwindow *window, ShaderProgram program) {
void forge_run(Parameters params) {
GLFWwindow *window;
File fragment_shader = read_file("shaders/tmp.glsl");
File fragment_shader = read_file(params.frag_path);
if (fragment_shader.error) {
fprintf(stderr, "Cannot read file\n");