Commit Graph

23 Commits

Author SHA1 Message Date
a7dda028aa Implement ability to move and rotate camera 2024-02-04 19:49:54 +00:00
c2560ccbdd Refactor and add reflections 2024-02-04 19:07:34 +00:00
6d8f332500 Improve readability 2024-02-04 17:32:57 +00:00
4914f8eb71 Define custom EPSILON 2024-02-04 00:20:54 +00:00
56959990e4 Add shadows 2024-02-04 00:19:11 +00:00
1f5568b63e Refactor trace_ray function 2024-02-04 00:11:20 +00:00
bfdea0fd0c Fix include 2024-02-03 23:21:54 +00:00
f2fdc0d084 Reformat 2024-02-03 22:20:55 +00:00
451aa48b3a Implement specularity 2024-02-03 22:09:12 +00:00
8b9ac28402 Implement diffuse lighting 2024-02-03 19:36:41 +00:00
f34e234609 Define utilities to multiply and divide a vector by a number 2024-02-03 19:18:50 +00:00
0b7ca65967 Add unit vector utilities 2024-02-03 18:36:58 +00:00
9b22ce61d5 Update colour_t to use a union 2023-12-27 22:03:14 +00:00
0345f90405 Add vector magnitude calculation 2023-12-20 16:37:50 +00:00
2ec654774e Update colours 2023-12-20 00:16:56 +00:00
6b0732980a Create initial raytraced scene 2023-12-20 00:05:49 +00:00
36913bf365 Add vector types and functions 2023-12-20 00:05:27 +00:00
f0b6771255 Add function to convert from window coordinates to viewport 2023-12-20 00:04:49 +00:00
c5cc8643e1 Explicitly cast screen coordinates in set_pixel 2023-12-18 14:21:20 +00:00
4a0ec9e5e7 Update denormalise function 2023-12-18 14:17:51 +00:00
8a30e64696 Update set pixel to use integers instead of floats 2023-12-18 14:15:18 +00:00
e6a3b73f99 Start working on the raytracer 2023-12-18 13:25:18 +00:00
c836f3758f Implement basic window abstraction 2023-12-18 13:25:02 +00:00