summaryrefslogtreecommitdiff
path: root/racer-tracer/src/scene.rs
AgeCommit message (Collapse)Author
2023-01-12๐Ÿงน Minor cleanupSakarias Johansson
- Made the traits into supertraits so we don't have to mention Send and Sync everywhere. - Add methods for Vec3 that modifies the existing Vector. Can be used to make less copies.
2023-01-11๐Ÿ”จ Refactors & Use rayonSakarias Johansson
- All data shared between threads are now Arcs since the data is immutable. - Remove tokio - Rustified main
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).