My goal is to render a time-of-flight(ToF) image from a given scene- I want each of the rendered pixel value, to be the length of the photon traveled from the light source to camera. (or average of travel length if many photons are arrived at the same pixel).
I found a post here doing similar thing. Although I have basic knowledge of python, I'm fairly new to blender(and its interface or API) and couldn't find where to start.
So, are render modifications stated (in first paragraph) possible in vanilla blender? If yes, which code should I modify, or how can I even find and access the code?