We made a ray tracing renderer in C.
Everything is rendered by vector operation. Ray starts from the camera then traces the closest object and reflects from it. When a ray hits a surface, it leads to creating two new rays(diffuse reflection, and specular reflection). In default, reflection is limited to 3 times(2^3 vector calculations per pixel)
- Plane
- Sphere
- Cylinder
Enter the command 'make' in the cloned folder. Then executable named 'miniRT' will appear. Run it with the provided .rt file! './miniRT /rt/pyramid.rt'
↑ : Forward
↓ : Backward
← : Left
→ : Right
PageUp : Ascend
PageDown : Descend
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Ray Tracing in One Weekend