ray-tracer

所属分类:图形图像处理
开发工具:Rust
文件大小:0KB
下载次数:0
上传日期:2023-07-14 14:13:18
上 传 者sh-1993
说明:  我在一个周末中实现了光线跟踪,作为学习Rust编程语言的项目,
(My implementation of Ray Tracing in One Weekend, as a project to learn The Rust Programming Language,)

文件列表:
Cargo.lock (2814, 2023-07-14)
Cargo.toml (212, 2023-07-14)
render.png (909224, 2023-07-14)
src/ (0, 2023-07-14)
src/camera.rs (1698, 2023-07-14)
src/hittable.rs (967, 2023-07-14)
src/main.rs (5883, 2023-07-14)
src/material.rs (2601, 2023-07-14)
src/ray.rs (1436, 2023-07-14)
src/sphere.rs (1632, 2023-07-14)
src/vector.rs (2001, 2023-07-14)
src/world.rs (517, 2023-07-14)

# Ray Tracer in Rust A ray tracer written in Rust, based off the C++ version found in [*Ray Tracing in One Weekend*](https://raytracing.github.io/books/RayTracingInOneWeekend.html). I used the C++ version and tried to translate it to Rust to learn the language more, rather than just using the Rust version of the book. Not a perfect implementation but a very fun project, and here is my final render: ![A beautiful image with lots of different and reflective spheres](https://github.com/jakedves/ray-tracer/blob/main/render.png) ## What I Learnt - Borrowing, Ownership, Move (& Copy) semantics in Rust - File writing in Rust - Ray tracing techniques - `Box` in and dynamic dispatch in Rust - Materials, fuzzy reflection, refraction - Dielectrics - Schlick approximation - Defocus blur and thin-lens approximation

近期下载者

相关文件


收藏者