feat: impl random sampling instead of point light algorithm

Random sampling is available when building with `-DRANDOM_SAMPLING', or with
`make randsampl'.

The sample counts are rather low, so the output is both slow and noisy, which is
why it's disabled by default.
This commit is contained in:
2023-12-03 21:20:49 +01:00
parent e7bc9882e6
commit 3827be61ac
3 changed files with 88 additions and 23 deletions

1
README
View File

@@ -9,6 +9,7 @@ The raytracer implements the following:
- IOR-based refraction
- Cook-Torrance BRDF (a few other models are left in the code)
- Primitive object materials
- Random sampling (build with `make randsampl' to add fireflies :)
You can move around with WASD and SPC/Z; zoom with I/O, change the exposure with
+/-, and quit with Q.