A path tracer written in ClickHouse SQL queries renders a scene with procedurally generated landscape, reflecting terrain and casting shadows, using 3D math on tuples and parallelizing across CPU cores. The scene exercises various geometric primitives, including boxes, cylinders, tori, and spheres, with CSG union, difference, and ray-marched distance field, and is rendered at any resolution ...