Appendix 1Rendering the Cover Image
The cover image for this book was rendered using the very ray tracer that the book describes, which means that once you’ve implemented the necessary features, you can render it too!
To render the cover image, your ray tracer must support the features described up through Chapter 12, Cubes. The actual cover image was rendered using two light sources, though the second is optional.
The cover image scene is described here in YAML[29] format. If a YAML parser exists for your programming language, you may be able to build the scene from this description directly; otherwise, you’ll need to translate this description into whatever API you’ve built for your own renderer.
If rendered as described, you’ll get something ...
Get The Ray Tracer Challenge now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.