Ray Tracing
Download
GitHub
License
Previous: Illustrations
Next:
Table of Contents
Introduction
Sections
Output an Image
The vec3 Class
Rays, a Simple Camera, and Background
Adding a Sphere
Surface Normals
Multiple Objects
Antialiasing
Diffuse Materials
Metal
Dielectrics
Positionable Camera
Defocus Blur
Appendix
Illustrations
Common
Common
Utility class and interface:
hit
: abstraction of object we use
sphere
: sphere is a hittable object
world
: a list of hittable objects
camera
: encapsulating of the simple axis-aligned camera
With material:
material
hit
sphere
world
On This Page