Art, Rendering, Ray Tracing, Creative Coding, Graphics.
could explain it thus: (For the sake of simplicity I’m going to assume there is only one light.) const camera = new Camera(0, 0, 0); const sphere = new Sphere(0, 0, 1); const light = new Light(1, 1, 0); const scene = new Scene(camera, [sphere], light); const { imagePlane } = camera; const