Skip to content

Latias94/rust_raytracing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Raytracing

跟着 Ray Tracing in One Weekend 用 Rust 整了一个光线追踪器。

仓库中的 Commit 是根据原文中每次渲染的结果划分的,方便代码参考。

性能

CPU: i7-10700k 3.80GHz
1200 * 800 分辨率图片生成,多线程总用时:10分钟19秒,单线程跑要一个小时出头。

CPU: i9-13900kf 4.00GHz 1200 * 800 分辨率图片生成,多线程总用时:2分钟54秒

运行

  1. 安装 Rust
  2. (Optional)觉得慢可以换镜像
  3. cargo build --release
  4. .\target\release\raytrace.exe

Todo

  • 多线程(用 Rayon 实现)
  • 后续教程(Maybe)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages