Simple pathtracing implementation in Godot 4. With free look camera at 20-40 fps (gtx 1050 mobile)
You can use godot editor to describe scenes: place the camera, add sphere/plane, set their colors etc.
Ported c++ code from https://www.kevinbeason.com/smallpt
See other useful resources