- The simplest ray tracer is finished in v0.1, and it can be downloaded in https://github.com/hudongyue1/myGL/archive/refs/tags/lesson.zip
The related post is Scratchapixel: Simple Ray Tracing | HDY blog
It can render the image like:
- The ray tracer v0.2, and it can support to render the triangle mesh. It can be downloaded in https://github.com/hudongyue1/myGL/releases/tag/lesson1
With a mesh model, we can triangulate it at first, then render it like:
Adding the choice for Flat Shading and Smooth Shading:
3. The ray tracer v0.3, add some effects for direct illumination. The related post is [Scratchapixel: Light and Shading | HDY blog](https://hudongyue.com/2022/12/23/Scratchapixel-Light-and-Shading/)- Distance light, point light and shadow