Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 2.06 KB

File metadata and controls

44 lines (28 loc) · 2.06 KB

A Kotlin implementation of Peter Shirley's 'Ray Tracing in One Weekend' book.

Chapter Links

  1. Overview
  2. Output An Image
  3. The vec3 class
  4. Rays, a Simple Camera, and Background
  5. Adding a Sphere
  6. Surface Normals and Multiple Objects
  7. Antialiasing
  8. Diffuse Materials
  9. Metal
  10. Dielectrics
  11. Positionable Camera
  12. Defocus Blur
  13. Where Next?

Notes

  • Not optimised for efficiency.
  • I use a slightly different method for refraction calculation (see first reference).

Final Scene

An image of the final rendered scene Rendered at: 2000px * 1333px, 500 samples/px, maximum depth of 50.

Future Work

  • Rectangular parallelepipeds.
  • Triangle support.
  • Abstracting the description of scenes (maybe a DSL and custom file-format).

References