An alternative method of rendering shadows using Ray Tracing (instead of shadow maps).
cargo run --bin proj-7-ray-traced-shadows [OPTIONAL: Path to Wavefront OBJ file]
IMPORTANT: Current working directory is the workspace directory (repository root), not the project directory.
cargo run --bin proj-7-ray-traced-shadows common-assets/teapot/teapot.obj
cargo run --bin proj-7-ray-traced-shadows common-assets/yoda/yoda.obj
Mouse | Action |
---|---|
Right button drag | Camera distance |
Left button drag | Camera orbits |
Ctrl + Right button drag | Light orbits |
Ctrl + Left button drag | Light distance |
Key | Action |
---|---|
0 | Ambient + Diffuse + Specular (default) |
1 | Normals |
2 | Ambient |
3 | Ambient + Diffuse |
4 | Specular |