Parallelise rendering

This commit is contained in:
Camden Dixie O'Brien
2025-09-21 15:50:16 +01:00
parent 219415aee6
commit 172956ae46
4 changed files with 93 additions and 39 deletions

2
demo.c
View File

@@ -24,8 +24,6 @@ static pix_t pixbuf[W * H];
int main()
{
rng_init();
img_t img = { .pix = pixbuf };
camera_t camera = camera_init(camera_pos, FOCAL_LEN, VIEWPORT_H, W, H);
camera_render(&camera, scene, NELEMS(scene), &img);