summaryrefslogtreecommitdiff
path: root/racer-tracer/src/main.rs
AgeCommit message (Collapse)Author
2023-01-08🌍 Add GeometrySakarias Johansson
- Created a trait for all geometry that has to implement a hit function. Depending on if the ray hits or not it returns an option with the color. - Add support for multiple samples per pixel Current issues: - Using cooperative multitasking which isn't that helpful in this situation since it's like running without async but without overhead. Should switch to rayon. - All data gets copied once per job. Will decide later what to do (copy or put locks and share data between jobs).
2023-01-06☁ Add skySakarias Johansson
2023-01-05⚡ Prepare asyncnessSakarias Johansson
Creating a bunch of futures that when completed get the buffers copied to the screen buffer updating the screen as it gets done. It's a bit overkill to create a future per row but it can be changed later. Moved hsv_to_rgb to utils. Don't even think it will be needed later.
2023-01-05Initial commit 🎉Sakarias Johansson