commit 662ab70dbc70936108ee5baade3ae371312396e9
parent 69383bf434c0eb4f1b4e74755330f37042bdcdf9
Author: Tonton <tonterface@proton.me>
Date: Fri, 17 Jul 2026 14:44:02 +0200
update gitignore
Diffstat:
5 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
@@ -1,2 +1,3 @@
*.ppm
image_gen
+build/
diff --git a/build/image_gen.o b/build/image_gen.o
Binary files differ.
diff --git a/build/vec3.o b/build/vec3.o
Binary files differ.
diff --git a/image_gen b/image_gen
Binary files differ.
diff --git a/src/image_gen.c b/src/image_gen.c
@@ -95,7 +95,12 @@ main(int argc, char *argv[])
r.direction = ray_direction;
color pixel_color;
- vec3_set(&pixel_color, (double)i/(image_width-1), (double)j/(image_height-1),0);
+ vec3_set(
+ &pixel_color,
+ (double)i/(image_width-1),
+ (double)j/(image_height-1),
+ 0
+ );
write_color(stdout, pixel_color);
}
}