Skip to content

Latest commit

 

History

History

proj-7-ray-traced-shadows

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

X-Project 7: Ray Traced Shadows

An alternative method of rendering shadows using Ray Tracing (instead of shadow maps).

X-Project 7 Ray Traced Yoda

Usage

cargo run --bin proj-7-ray-traced-shadows [OPTIONAL: Path to Wavefront OBJ file]

Examples

IMPORTANT: Current working directory is the workspace directory (repository root), not the project directory.

Teapot model

cargo run --bin proj-7-ray-traced-shadows common-assets/teapot/teapot.obj

Yoda model

cargo run --bin proj-7-ray-traced-shadows common-assets/yoda/yoda.obj

Controls

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