Parallelise rendering

This commit is contained in:
2025-09-23 15:36:08 +01:00
parent 8827f22359
commit 75b646dd44
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);