Live coding "Ray Tracing in One Weekend" but using OCaml instead of C++. This is part 2 where I talk about vectors, operators, float array optimization in the OCaml runtime, and setup a basic scene in 3D space.
Ray Tracing in One Weekend: https://raytracing.github.io/books/Ra...
Runtime representation of numbers in OCaml:
• Runtime representation of numbers in OCaml
00:00 - Intro
00:25 - Part 1 recap
01:08 - Part 2 plan
02:45 - Vectors and operators
03:52 - float array optimization
07:09 - Back to vectors and operators
10:47 - Colors and Pixels
12:55 - Rays
16:08 - Scene setup
17:48 - Camera and the viewport
27:10 - More custom operators
28:59 - Pixel locations
35:45 - Creating a gradient
39:12 - Retrospective
41:05 - Outro