The full code for this video is here: [ Ссылка ]
The code in this video is a somewhat simplified version of a ray tracer I built a couple months ago. You can see that at [ Ссылка ]
The major differences are that it supports triangles in addition to spheres (all you need is to make a triangle intersection function), some more organized classes, sampling is done gradually instead of all at once, and has some better styling.
--------------
My website: [ Ссылка ]
My Github: [ Ссылка ]
Contact me: hello@tonyzhang.net
Ещё видео!