I Take the Ray Tracer Challenge in C# - Chapter 2 - Colors & Canvas

preview_player
Показать описание
Next - Chapter 3
Previous - Chapter 1
Playlist
GitHub

In Chapter 2 of the Ray Tracer Challenge book I create the color and canvas class. The color class uses r,g,b and float values between 0 and 1. The canvas class creates a 2D array of colors and holds them until we pass them to a PPM class meant to save it out to a file and viewed in Photoshop. Things go pretty well except for a few small errors I make that are hard to track down (flipping X and Y axes and such).

If you are following along let me know how you did with this chapter. Next time we'll start with Matrix manipulation in Chapter 3.
Thanks for watching!
Your support helps me make new content!
Рекомендации по теме