cam_x:position of the camera
cam_w:look-at direction of the camera
spp:samples per pixel
