summaryrefslogtreecommitdiff
path: root/racer-tracer/src/camera.rs
AgeCommit message (Collapse)Author
2023-03-08🎥 Add support for camera looking at direction.Sakarias Johansson
- Set position of camera. - Set look position of camera. - Set FOV
2023-01-13✨ Add realtime previewSakarias Johansson
- Preview quality is crude but works good enough. - Add scaling to render function. This helps to make the preview faster because we can use the same result for several pixels. - You can move around the camera a bit with wasd, super basic. - Press R to start/stop rendering the scene.
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