Ray Tracing from Scratch in 10 Minutes | Javascript

Опубликовано: 21 Февраль 2026
на канале: Tony Zhang
9,746
225

The full code for this video is here: https://gist.github.com/Tony1324/bbd4...

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 https://tony1324.github.io/raytracer/

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: https://tonyzhang.net
My Github: https://github.com/Tony1324
Contact me: [email protected]