1
0
Go to file
2021-04-13 01:08:58 +05:30
assets Added the image texture code 2021-03-05 22:22:36 +05:30
src Fixed issues reported by clippy 2021-04-13 01:08:58 +05:30
.gitignore Added basic structure of the project from ria-weekend project 2020-03-14 23:03:07 +05:30
Cargo.lock Added AVX2 enabled version of vec3 type, Updated readme 2021-04-13 01:01:41 +05:30
Cargo.toml Added AVX2 enabled version of vec3 type, Updated readme 2021-04-13 01:01:41 +05:30
README.md Added AVX2 enabled version of vec3 type, Updated readme 2021-04-13 01:01:41 +05:30

Ray Tracing the Next Week

This is my attempt at Ray Tracing the Next Week book by Peter Shirley.

On x86_64 target, It'll try to use AVX2. If you get build errors, Try commenting the simd_vec3 import in src/types/mod.rs. I tried changing the cfg attribute to, all(target_arch = "x86_64", target_feature = "avx2") but it keeps reporting that avx2 feature is disabled on my machine?

Without AVX2, The final scene takes ~33 seconds to render at a certain setting and with AVX2 the same scene takes ~23.5 seconds.

Ray Tracing: The Next Week

Renders

[1] Motion Blur [1] Motion Blur

[2] Cornell Box [2] Cornell Box