8 Commits

Author SHA1 Message Date
007bb10b7b Add diffuse lights 2022-11-13 17:28:20 +01:00
8db2d5aa2c Reduce the public API of Hittable and Material 2022-11-13 16:42:05 +01:00
20a77499bc Add solid textures 2022-11-13 15:18:29 +01:00
9b0abbc5bb Move to unions instead of structure headers
Using explicit pointer casts silences some compiler warnings that may
introduce subtle bugs in the code. The union approach is the officially
documented way of doing type punning, so there is no reason not to use
it.
2022-11-13 13:56:25 +01:00
1034668c66 Add moving spheres 2022-11-12 16:46:13 +01:00
2abc2ba697 Cleanup the API 2022-11-12 16:17:42 +01:00
7e6ba7d445 Add glass material 2022-11-11 12:27:06 +01:00
21b3d0e713 Add materials 2022-11-11 12:06:18 +01:00