Skip to content

Ray tracing application having Blinn-Phong shading, shadows, reflections, refractions, and anti-aliasing.

License

Notifications You must be signed in to change notification settings

nolmoonen/ray-tracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

splash

An exercise into ray tracing containing: Blinn-Phong shading, shadows, reflections, refractions, and anti-aliasing. Shadows take into account objects that let light through, and the ratio of reflected and refracted light of transparent objects is dependent on the view angle.

Building

  • Clone stb into directory external/stb.
  • Build using CMake.

Examples

whitted

The above image contains three spheres having the properties, from left to right: partially reflective, partially refractive, fully transparent. The reflective and refractive spheres reflect and refract a constant fraction of light, the transparent sphere uses the Fresnel equation to determine the reflective and refractive fractions.

The below image contains three fully reflective planes, a checkerboard plane, and four partially refractive spheres.

art

About

Ray tracing application having Blinn-Phong shading, shadows, reflections, refractions, and anti-aliasing.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published